M
Mapzoner
Guest
I am trying to setup a Cron task through Plesk to run a php script at certain intervals. I can setup the task and have the info for the command line:
/usr/local/psa/home/vhosts/xxxxx.com/httpdocs/sm_gen/runcrawl.php
Before the server can execute the php script it needs to know the path of the php command line interpreter. PHP is configured through Plesk. I have spoken with the tech support but they really have no idea what the path is to the CLI.
They suggested /usr/local/psa/admin/bin/php
So I used:
/usr/local/psa/admin/bin/php /usr/local/psa/home/vhosts/xxxxx.com/httpdocs/sm_gen/runcrawl.php
but when I try that I get a permission denied error. They say that php is configured through Plesk so that path above was their best guess.
Does anyone know the correct path to php so I can get this script to execute by a non- root user.
I can execute the script in a browser, but when I try to let Cron do it I get permission denied using:
/usr/local/psa/admin/bin/php
Hope I explained this alright, Im not a very server friendly user. Im just trying to get this task to run so I dont have to do it manually anymore.
/usr/local/psa/home/vhosts/xxxxx.com/httpdocs/sm_gen/runcrawl.php
Before the server can execute the php script it needs to know the path of the php command line interpreter. PHP is configured through Plesk. I have spoken with the tech support but they really have no idea what the path is to the CLI.
They suggested /usr/local/psa/admin/bin/php
So I used:
/usr/local/psa/admin/bin/php /usr/local/psa/home/vhosts/xxxxx.com/httpdocs/sm_gen/runcrawl.php
but when I try that I get a permission denied error. They say that php is configured through Plesk so that path above was their best guess.
Does anyone know the correct path to php so I can get this script to execute by a non- root user.
I can execute the script in a browser, but when I try to let Cron do it I get permission denied using:
/usr/local/psa/admin/bin/php
Hope I explained this alright, Im not a very server friendly user. Im just trying to get this task to run so I dont have to do it manually anymore.