[PHP] PHP 5.3.2 max_execution_time
I've got a Dokuwiki installation that is producing Apache errors saying that the maximum execution time of 30 seconds has been exceeded. So, I went and changed max_execution_time in php.ini expecting that this would solve the problem (which is due to large files taking a while to upload over an ADSL connection). However, the error log still reports that the old 30 second value is in use, even though Apache has been restarted. phpinfo() for the same site reports max_execution_time as 120 seconds, so it seems as if the change to php.ini has been detected as expected. Is there another setting that I need to consider? max_input_time is already set to 60 seconds and there are no local 'php_value' Apache configuration items fighting the ones in php.ini. PHP version is 5.3.2 and is running under a CentOS 6.0 system. Chris Tapp opensou...@keylevel.com www.keylevel.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5.3.2 max_execution_time
On 2 Jan 2012, at 02:15, Duken Marga wrote: If you want to upload large file, maybe you should consider maximum uploaded size. You can change setting in php.ini on line that contain * upload_max_filesize*. Thanks, but the filesize limits are already set well above the size of the file. The file transfer takes place within the context of an RPC callback, so I think this may be a TCP transfer rather than a file upload. This really does seem to be an execution time issue, as shown by the Apache error log entry. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5.3.2 max_execution_time
On 2 Jan 2012, at 13:53, Matijn Woudt wrote: On Mon, Jan 2, 2012 at 10:21 AM, Chris Tapp wrote: This really does seem to be an execution time issue, as shown by the Apache error log entry. Chris Are you sure you've checked every possible place for Apache config files? Most distro's have /etc/apache2/httpd.conf, but also /etc/apache2/conf.d/* and the ones for each virtual host (mine are at /etc/apache2/sites-enabled/*). You can also set php settings in .htaccess files. Yes, I don't think there is anything I haven't checked. The configuration under CentOS 6 is more the 'old way' - i.e. a conf/ and conf.d/. All the php configuration is in /etc/php.ini with conf.d/ php.conf enabling Apache php support. Dokuwiki is installed as a virtual host located at /usr/share/ dokuwiki. If I create a php file in that directory that runs php_info(), then the output that's produced shows max_execution_time (global and local) as 120 seconds. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 5.3.2 max_execution_time
On 2 Jan 2012, at 16:19, Matijn Woudt wrote: It is also possible to set the max execution time in PHP with set_time_limit() function, maybe one of the scripts does that? Look at the apache log at which file the timeout occurs, that might give you a clue. Thanks Matijn, I've found a set_time_limit( 30 ) call in a file related to the transfer that looks like the root of the problem :-) Thanks for the help. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php