Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2004
    Location
    earth
    Posts
    96

    Unanswered: Cannot load /usr/lib64/httpd/modules/libphp5.so into server

    Hello guys,

    Apache2 on Redhat Linux 6 64 bits install successfully and able to publish the page on browser on local machine or remote client and installation of httpd-devel

    After a successful make and make install from php 5.5.6.tar.gz, it has created a line as below here in httpd.conf at this path /etc/httpd/conf/httpd.conf

    LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so

    I am able to locate the file libphp5.so at /usr/lib64/httpd/modules

    After I have stop the service of httpd by issuing the command as below here in the following path /etc/rc.d/init.d
    ./httpd stop

    and start it back again with the following command.
    ./httpd start

    It is not able to start with the following error message return.

    Starting httpd: httpdyntax error on line 218 of /etc/httpd/conf/httpd.conf: Cannot load
    /usr/lib64/httpd/modules/libphp5.so into server: libdb2.so.1: cannot open shared object: No such file or directory.

    I have located libdb2.so.1 file at the following location:
    /opt/ibm/db2/V10.5/lib32/libdb2.so.1
    /opt/ibm/db2/V10.5/lib64/libdb2.so.1

    Did anyone hit the same issue before?

    Thanks in advance for any hint or advice, I have been seeking for the solution and been trying many ways but couldn't fix this.

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    your package manager should be able to handle that.
    failing that you could change the line in httpd.conf to point to the correct directory
    or work out why there isn't a copy in the specified directory and fix that

    although to be truthfuill most of the installations Ive done recently have been via XAMPP
    I'd rather be riding on the Tiger 800 or the Norton

  3. #3
    Join Date
    Feb 2004
    Location
    earth
    Posts
    96
    Thanks Healdem for your reply.
    I have try setenv ld_library_path /home/db2inst1/sqllib/lib written and saved in httpd.conf at /etc/httpd/conf and try to issue a ./httpd start at /etc/rc.d/init.d but apache hit the same error.

    Starting httpd: httpdyntax error on line 218 of /etc/httpd/conf/httpd.conf: Cannot load
    /usr/lib64/httpd/modules/libphp5.so into server: libdb2.so.1: cannot open shared object: No such file or directory.

  4. #4
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    bear in mind httpd.conf s only read when the server starts, its not enough to change the config file you have to restart thew server to work.

    ubnless there is a virtual path/symbolic link then
    setenv ld_library_path /home/db2inst1/sqllib/lib
    is unlikely to work assuming the file is in /opt/ibm/db2/V10.5/lib64/libdb2.so.1

    so your options seem to me to either point the config fiel to
    /opt/ibm/db2/V10.5/lib64/
    or
    create a symbolic link
    or
    copy the file to the current path in httpd.conf
    I'd rather be riding on the Tiger 800 or the Norton

  5. #5
    Join Date
    Feb 2004
    Location
    earth
    Posts
    96
    Thank you very much Healdem !!!

    I have changed setenv ld_library_path /opt/ibm/db2/V10.5/lib64/ written and saved in httpd.conf at /etc/httpd/conf and that enable it to start apache.

    Thank you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •