How do I see the extensions loaded by PHP?

Bialecki picture Bialecki · Jan 26, 2009 · Viewed 159.1k times · Source

It's got to be somewhere in the phpinfo() dump, but I just don't know where. Is it supposed to be under the "Additional Modules" section? Somewhere else? I'm trying to figure out why some extensions don't appear to be loaded, but I don't even know where I should be looking.

Answer

Abdullah Jibaly picture Abdullah Jibaly · Jan 26, 2009

Running

php -m
will give you all the modules, and
php -i
will give you a lot more detailed information on what the current configuration.