Where is my php.ini file? Linux

php -i | grep “Loaded Configuration File”

And it will show you something like this Loaded Configuration File =>
/etc/php.ini.

*ALTERNATIVE METHOD:*

You can make a php file on your website, sales which run: ,
and you can see the php.ini location under: *”Loaded Configuration File”*.

Revisions

No comments yet.

Leave a Reply