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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.