Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I installed kloxo hosting panel on my vps.
Now I want to know what where is the php extension directory?
Thanks in advance...

share|improve this question

migrated from stackoverflow.com Jul 25 '12 at 2:34

This question came from our site for professional and enthusiast programmers.

3 Answers 3

up vote 13 down vote accepted

If you have customized your extension directory post-installation/configuration, you can find the path in php.ini (normally located at /etc/php.ini). Look for the extension_dir parameter. This can also be found via phpinfo() (also search for extension_dir in the output).

Additionally, or if it's not included in php.ini, and if you have access to a command-line you can run:

php-config --extension-dir

This will print the current path PHP uses.

share|improve this answer

The extension directory is whatever is set for extension_dir in php.ini.

share|improve this answer

Probably you have to install the php5-devel package on a linux host for using php-config.

As an alternative for the command-line you can use this:

php -i |grep "extension_dir"
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.