Skip to main content

Problem with Why does Crontab andgive me an error with my PHP script when running it from the terminal does not?

I'm withhaving some problems inwith running the Crontab with PHP files.

I have this same php scripts running in the Crontab for more than 6 months but some days ago mysteriously they stopped to execute the code correctly. The Crontab works but the script produces an error. The other interesting thing is that the same script runs without errors in the SSH Terminal.

What should be the problem here? Is there a way to configure the Crontab to run with the same configuration of the SSH Terminal?

Best Regards,

Problem with Crontab and PHP

I'm with some problems in running the Crontab with PHP files.

I have this same php scripts running in Crontab for more than 6 months but some days ago mysteriously they stopped to execute the code correctly. The Crontab works but the script produces an error. The other interesting thing is that the same script runs without errors in the SSH Terminal.

What should be the problem here? Is there a way to configure the Crontab to run with the same configuration of the SSH Terminal?

Best Regards,

Why does Crontab give me an error with my PHP script when running it from the terminal does not?

I'm having some problems with running the Crontab with PHP files.

I have this same php scripts running in the Crontab for more than 6 months but some days ago mysteriously they stopped to execute the code correctly. The Crontab works but the script produces an error. The other interesting thing is that the same script runs without errors in the SSH Terminal.

What should be the problem here? Is there a way to configure the Crontab to run with the same configuration of the SSH Terminal?

Source Link
André
  • 121
  • 2

Problem with Crontab and PHP

I'm with some problems in running the Crontab with PHP files.

I have this same php scripts running in Crontab for more than 6 months but some days ago mysteriously they stopped to execute the code correctly. The Crontab works but the script produces an error. The other interesting thing is that the same script runs without errors in the SSH Terminal.

What should be the problem here? Is there a way to configure the Crontab to run with the same configuration of the SSH Terminal?

Best Regards,