Jump to content

php.ini directory in phpinfo is wrong


lisa

Recommended Posts

I have PHP5 running with Apache2 on XP. I've been having a hard time getting MySQL working. Then I noticed that according to phpinfo(), php.ini is in C:/windows. My php.ini file is not in C:/windows (there isn't even a php.ini file in C:/windows) it's in C:/php5. I've tried putting the file in C:/windows but it still doesn't recognize my changes. I've also added a registry variable HKEY_LOCAL_MACHINE/SOFTWARE/PHP/IniFilePath pointing to C:/php5 but I've had no luck.
Can anyone help me?

thanks,
lisa
Link to comment
Share on other sites

[!--quoteo(post=387721:date=Jun 25 2006, 06:25 AM:name=wildteen88)--][div class=\'quotetop\']QUOTE(wildteen88 @ Jun 25 2006, 06:25 AM) [snapback]387721[/snapback][/div][div class=\'quotemain\'][!--quotec--]
If you have Apache2 add this line to your httpd.conf file:
[code]PHPIniDir "C:/php5"[/code]

Once you have added that save your httpd.conf file and restart Apache.
[/quote]


I've always had that line in my httpd.conf file and I restart Apache every time I make a change to php.ini but I [i]STILL[/i] am having this issue.
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.