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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby nuwud » 13. September 2009 18:33

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?
nuwud
 
Posts: 4
Joined: 13. September 2009 14:55

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

Postby Nobbie » 13. September 2009 20:28

Run a phpinfo() which tells you, where php.ini is located.
Nobbie
 
Posts: 8759
Joined: 09. March 2008 13:04

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

Postby nuwud » 13. September 2009 21:17

Thanks for your reply.

It came back saying: no value

I know where it should be, it just isn't there...
nuwud
 
Posts: 4
Joined: 13. September 2009 14:55

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

Postby Nobbie » 13. September 2009 21:35

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.
Nobbie
 
Posts: 8759
Joined: 09. March 2008 13:04

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

Postby nuwud » 13. September 2009 21:53

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
nuwud
 
Posts: 4
Joined: 13. September 2009 14:55

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

Postby Izzy » 14. September 2009 00:08

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.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

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

Postby nuwud » 14. September 2009 01:03

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!
nuwud
 
Posts: 4
Joined: 13. September 2009 14:55


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 38 guests