• 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!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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