• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is 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.

Scheduling a php script to run everyday

E

EddieA

Guest
Hello all,

Linux 2.6.18-028stab091.2
os_CentOS 5
Panel Version 10.2.0

I would like to schedule the server to run a PHP script daily at 2 am. (I have that file in one of my websites)

I think I am very close, but I do not know what to put in the Command line..

I am in this section of the plesk panel:

Home>Server Tools>Scheduled Tasks

I uploaded an image of the screenshot: http://www.iubik.com/Images/BAS/PLESK.jpg

(furthermore I do not know the directory of the file)
 
Assuming you have wget installed on your server, you can use the following command:

/usr/bin/wget --output-document=/dev/null http://www.example.com/file.php

It might be wget is not located in the /usr/bin directory, to check where it's located, execute the following command on your server: which wget
 
Thanks Sanderv,

How do I know if I have wget installed?
If I dont have it... how do I instal it?

Thanks,
Eddie
 
If the command which wget returns something like /usr/bin/wget, you have it installed. If it isn't installed, the command returns something like /usr/bin/which: no wget in ....

If you have not got it installed, you can install it with the following command
yum install wget
 
Back
Top