Jump to content

About That PHP.INI Path


Recommended Posts

In another post, the moderator says:

 

"3. Run phpinfo and make sure PHP is reading the php.ini you're modifying. To check this look for the Loaded Configuration File line. This should be set to the full path to the php.ini PHP is reading. As you have added PHP to the PATH, your php.ini should be in the root of your PHP installation folder.

 

NOTE: Ignore the Configuration File (php.ini) Path line above if its set to C:\WINDOWS (this is not where your php.ini needs to be).

 

Step three is the most important, if step three fails then you wont be able to configure PHP."

 

Note that what to do to correct the path if PHP.INI is C:\Windows is not given. I have C:\PHP\ in my environment variables but I get C:\Windows. Could someone tell me how to change that path?

 

 

Link to comment
https://forums.phpfreaks.com/topic/142889-about-that-phpini-path/
Share on other sites

  • 3 weeks later...

Hi srdancer,

 

In your phpinfo output, where does it say it is loading the php.ini from? (this is the line after the "Configuration File (php.ini) Path" line).

 

If it is showing "C:\PHP\php.ini" then your install is working fine. I have the same issue with my install of PHP with Apache on Windows. The first line can be ignored. I have checked all of the paths and conf entries in my install and it is all fine, but it still says "C:\Windows" on the first line.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.