• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Cronjob File Permissions Query

D

DirtyMonkey

Guest
When running a Cronjob for a specific domain, what file permissions/ownership should be set for the Cronjob/Plesk to function correctly?

I am currently using Ubuntu 6.06 LTS, so for example default user/group permissions might be = root/root

Say for instance the domain is:

'mydomain.com' in Plesk/Virtuozzo this user will exists as 'mydomain'

What user/group should be set for the 'cronjob.php' file in order for the Plesk GUI 'Crontab' to have permissions to execute said file.


Thanks in advance DM.
 
The cronjob created via Plesk will be executed as user which you have chose during task creation.
So you need that executed script has 'read' and 'execute' permissions granted for the user.
For example, if the script is placed inside httpdocs folder and if the ftp user name is mydomain the script can have mydomain : psacln ownership and 700 permissions set.
 
Back
Top