Hello,
I have a cronjob via a php file. It takes nearly 15 minutes to complete the process. But I have a problem about the max_execution_time. I get the following message or Internal Server Error.
Fatal error: Maximum execution time of 60 seconds exceeded
I want to set max_execution_time to 1000 seconds. But when I try to do it via .htaccess or php code in a php file ini_set('max_execution_time', 1000), it doesn't work. I think the server gets this value from default configuration file, which I don't have permission to change.
My site default setting is like below.
max_execution_time : 60
session.auto_start : off
session.cache_expire : 180
When I try to set max_execution_time in plesk Php Settings,
Additional configuration directives I get the following message :
ini_set("max_execution_time",1000)
When I save the configuration I get the following message :
Error: phpinimng failed: Cannot parse php.ini: (<class __main__.PhpIniSyntaxError at 0x2acd1bb40350>, <__main__.PhpIniSyntaxError instance at 0x2acd1bb42ef0>)
1- Is there a way, to set max_execution_time without changing server default settings?
2- If I asked my hosting company to change the value, does such a long time for max_execution_time cause vulnerability or does it decrease site speed?
3- Are max_execution_time and session timeout the same things?
4- Why don't php code or htaccess setting work?
(My site has a membership system. Several members can log on at a time.)
Thank you for your answer.
I have a cronjob via a php file. It takes nearly 15 minutes to complete the process. But I have a problem about the max_execution_time. I get the following message or Internal Server Error.
Fatal error: Maximum execution time of 60 seconds exceeded
I want to set max_execution_time to 1000 seconds. But when I try to do it via .htaccess or php code in a php file ini_set('max_execution_time', 1000), it doesn't work. I think the server gets this value from default configuration file, which I don't have permission to change.
My site default setting is like below.
max_execution_time : 60
session.auto_start : off
session.cache_expire : 180
When I try to set max_execution_time in plesk Php Settings,
Additional configuration directives I get the following message :
ini_set("max_execution_time",1000)
When I save the configuration I get the following message :
Error: phpinimng failed: Cannot parse php.ini: (<class __main__.PhpIniSyntaxError at 0x2acd1bb40350>, <__main__.PhpIniSyntaxError instance at 0x2acd1bb42ef0>)
1- Is there a way, to set max_execution_time without changing server default settings?
2- If I asked my hosting company to change the value, does such a long time for max_execution_time cause vulnerability or does it decrease site speed?
3- Are max_execution_time and session timeout the same things?
4- Why don't php code or htaccess setting work?
(My site has a membership system. Several members can log on at a time.)
Thank you for your answer.