Increase execution time of 30 seconds?
Posted by: MurphysLaw (---.cache.maxonline.com.sg)
Date: October 01, 2007 12:07AM

Hi all,

Managed to install everything Ok but have run into a problem regarding the length of time php scripts are allowed to execute.

Apache error log is telling me: (php error log has nothing in it at all)

PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\server\\www\\script.php on line 13

I have tried extending the execution times in:

server/php/php.ini-recommended.ini
server/php/php.ini-dist
server/php/php.ini
server/apache2/bin/php.ini

By changing the lines:

max_execution_time = 30
max_input_time = 60

To:

max_execution_time = 3600
max_input_time = 3600

and also in server/php/php.ini I change the timeout from 30 to 3600 (as below)

; Default timeout in seconds.
pfpro.defaulttimeout = 3600

This isn't working and my apache error log is still showing me:
PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\\server\\www\\script.php on line 13

This is after restarting all services, completely shutting everything down and starting again so it's not a restart issue. I'm thinking it's a line in another file I have to change but don't know where.

I am also having a problem with phpMyAdmin
After a fresh install if I browse to [localhost] I get the following error:

phpMyAdmin - Error

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

Any help is appreciated
Thanks



Post Edited (10-01-07 00:09)

Options: ReplyQuote
Re: Increase execution time of 30 seconds?
Posted by: MurphysLaw (---.cache.maxonline.com.sg)
Date: October 02, 2007 12:57AM

Anyone know where I'm going wrong with this?

Options: ReplyQuote
Re: Increase execution time of 30 seconds?
Posted by: yfastud (---.cable.mindspring.com)
Date: October 02, 2007 01:28AM

Are you sure that you edited the right php.ini since there are 2 php.ini in wamp folder? Anyway, not sure if this works for you, but you should consider to optimize these factors in c:\wamp\apache2\bin\php.ini

file_uploads = ON
upload_max_filesize = 2M
post_max_size = 8M
memory_limit = 8M
max_input_time = 60
max_execution_time = 30

To:

file_uploads = ON ;(make sure this set to ON if it's OFF for some reason)
upload_max_filesize = 750M
post_max_size = 750M
memory_limit = 1000M
max_input_time = 5000
max_execution_time = 5000

Have fun,

[www.jlbn.net] (Basic Guide for WAMP & Add-ons)

Options: ReplyQuote
Re: Increase execution time of 30 seconds?
Posted by: MurphysLaw (---.cache.maxonline.com.sg)
Date: October 02, 2007 02:40AM

Thanks for the input ... I followed all the suggestions but am still running into the same problem, even though I have increased the max_input_time to 5000 and the max_execution_time to 5000 the apache error log is telling me Maximum execution time of 30 seconds exceeded .. which I don't understand if I have already increased the execution time...

Options: ReplyQuote


Sorry, only registered users may post in this forum.