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

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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