PHP Script Getting stopped without Any error


I have just installed a LAMP stack. Everything is working fine. I have a PHP script that crawl web pages and fetch data through file_get_contents. I have change the max_execution_time to 9999. I run the script on my local computer and it runs fine here(It ran for 4 Hours). But on Digital Ocean the script stop after certain time. Something around 5-6 minutes. I check the Apache error_log and I cannot see any error that tell why the script has been stopped. Can you please tell if you have implemented any Limits or Anything that I missed in the configuration ?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted

How about running php script directly?

php -f script.php > script.out 2> script.err