PHP.ini file location question

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

PHP.ini file location question

Postby DeborahP » 28. November 2011 13:34

Hi
I'm learning PHP and MySQL and have just dowloaded all the files. During my testing process I had to locate my php.ini file. According to my php info script it's located in c:windows but I can't find it.

Is this a simple case of downloading this file specifically and if so, does anyone have a link to it? (I've used the latest xamp download for windows pack).

Thanks
Deb
DeborahP
 
Posts: 4
Joined: 28. November 2011 13:16
Operating System: Windows vista

Re: PHP.ini file location question

Postby kleinweby » 28. November 2011 14:01

The php.ini you're looking for is in \xampp\php\php.ini. (See also http://www.apachefriends.org/en/xampp-w ... onfigfiles)
User avatar
kleinweby
AF Moderator
 
Posts: 393
Joined: 03. August 2005 19:52
Location: Magdeburg
Operating System: Mac OS X 10.7

Re: PHP.ini file location question

Postby DeborahP » 28. November 2011 14:13

Hi kleinweby - thanks for coming back to me so quickly. However, I'm sorry to say but the file is not there.
If I go to xamp\php\ I can find files called php.ini-development and php.ini-production but not just a stand alone php.ini file. I've also looked in C:windows which is where my php info script said it was but it's definately not there. I've even tried searching the whole computer for anything that might relate but to no avail. I'm guessing that for some reason this file didn't download with the pack and I need to try again but not sure if there's a way of just downloading this file specifically.
Thanks
Deb
DeborahP
 
Posts: 4
Joined: 28. November 2011 13:16
Operating System: Windows vista

Re: PHP.ini file location question

Postby kleinweby » 28. November 2011 14:27

Just downloaded the last XAMPP for windows myself and there should be definitly a php.ini in xampp\php\. Best is probably for you to redownload/reunpack XAMPP.
User avatar
kleinweby
AF Moderator
 
Posts: 393
Joined: 03. August 2005 19:52
Location: Magdeburg
Operating System: Mac OS X 10.7

Re: PHP.ini file location question

Postby Sharley » 28. November 2011 19:44

If, after following the recommendation by kleinwebby to download a fresh copy, you still find that there is no php.ini then this may be related to a Windows setting that is hiding file extensions for known file types.

This setting can usually be found in the Windows Control Panel under Folder Options>View>remove the tick from Hide extensions for known file types.

Also you may benefit from selecting Show hidden files and folders.

Here is a link that may help you find Folder Options in Vista:
http://www.vista4beginners.com/Folder-Options

Best wishes. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: PHP.ini file location question

Postby appleman001 » 29. November 2011 00:00

Hi all, I had the same problem. Could not find php.ini and hidden files was set to on. Seems like something went wrong with the install or download. Downloaded it again and all was working as expected. Thanks for everyone`s help!
appleman001
 
Posts: 1
Joined: 28. November 2011 23:46
Operating System: Windows 7

Re: PHP.ini file location question

Postby DeborahP » 29. November 2011 13:58

Hi All

Hidden files set to be viewed and I re-downloaded the files but it's still not there. Yet as it was downloading I actually saw it come up (as it scrolls through everything that's being downloaded), so my computer does think that it's downloaded the php.ini file.

I'll get by without it for now as I don't want to re-install yet again but will maybe try again in a few days.

Thanks for all your help. Maybe it's this latest version that's got a bit of a glitch that some computers have a problem with (obviously it would be mine!!).

Everything's working ok so far regardless. I'm in the early days of learning, so is it a major issue if I never find the file?

Deb
DeborahP
 
Posts: 4
Joined: 28. November 2011 13:16
Operating System: Windows vista

Re: PHP.ini file location question

Postby Sharley » 29. November 2011 14:07

You may need to edit the php.ini file at some stage.

In that same folder can you see pear.ini ?

No need to install again but download the zip or 7zip version and drag the php.ini file from the archive into the C:\xampp\php folder.

You will know for sure then that the file is present.

If it asks to overwrite the file then you will also know that the original php.ini file is also present but a setting in Windows is still hiding it.

Good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: PHP.ini file location question

Postby DeborahP » 29. November 2011 15:21

Thanks Sharley

This is a great idea of dragging just the bit I need from the zip file. Will try that. Can't find pear.ini either, so clearly there's some bits either not downloaded or still hidden. Will try your solution and see how I get on.

Regards

Deb
DeborahP
 
Posts: 4
Joined: 28. November 2011 13:16
Operating System: Windows vista


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 44 guests