CLI php.ini

dan.klasson

New member
Joined
Nov 19, 2014
Messages
1
Not sure if this is a DirectAdmin related question. On my Ubuntu machine I have two php.ini files:

/etc/php5/apache2/php.ini
/etc/php5/cli/php.ini

I'd like to have the same on our centOS server. As I would like to enable proc_open only on CLI so I can build our Laravel app.
 
Hello,

CLI version is used in certain cases to run php scripts with cron. Are you sure you want to allow proc_open for CLI?

You may copy php.ini file to any location and run php scripts with

Code:
#!/usr/local/bin/php -c /path/to/php.ini

Yes, they might do the same when run PHP scripts with cron.

Some time earlier I wrote a wrapper for PHP for such cases.
 
Back
Top