• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be 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.

Cron trouble / php / python / short_open_tag

SebastianK1

Basic Pleskian
Hi there,

crons will not run. The new cron tasks in plesk 12.5 is hell :)

To run php files via cron, it is not possible to run like "php -q /var/www/......../test.php"
>>> -: php: command not found

"/usr/bin/php -q /var/www/......../test.php"
>>> -: /usr/bin/php: No such file or directory

so, we switched to the new plesk like crons style "run php script" :-(

But - NO! - will not run.
We changed "short_open_tag" from OFF to ON, in every php ini. WHY the hell is it switched to OFF? But, switch to ON will not work! We changed all php files running via cron from "<?" to "<?php".

GREAT, [deleted: some] php files are running now.

And, how to run cron with a python script??
-: python: command not found
-: /usr/bin/python: command not found

?????

I always think people want to improve things, but what happend here is totaly not understandable....

Please help, want to get systems running stable!

Best,

Sebastian
 
Last edited:
ok, crons running php scripts must be started like this:

/usr/bin/php5 -f /var/www/vhosts/xxxxx.com/httpdocs/crons/xxxxx_xxxxx.php

Best,

Sebastian
 
how to start python cron scripts?

/usr/bin/python will not work
/usr/bin/python2 will not work
/usr/bin/python2.7 will not work
 
bahhhhhhhhhhh !!

you have to activate "allow user acces via shell" to run python crons (system user section)!!!!!!

Best,
Sebastian

But the ugliest thing is to change all scripts from "<?"`to "<?php" :-(
 
Back
Top