• 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

  • We are developing a new feature in Plesk that will help you promote your websites or business on social media. We want to conduct a one-hour online UX test to present the prototype and collect feedback. If you are interested in the feature, please book a meeting via this link.
    Thank you in advance!
  • 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.

Question What should i add at path Command : to Cron, with Plesk v12.0.18 . OS Debian 7.8, Php 5.4

MoL

New Pleskian
Hallo

I'm a beginner. I rented a server with OS Debian 7.8 and Plesk v12.0.18 . Php 5.4 for my site but no technical support is provided. I have to solve any problem myself.
I want to run Cron, at 10 minutes but Looks like cron is not run on webserver.

What have I done: I am a beginner and I searched the internet :)
I saw hier my v Plesk Panel: https://conetix.com....n-job-plesk-12/

1) click domain-> Open in Control Panel -> Scheduled Tasks -> Add Task and then

Minute * = */10
Hour * = *
Month = *
Day of the week = *
Command * = .......... and Here ?

The path on my server is: /var/www/vhosts/Site.com/httpdocs/_cron/cron.php
I set for the cron, my mail and i receive this:

/var/www/vhosts/site.com.../httpdocs/_cron/cron.php: 1: /var/www/vhosts/site.com.../httpdocs/_cron/cron.php: cannot open ?php: No such file
/var/www/vhosts/site.com.../httpdocs/_cron/cron.php: 2: /var/www/vhosts/site.com.../httpdocs/_cron/cron.php: Syntax error: word unexpected (expecting ")")

What would be the correct path?

Can you help me pls?

Thanks in advance.
 
Last edited:
I tried to Command *

with:

wget --spider https://site.com/_cron/cron.php >/dev/null 2>&1

with:

wget --spider -O - /var/www/vhosts/site.com/httpdocs/_cron/cron.php >/dev/null 2>&1

with:

/var/www/vhosts/site.com/httpdocs/_cron/cron.php

but cron not working :(

Can someone help me please?

Thanks in advance.
 
Hello @MoldovanL,

You need to create the cron process with the root privilege.

Hello Menderes and thanks for the reply and help. I have access to the server but I am a beginner in administration. I understood and I did:
Click on: Server-> Tools & Resources -> Scheduled Tasks -> root , Add new Task: */10 * * * * and i put my mail to Settings.

With:

wget --spider https://site.com/_cron/cron.php >/dev/null 2>&1 not working

and with: /var/www/vhosts/Site.com/httpdocs/_cron/cron.php

, only with that I received the email alert every 10 minutes :

/bin/sh: 1: /var/www/vhosts/Site.com/httpdocs/_cron/cron.php: Permission denied

Maybe the server and the Php version.... are too old ...
If i put in any browser: https:// site.com/_cron/cron.php and then Enter.... cron work. This means that the script does its job and the cause is only from the server's cron setting.

Thanks in advance.
 
Back
Top