• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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