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

    https://survey.webpros.com/

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