{"id":8561,"date":"2020-04-30T14:23:48","date_gmt":"2020-04-30T18:23:48","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=8561"},"modified":"2021-12-08T09:59:10","modified_gmt":"2021-12-08T14:59:10","slug":"php-configuration-files-location","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/php-configuration-files-location\/","title":{"rendered":"Where to Find php.ini PHP Configuration Files on Your Server"},"content":{"rendered":"\n
PHP configuration files are not located in the same place in all operating systems variants. Therefore for you to know where your specific configuration is located, we have provided this little guide featuring the major operating systems and distros.<\/p>\n\n\n\n
First off you can run Here is a quick example of Unix-based systems.<\/p>\n\n\n\n Here are the general locations of the macOS<\/strong><\/p>\n\n\n\n RedHat\/CentOS\/Fedora<\/strong><\/p>\n\n\n\n Ubuntu < 16.10<\/strong><\/p>\n\n\n\n Ubuntu >= 16.10<\/strong><\/p>\n\n\n\n Ubuntu >= 18.04<\/strong><\/p>\n\n\n\n xampp<\/strong><\/p>\n\n\n\n PHP configuration files are not located in the same place in all operating systems variants. Therefore for you to know where your specific configuration is located, we have provided this…<\/p>\n","protected":false},"author":1,"featured_media":8562,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,14,28,16],"tags":[58,154,164,320,354,359,424,433,452,531,591,604,635,646],"yoast_head":"\nphp -i<\/code> from the command-line on Windows<\/a> or terminal on Unix<\/a> systems. This will display a lot of information about your particular setup. Next, you need to look for the value of the
Loaded Configuration File<\/code>.<\/p>\n\n\n\n
$ php -i | grep 'Loaded Configuration File'\nLoaded Configuration File => \/etc\/php.ini<\/code><\/pre>\n\n\n\n
php.ini<\/code> PHP configuration files.<\/p>\n\n\n\n
\/private\/etc\/php.ini<\/code><\/pre>\n\n\n\n
\/etc\/php.ini<\/code><\/pre>\n\n\n\n
\/etc\/php5\/{cli,apache2,cgi}\/php.ini<\/code><\/pre>\n\n\n\n
\/etc\/php7\/{cli,apache2,cgi}\/php.ini<\/code><\/pre>\n\n\n\n
\/etc\/php\/{php_version}\/{cli,apache2,cgi}\/php.ini<\/code><\/pre>\n\n\n\n
{installation directory}\/php\/php.ini<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"