• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Path to php binary?

C

corman420

Guest
I have a client who needs to run a cron job. I am using CentOS4 with Plesk 8.2.1 and the latets versions of PHP.

Here is the command:
/usr/bin/php /var/www/vhosts/DOMAINHERE/httpdocs/scripts/admin/jkcron.php > /dev/null

I get the following output:
-bash: /usr/local/bin/php: No such file or directory

I tried /usr/local/bin/php with same results.

I also tried:
lynx --dump http://[B]DOMAIN[/B]/scripts/admin/cronjobs.php > /dev/null

Can anyone point me in the right direction? (I have removed the domain URL for security reasons)

Thanks in advance!
 
try running
Code:
which php

For me that returns
Code:
/usr/bin/php

So in my cron I run it as :
Code:
/usr/bin/php -f /path/to/file >/dev/null 2>&1

if your getting
I get the following output:
-bash: /usr/local/bin/php: No such file or directory

Try making sure that the php file itself isnt looking for a binary somewhere....
 
Back
Top