Can't find location of php.ini file

davidsopen wrote on Monday, July 08, 2013:

The installation instructions state that it’s in the etc folder. I can’t find that either.

Any help would be greatly appreciated.

yehster wrote on Monday, July 08, 2013:

The location varies depending on operating system and how you installed php, or if using a “hosted environment” you may not actually have access to the php.ini file.

That said, this may help you

Per the article, one good way to determine it is to create a php script with this code:

<?php phpinfo(); ?>

and open it in browser, it will show the file which is actually being read !

fsgl wrote on Monday, July 08, 2013:

Presuming a need to change a timezone or a setting as explained here:

C-drive->xampp->xampp control, run xampp control, stop Apache, 2 boxes to the right, click Config button, choose PHP (php.ini) from the drop down menu and start Apache when done.

aethelwulffe wrote on Tuesday, July 09, 2013:

In older xampp, you will find it under c:\xampp\php\php.ini . Warning, the file tends to hide visually speaking. I have gone looking for it and not seen it. There are a million files in there that start with php, and they are longer file names and sort of blanket it.
/etc/ is a directory location for Linux. Often developers include that little gem without bothering to state that the location is for (at least some versions of) Linux, and without giving equivalents. It does more harm than good.
Best to use a search feature instead. Installing GREP (or GREP for Windows) is a dependable tool if your OS does not do a good job. There actually may be multiple files on your system named php.ini though.