Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change PHP.ini location file?

I'm using apache2 on OSX, by default the php.ini location is:

/private/etc/php.ini

I need to change it to this...

/Library/FileMaker Server/Web Publishing/publishing-engine/php/lion/lib/php.ini

Any help?

like image 409
Andy Sanchez Avatar asked Oct 05 '13 17:10

Andy Sanchez


1 Answers

Use PHPIniDir directive in apache config file after LoadModule :

example:

LoadModule php5_module /path/to/php5_module

PHPIniDir path/to/php.ini

Or set the PHPRC environment variable:

example:

export PHPRC=path/to/php.ini

like image 120
iodragon Avatar answered Sep 30 '22 15:09

iodragon