How to Set a Cron Job to Use a Specific php.ini File

Some scripts executed with a Cron Job require a specific php.ini file to be used. When executing a PHP script from a Cron Job (or via the command line), you can use a custom php.ini file. The most common situation where a custom php.ini file is needed is when a user’s code requires access to something such as Zend Optimizer which is specified in the php.ini file.

Was this article helpful?

Related Articles