• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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