Fabhino22Elz
Basic Pleskian
Hello,
i use Plesk Onyx in Version 17.5.3 on my Webserver.
I am Running multiple Domains in Abbonements, so i have several vhosts generated in plesk. My Folder Structure is like this:
/var/www/vhosts/domain1.com/httpdocs/...
/var/www/vhosts/domain2.com/httpdocs/...
/var/www/vhosts/domain3.com/httpdocs/...
They where all with /bin/sh access
In this Abonements i created several planned Tasks (Cronjobs) in that way:
/opt/plesk/php/7.0/bin/php /var/www/vhosts/domain1.com/httpdocs/bin/export -p "article_images" /files/export/images.csv
Theese Jobs worked fine.
Now a Friend told me, that i should not use /bin/sh on a multiple domain server and should use /bin/bash (chrooted) so i changed the settings.
But now the planned Tasks dont work. I get the following message:
-: /opt/plesk/php/7.0/bin/php: No such file or directory
I understand that that is because the jobs only work in the domain1.com directory now.
But how can i start the cronjob in this folder? I tried several ways, but in the domain1.com folder /usr/bin is no php.
So it says this "-: /usr/bin/php: No such file or directory"
How do i have to change the Settings to get the tasks running again?
Greetings
i use Plesk Onyx in Version 17.5.3 on my Webserver.
I am Running multiple Domains in Abbonements, so i have several vhosts generated in plesk. My Folder Structure is like this:
/var/www/vhosts/domain1.com/httpdocs/...
/var/www/vhosts/domain2.com/httpdocs/...
/var/www/vhosts/domain3.com/httpdocs/...
They where all with /bin/sh access
In this Abonements i created several planned Tasks (Cronjobs) in that way:
/opt/plesk/php/7.0/bin/php /var/www/vhosts/domain1.com/httpdocs/bin/export -p "article_images" /files/export/images.csv
Theese Jobs worked fine.
Now a Friend told me, that i should not use /bin/sh on a multiple domain server and should use /bin/bash (chrooted) so i changed the settings.
But now the planned Tasks dont work. I get the following message:
-: /opt/plesk/php/7.0/bin/php: No such file or directory
I understand that that is because the jobs only work in the domain1.com directory now.
But how can i start the cronjob in this folder? I tried several ways, but in the domain1.com folder /usr/bin is no php.
So it says this "-: /usr/bin/php: No such file or directory"
How do i have to change the Settings to get the tasks running again?
Greetings