• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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