• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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