HyderA
HyderA

Reputation: 21371

Where is my php.ini file location defined?

[root@localhost \]# php -i | grep Configuration
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => (none)

Upvotes: 1

Views: 7206

Answers (4)

ajreal
ajreal

Reputation: 47311

you should use this instead

php --ini

Upvotes: 8

Utku
Utku

Reputation: 31

it seems that apache has no right to read php.ini file under "/usr/local/lib" check the rights for

Upvotes: -1

Matej Baćo
Matej Baćo

Reputation: 1332

Make the following php script:

<?php
    phpinfo();
?>

and run it throw browser. It will contain "Loaded Configuration File" with path to loaded php.ini file.

Upvotes: 1

confiq
confiq

Reputation: 2918

That is for CLI, Run phpinfo() and run it thought CGI (apache).

Also, in order to help you you need to post more information!

Upvotes: 0

Related Questions