How to locate the php.ini file (xampp)

Navane picture Navane · May 31, 2011 · Viewed 368.4k times · Source

I am using xamppserver for PHP development and want to edit the php.ini file; where can I locate it?

Answer

Lukas Knuth picture Lukas Knuth · May 31, 2011

For Windows, you can find the file in the C:\xampp\php\php.ini-Folder (Windows) or in the etc-Folder (within the xampp-Folder).

Under Linux, most distributions put lampp under /opt/lampp, so the file can be found under /opt/lampp/etc/php.ini.

It can be edited using a normal Text-Editor.

Clarification:

  • Xampp (X (for "some OS"), Apache, MySQL, Perl, PHP)
  • Lampp (Linux, Apache, MySQL, Perl, PHP)

in this context, they can be substituted for one another.