Where php.ini file located on server

02nd, January 2018 By

The location of php.ini file si depended upon apache web server installed or the version of the php you are using.

But using phpinfo function you can easily find its location on the server.Create an phpinfo.php file on your server and copy paste the given code in your phpnfo.php  file.


Now you will see the screen on your browser like this ,here you will find the your php.ini file location on the server.In screen you will seen the “Loaded Configuration File” is the location of your php.ini file.

Php.ini file location

You will also directly find out the php.ini file on your FTP ,the path of your php.ini file is






This will help out you to find php.ini file path.

Leave a Reply

Your email address will not be published. Required fields are marked *