Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Cronjob php file not running on ubuntu
Hello ! I have a problem with the cronjob file on my droplet ! I have uploaded a website on my server ( ubuntu with lamp installed) , that site is now running on a domain on a shared hosting with Cpanel and I want to transfer it to my droplet but first I need to be sure that the script it works on my new server so I don’t have any problem with my site script , but when I try to run manually the cron job script on my browser by typing http://mydropleip/cron_job.php I see a blank page where is write this : #!/usr/bin/php which is not an normal thing , and the script is not working ! The crontab is working on my server I checked it and it works ! The only think that is not running is that cronjob script ! I think I need to install something else on the server but I don’t know what ? That cronjob is crucial for my website ! I really don’t know what I am doing wrong !
Thanks in advance !
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.×