• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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