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

Plesk Panel 11.5.30 Cron problem

JuricaK

New Pleskian
Hello,
I need a command for cron job that runs the php file with the argument.
For example (php -q httpdocs/cron.php quick) where "quick" argument.

On webmin panel command (php -q /home /user/public_html/cron.php quick) works great.

Until now I always got an error
-> httpdocs/cron.php: line 1: ?Php: No such file or directory

Please help
thanks
 
Hi,

could you please check the first line of cron.php?
It probably starts with ?Php but it should start with <?php

Regards,
Kristian
 
Hi,

could you please check the first line of cron.php?
It probably starts with ?Php but it should start with <?php

Regards,
Kristian


Hi Kristian,

my cron.php looks like:

<?php
require_once('config.php');
#################
#################
#################
?>

Tnx for your reply.
 
Last edited:
Hi,

same for config.php? :)

As long as this command does not run by shell, you won't be able to setup a working cron.
As we do not know what you have setup or if you have modified some files with some windows Editor or similar,
it's hard to tell. The issue is not Plesk related.

Regards,
Kristian
 
Back
Top