Where is php.ini located?

php.ini can be located in quite few different places depending on your Linux distribution and Apache installation.

Some common places are:
/etc/php.ini
/etc/php/php.ini
/etc/php5/php.ini
/etc/php5/apache2/php.ini
/usr/bin/php5/bin/php.ini


If you still can't find it, run:
find / -name php.ini
This will find all files with name php.ini on your server.


Comments  

Politi Tommy!
# Politi Tommy! 2014-01-08 19:32
Thanks!!
op
# op 2012-11-09 08:55
op
Yvonne
# Yvonne 2012-04-25 19:25
Thanks for this!

Newsletter

Subscribe to receive occasional updates on new posts.
Your email will not be used for any other purpose and you can unsubscribe at any time.
Please wait