Is there a max_execution_time limit on a droplet?

March 7, 2016 3.1k views
PHP DigitalOcean

I have a 5$ droplet and tried various ways of setting maxexecutiontime (php) to 300, but it always defaults to 30. So, my question is if there is a limit which is on top of a droplet?


1 Answer

No, there is not. This setting would be changed in one of the following files depending on how you're using PHP:

On the command line:


Running via mod_php in Apache


For changes to this file to take affect you should restart apache with service apache2 restart after making changes.

Running with php5-fpm (usually nginx)


For changes to this file to take afect you should restart the fpm service with service php5-fpm restart after making changes.

Have another answer? Share your knowledge.