1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Scheduling php script problem

Discussion in 'Plesk for Linux - 8.x and Older' started by damargon, Apr 21, 2007.

  1. damargon

    damargon Guest

    0
     
    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!!
     
  2. damargon

    damargon Guest

    0
     
    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!
     
Loading...