When overriding your php.ini file, it helps to know where your server's current php.ini file is. Just run the following command in the terminal to locate your php.ini file:
php -i | grep php.ini
You should get output something like this:
# php -i | grep php.ini
<tr><td class="e">Configuration File (php.ini) Path </td>t<d class="v">/usr/lib/php.ini /<td/><tr<>/code>
(I highlighted the path to the php.ini file.)
To copy the above php.ini file to your current directory use the following command:
cp /usr/lib/php.ini .
Did you find this post helpful? Leave a comment below, and subscribe to my RSS feed.