Page 1 of 1

Where is C:\xampp\apache\bin\php.ini ?

PostPosted: 13. September 2009 18:33
by nuwud
I just completed a fresh install of XAMPP on my Windows XP and everything works great. I went ahead and created a new MySQL database, no problems there. I go to set up Joomla! and get a notice saying Display Errors: is On. I find out that you have to turn it off in this post:

viewtopic.php?p=120191

Well, the C:\xampp\apache\bin\php.ini file is missing entirely. I can't even find a copy of it anywhere online to simply replace the missing file manually. Could someone please let me know what I can do?

Re: Where is C:\xampp\apache\bin\php.ini ?

PostPosted: 13. September 2009 20:28
by Nobbie
Run a phpinfo() which tells you, where php.ini is located.

Re: Where is C:\xampp\apache\bin\php.ini ?

PostPosted: 13. September 2009 21:17
by nuwud
Thanks for your reply.

It came back saying: no value

I know where it should be, it just isn't there...

Re: Where is C:\xampp\apache\bin\php.ini ?

PostPosted: 13. September 2009 21:35
by Nobbie
I dont know why php.ini is missing. Maybe you (or a software) accidently removed php.ini.

But anyway: simply download the ZIp Version of Xampp and extract the php.ini coming with this package.

Re: Where is C:\xampp\apache\bin\php.ini ?

PostPosted: 13. September 2009 21:53
by nuwud
I downloaded the XAMPP for Windows .zip and extracted it, but there is no php.ini file in xampp\apache\bin...

I have no idea what that means or what to do about it. :?:

Here is the php info I get:
Image

Re: Where is C:\xampp\apache\bin\php.ini ?

PostPosted: 14. September 2009 00:08
by Izzy
The Loaded Configuration File in your phpinfo is what you are after.

It's just a case of getting a handle on naming conventions which, as you may find out along the way, the names can have little significance especially if created by programmers and script writers who seem to be lost in their own little secluded world.

In the most recent XAMPP version, from 2.7.1 I believe, the php.ini was moved to the \xampp\php folder.

Re: Where is C:\xampp\apache\bin\php.ini ?

PostPosted: 14. September 2009 01:03
by nuwud
That helped! I changed the Display Error: Yes to No in the directory file C:\xampp\php\php.ini and rebooted my system. Now it is all good! Thanks guys!