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

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