• 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.

PHP CLI & Cron Tasks

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.
 
Back
Top