Kan je in je software of cron job niet de locatie van php5 aanpassen?
Ze geven dit als locatie aan in hun software maar is het nu mogelijk om php5 te verplaasten BV
/usr/bin/php5 naar
/usr/local/bin/php5zie overzicht software
To check Cron via SSH, you can do the following:
-Go to Cron folder via SSH (to your account)
-Give "pwd" command and learn path to Cron folder (e. g. /home/yoursite/public_html/cron)
-Give "which php" command and learn path to PHP (e. g. /usr/local/bin/php)
-Give "crontab -e" command and crontab file’s editor will open.
-To make changes in this file, press "i" button
- in lower left corner there will be such a message: insert
Give the following commands:
* * * * * /usr/local/bin/php -q/home/yoursite/public_html/cron/index.php
*/30 * * * * /usr/local/bin/php -q/home/yoursite/public_html/cron/heavy.php
* - is the time when Cron is launched
/usr/local/bin/php-path to PHP
-q – variable
/home/yoursite/public_html/cron/- path to Cron
index.php and heavy.php - Cron files for launch
After you inserted the commands, press Escape button, Inset message will disappear. Type ":wq" This command rewrites Cron document and closes it.
You may check Cron the following way:
Copy your command (for example, /usr/local/bin/php -q/home/yoursite/public_html/cron/heavy.php) and paste it. Press Enter.
If there are no errors but you see something like this:
[root@server cron]# it means cron works correctly.