Location Of Php.ini Configuration File In Linux

RegisterLogin
Location Of Php.ini Configuration File In Linux
Post Description: this page will show you where is the location of the configuration file php.ini in php in a linux computer system
Tags: linux,php,configuration,settings
This Post Was Posted On Nov 27, 2011 By Sammer #4052
if you are reading this its probably because you are like me. i wanted to know where i can find the php.ini file. i needed to know because i need to make some configuration changes to my PHP and i have a linux Centos (its basically the same as fedora or redhat) there two ways of finding out.

1. by default, the php.ini file is located at: /etc/php.ini

2. if for some reason its not in the /etc/ directory in your system, you can still find out where the php.ini file is located at. simply by running a phpinfo.php file in your system. basically create a php file and put this function in it:
<?php
echo phpinfo.php();
?>


hope that helps
©2012 Webune Forums - Sat Dec 15, 2012 10:16 am
Powered by: Webune Forums V3