I was wondering where could I specify new path for php.ini file on Apache2 server running on Ubuntu.
Thanks in advance for all answers.
I was wondering where could I specify new path for php.ini file on Apache2 server running on Ubuntu.
Thanks in advance for all answers.
You have to modify the virtual hosts file to point to the new path. You will add a PHPINIDir directive to the file and then restart Apache -
<VirtualHost 2.4.6.8:80>
PHPINIDir /path/to/php.ini
</VirtualHost>
Make sure to use your virtual host's IP address in the directive.
Use PHPINIDir path
options in your vhost configuration, for example.
See more info here - http://www.howtoforge.com/how-to-specify-a-custom-php.ini-for-a-website-apache2-with-mod_php