| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2000-05-27 11:55 UTC] blien at ozramp dot net dot au
  [2000-05-27 11:57 UTC] blien at ozramp dot net dot au
  [2000-06-09 02:50 UTC] zeev at cvs dot php dot net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Mon Nov 03 03:00:01 2025 UTC | 
PHP4 does not load extension modules unless LD_LIBRARY_PATH is set (even if extension_dir directive is correct). Funny thing is that dl("extension.so"); works fine without LD_LIBRARY_PATH being set., however apache generates these errors: PHP Fatal error: Unable to load dynamic library 'pgsql.so' - pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Fatal error: Unable to load dynamic library 'ldap.so' - ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Fatal error: Unable to load dynamic library 'pgsql.so' - pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Fatal error: Unable to load dynamic library 'ldap.so' - ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0 And yes, apache repeats the errors!? The following is the command used (within .spec to build an rpm, hence the variables). ./configure --prefix=%{_prefix} \ --with-apxs=%{_prefix}/sbin/apxs \ --with-config-file-path=/etc/httpd \ --enable-safe-mode \ --with-exec-dir=%{_prefix}/bin \ --with-system-regex \ --disable-debug \ --with-zlib \ --with-gdbm \ --with-db2 \ --enable-debugger \ --enable-magic-quotes \ --enable-track-vars \ --enable-sysvsem \ --enable-sysvshm \ --enable-track-vars \ --with-xml \ --with-ftp extension_dir = /usr/lib/apache/ ; directory in which the loadable extensions (modules) reside hope this helps.