• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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