which: no php in (/usr/bin:/bin) crontab error

Started by pixelpadre, January 10, 2016, 08:42:26 PM

Previous topic - Next topic

pixelpadre

I am having trouble with crontab. 

Enter:
* * * * * /bin/sh /home/username/public_html/domain.com/cron.sh

Result:
which: no php in (/usr/bin:/bin) in email error message from server.

At shell 1 time

Enter:
[root@cutba ~]# !/bin/sh
Result:
Cronjob is successful.

Why cant I create automatic cronjob in cwp.

Igor S.




You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

Laur

I have the same problem, the /bin/bash not working!

pixelpadre

I believe the problem was specific to Magento CE.  They have a cron.sh and cron.php in the same directory.  I was running the sh file instead of the php file.  The php file invokes the .sh file.

Igor S.

Hello.

Also you can set a env_path variables in /usr/local/etc/suphp.conf and using php-cgi instead php .



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services