The Curious Website Designer

Local php.ini File Not Loading

Posted by The Curious Website Designer | Posted on Thu 17 Jan 2019

Local php.ini File Not Loading

I recently experienced a problem overriding the main PHP configuration file with a php.ini file containing the changes I wanted in the individual site's root directory.

This is how I fixed the problem

 

Edit the main PHP configuration file and find:

user_ini.filename = 

 

Replace with:

user_ini.filename = "php.ini"

 

Make sure the line doesn't start with a semi-colon ( ; ).

Save the file and restart Apache.

 

 

Tags: php, php.ini not loading, problems with php