Monday, May 14, 2012

PHP.ini and a few Linux commands

When you're in the jungle?
This helps a lot ...

Where is php.ini located?

That's the largest font I got to make my voice hhheard.  Then I came across this blog, so share and have sex :)

Well it depends on the Linux distribution you are using, the version of php and the way you install it with Apache web server. Php.ini may be here:


Or here:


Or here:


Anyway, you can always find any file named php.ini in this manner

find / -name php.ini

The simplest yet most powerful usage of the renowned find command. By its help I was able to locate the php.ini on my Ubuntu 9.04 Apache2 and PHP5:


Use phpinfo() to find out

Write a simple PHP file with the following content:

<?php phpinfo();

And upload it to your server and access it in your web browser to get a page like this:

PHP configuration file php.ini path


Post a Comment

Know us

Our Team


Video of the Day

Contact us


Email *

Message *