• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Scheduling php script problem

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!!
 
Well, I have resolved the problem.

I have forgotten to especified in the command field which is gonna be the interpreter: php.

This is the line:
php var/www/vhosts/mydomain/httpdocs/script.php

Now it works fine, thanks!
 
Back
Top