Portal Home > Knowledgebase > Apache and PHP > Add your own php.ini file to the crontab command


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.

 



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Execution of HTML as PHP (Views: 5705)

* Minimum sign up periods for cPanel Web Hosting plans: Mini - 3mo., Pro - 1mo., Biz - 1mo., cPanel Reseller Hosting, Linux VPS, Windows VPS, Managed cPanel VPS and Dedicated Servers - 1mo. secret link
Accepted payments: Credit/Debit Card, Paypal, Payza, Skrill, WebMoney, CashU, Ukash, paysafecard, Bitcoin, Perfect Money, SolidTrust Pay, OKPay, EgoPay, Western Union/MG, Wire Transfer and more.