• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Issue Scheduled Task created under the domain fails: "No such file or directory"

alli81

New Pleskian
Hi, i have the sam problem wrote here:
Scheduled Task created under the domain fails: "No such file or directory"
(when run a crontab i receive "not such file or directory")

If i run this command:
grep SHELL /var/spool/cron/mywebsite

I receive:
SHELL=/usr/local/psa/bin/chrootsh

The guide tell me:
Find the specific set of utilities available in the chrooted environment by default in the ${HTTPD_VHOSTS_D}/chroot directory hierarchy ( HTTPD_VHOSTS_D is defined in /etc/psa/psa.conf ).

But i not undestand really what i need to do

Can you help me?
(i have plesk 11)
 
First, find your ${HTTPD_VHOSTS_D} variable. For example:

# grep HTTPD_VHOSTS_D /etc/psa/psa.conf
HTTPD_VHOSTS_D /var/www/vhosts

Then find your chrooted environment ${HTTPD_VHOSTS_D}/chroot:

# ll /var/www/vhosts/chroot
total 20
lrwxrwxrwx 1 root root 7 Sep 11 05:24 bin -> usr/bin
drwxr-xr-x 2 root root 4096 Sep 11 05:23 dev
drwxr-xr-x 2 root root 4096 Sep 11 05:24 etc
lrwxrwxrwx 1 root root 7 Sep 11 05:24 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Sep 11 05:24 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 8 Sep 11 05:24 sbin -> usr/sbin
drwxrwxrwt 2 root root 4096 Sep 11 05:23 tmp
drwxr-xr-x 6 root root 4096 Sep 11 05:23 usr
drwxr-xr-x 3 root root 4096 Sep 11 05:23 var

Now you can use commands from your chrooted dirs like /var/www/vhosts/chroot/bin/ or /var/www/vhosts/chroot/usr/bin/ for your scheduled tasks.
 
Back
Top