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

So trying to follow the very un-descriptive guide at my webhost for compiling a new php extension:

**Compiling PHP 5.3 extensions
You can also compile and load your own extensions. Here's how:**

   1.  Download and unpack the extension (from PECL, for instance).
   2. If the extension is already compiled (most binary PHP loaders will be, for instance), skip to step 6.
   3.  /usr/local/php53/bin/phpize
   4. ./configure --with-php-config=/usr/local/php53/bin/php-config
   5.  make
   6. Copy the module to your .php/5.3/ directory.
   7.  Assuming your user is called "username" and your module is named "mymodule.so", add the following to your .php/5.3/phprc:
    extension = /home/username/.php/5.3/mymodule.so

Downloaded Openldap stable release online, uploaded the unpacked gzip via ftp to my server, did step 3, 4, 5. Now on step 6 is says "copy the module...". My question is where is the module for me to copy?

Sorry if it's obvious and I'm not seeing it; first time compiling a php extension :O

share|improve this question
CMIIW. did your step 5 working ?, if so, it's should be module created module.so. try to find the *.so on your module directory. or did you install php from OS package ? (yum, apt, zypper), if so, i think the php-ldap should be provided by default os package, you just need to install, e.g for centos/fedora/redhat: yum install php-ldap or yum install php53-ldap. –  Rikih Dec 13 '12 at 3:21
I found it; the server compiled the extension to: "/usr/local/php53/lib/php/extensions/" –  toups Dec 13 '12 at 3:28
okay, and then check your php.ini make sure step 7 (extension = path/ldap.so) exist and restart your apache. verify with php -m –  Rikih Dec 13 '12 at 3:58
add comment

Your Answer


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

Browse other questions tagged or ask your own question.