Cron Jobs with PHP Files

From the cPanel, click the Cron Jobs icon and enter the following into the Command field:

 /usr/bin/php -q /home/USERNAME/public_html/PathToFile

You may also want to adjust the settings specifying when to run the cron job. After you finished, click on the SaveCrontab button.

Note: You will need to replace USERNAME with your user ID and PathToFile with the file name or the rest of the path to the file.

Note: You may need to adjust /home/ to /home1/ or home2/ or a different number depending on the home directory your account resides on. To view the home directory for your account simply view the stats column on the main cPanel page of your account and look for the home directory.

Note: To specify the php.ini file to use you may add "-c /home/USERNAME/PathTo/php.ini" to the cron job entry.

  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

Gesatech Solutions Nameservers (NS)

Please change your name servers to the correct Gesatech name servers. ns1.gesatech.net...

My SQL Version

The current version can be viewed in the cPanel on left side. Alternately, you can view which...

How to perform a telnet on different operating systems

Windows: Click Start | Run... Type cmd and press Enter In the box type telnet...

Uploading a website

The best way to upload your web site is via FTP. This can be done in a number of different ways...

Email setup in any client (General Information)

Below are the settings that are needed to configure and retrieve email from your main pop...