• 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

Bug - domain cron jobs are useless can't use hardly any system commands :(

105547111

Silver Pleskian
Cron for plesk 10 has changed completely from all previous versions.

Before you could schedule a job to use any file on the system like date, cp, wget, curl, and heaps more.

Now it's useless as the cron is jailed inside the domain. Previously you could only write / edit / delete within the domain that is how it should be.

So what use are domain cron jobs except for really useless tasks?

We had scripts that used curl to login and fetch files for. The various sites, then use date to rename the files with the date and time, etc. Even some cat and grep on text files.

Because of this we had to re write all our scripts to run as root.

That works but now we have to add chown, chcon to all the damn outputs as they are owned by root.

Why was the functionality changed like this?, it's rendered domain tasks useless.
 
Hello

I have been trying to wget to run in a scheduled task to run a backup php script. Are you saying this will not work ?
 
You have to run as root. If the data is then to go onto a web page on the server you will have to chown and change the selinux owner.
 
Back
Top