Add your own php.ini file to the crontab command

If you want to use your own php.ini in the implementation of cronjobs, add the following to the cron command:

/usr/local/bin/php -c /home/user1/public_html/php.ini /home/user1/public_html/filecron.php

Note: The command refers to the username user1. To set the cron command you need to use your web hosting username.

 

  • 221 Users Found This Useful
Was this answer helpful?

Related Articles

Where to put CGI files

CGI files will work from any folder on your hosting. However, we advise you to keep them in...

PHP version

You can see the version of PHP when you log in your web hosting control panel and select “Server...

Disable TRACE or TRACK method in Apache web server

If you like to keep your VPS hosting server or dedicated server secure you may need to disable...

PHP modules installed on the web hosting

Normally the web hosting servers have standard installation of the following PHP modules:...

How to use Apache mod_rewrite

QHoster.com has installed Apache mod_rewrite on all web hosting servers.To enable mod_rewrite, it...