Reputation: 2686
The content of cron.php is :
<?php
$to = "my email";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: [email protected]";
mail($to,$subject,$txt,$headers);
?>
Im using codeigniter, but I don't believe that this framework somehow can influence my file. In the image you can see where is located my file (cron.php)
In the cpanel->cronjobs , at the Command i tried this version:
ls -la /domains/ebis-servicii.ro/public_html/cron.php
/domains/ebis-servicii.ro/public_html/cron.php
php /domains/ebis-servicii.ro/public_html/cron.php
etc, but none of them is working. Im getting this error: Could not open input file: /domains/ebis-servicii.ro/public_html/cron.php
I tried also this version:
/usr/local/bin/php /home/ebisserv/domains/ebis-servicii.ro/public_html/cron.php
and this one :
/usr/bin/wget -O /dev/null http:/www.ebis-servicii.ro/cron.php
Can anyone help me with this ? maybe im doing smth wrong in the cpanel: this is how my cron is set:
Upvotes: 0
Views: 172
Reputation: 725
Have you tried following command ?
/usr/bin/php -q /home/ebisserv/domains/ebis-servicii.ro/public_html/cron.php
* Also, can you make sure that the file path /home/ebisserv/domains/ebis-servicii.ro/public_html/cron.php
is correct.
HERE IS THE ADDITIONAL INFO :
Command to run a PHP5 cron job:
php /home/ebisserv/domains/ebis-servicii.ro/public_html/cron.php
Optional flag sometimes required for a PHP cron job:
php -q /home/ebisserv/domains/ebis-servicii.ro/public_html/cron.php
Command to run a PHP4 cron job:
/usr/local/php4/bin/php /home/ebisserv/domains/ebis-servicii.ro/public_html/cron.php
Upvotes: 1