• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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