• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

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