• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved -: php: command not found

Status
Not open for further replies.

SugavanasS

Basic Pleskian
-: php: command not found comes to my email when i want to run a cron job :/

ihave root access and i want to fix this. If i can't cron jobs, then why is there even a access for it in plesk :O

i read some other threads saying things about shell. Why don't plesk fix it ?
 
Hello,

Try to enable shell access for your user and if you are still facing the same issues with the cron please provide me following command out

Code:
crontab -l -u USERNAME
 
Hello i typed the command you gave me, it showed me my cron details, my email and thats all :p

i am still getting the same email :/
 
Hello,

Can you please try to enable bash shell for that user for the testing and check your cron
 
Since 11.5.30 Update #28, last updated at Jan 6, 2014 07:39 PM i get mail notification: -: java: command not found and -: php: command not found.
php -f /var/www/vhosts/tld/httpdocs/path/to/cron.php
java -jar /var/www/vhosts/tld/httpdocs/path/to/cron.jar
Previously it worked fine.

System details:
Ubuntu server, plesk 11.5
 
Hello,

Try to enable shell access for your user and if you are still facing the same issues with the cron please provide me following command out

Code:
crontab -l -u USERNAME

this code show me just my cronTask details
 
Hello,

Can you please try to enable bash shell for that user for the testing and check your cron

User have bash shell premission and an allow access to any type of shell
Management of access to the server over SSH : Can allow access to any type of shell (selected) on "Customizing Subscription"


Via ssh can i execute command for example: php -f /var/www/vhosts/tld/httpdocs/path/to/cron.php or java -jar /var/www/vhosts/tld/httpdocs/path/to/cron.jar without any problem
 
Last edited:
Solution:
Home>Subscriptions>tld>Websites & Domains>Web Hosting Access

Access to the server over SSH : forbidden to /bin/sh

goodluck!
 
Status
Not open for further replies.
Back
Top