Saturday 24 December 2016

Find location of php.ini using Terminal

To get Location of php.ini file using terminal






Run the following command in terminal


php --ini


if php is install this command will run

else you have to run first this one

sudo apt-get install php5-cli

then run

php --ini

it will give result as

Configuration File (php.ini) Path: /etc/php5/cli
Loaded Configuration File:         /etc/php5/cli/php.ini
Scan for additional .ini files in: /etc/php5/cli/conf.d
Additional .ini files parsed:      /etc/php5/cli/conf.d/pdo.ini




banner
Previous Post
Next Post

0 comments: