D
damargon
Guest
I am trying to execute a php script from "Scheduled Tasks". I have created the cron task in root and apache user by this way in the command field:
/var/www/vhosts/mydomain/httpdocs/script.php
but I am getting this error:
***************************************
/bin/sh: line 1: /var/www/vhosts/mydomain/httpdocs/script.php: Permission denied
***************************************
I have changed the script's chmod to rwx r-x r-- but I'm getting the same error.
Anyone can help me please?
Thanks!!
/var/www/vhosts/mydomain/httpdocs/script.php
but I am getting this error:
***************************************
/bin/sh: line 1: /var/www/vhosts/mydomain/httpdocs/script.php: Permission denied
***************************************
I have changed the script's chmod to rwx r-x r-- but I'm getting the same error.
Anyone can help me please?
Thanks!!