-1

I need to make some changes to the php.ini file. Can anyone tell me how and where can i find php.ini file on linux based server using Command line?

1
  • php -i | grep "Loaded Configuration File" Commented May 6, 2013 at 7:41

2 Answers 2

4

Just run the following command in the terminal to locate your php.ini file:

php -i | grep php.ini
Sign up to request clarification or add additional context in comments.

Comments

0

just run on your command line

php --ini

You will get something like

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/curl.ini,
/etc/php5/cli/conf.d/pdo.ini,
/etc/php5/cli/conf.d/pdo_sqlite.ini,
/etc/php5/cli/conf.d/sqlite.ini,
/etc/php5/cli/conf.d/sqlite3.ini,
/etc/php5/cli/conf.d/xdebug.ini,
/etc/php5/cli/conf.d/xsl.ini

Duplicate of Dude, where's my php.ini?

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.