How to find php extension_dir

Pay for an account and support us

In this tutorial I will show you how to find php extension_dir.

The extension_dir is the php system path into which the thirdparty installations were installing the modules like eaccelerator, memcache, etc.  Sometimes this path will be missing from server php.ini.  So then you need to find out the correct extension_dir and update it in php.ini. So that the installed extension will work fine.

So the question is how to find the extension_dir. There will be a php-config file with every php installations . You can find it from this file. To find it easily run the following command in shell:

# grep extension_dir=  `which php-config`

The above result will show an out put like the following ,

#  grep extension_dir=  `which php-config`

Please note the path will  be different in your server.

Pay for an account and support usPay for an account and support us

Leave a Reply

Your email address will not be published. Required fields are marked *