#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    50
    Rep Power
    14
    i have installed mysql, apache and php4 on my system.
    Mysql 3.22.32-1
    Apache 1.3.12
    PHP 4.0.1 pl2

    MySQL instalation has been fine and working. The problem is with Apache and PHP4.
    I installed Apache first and then PHP (without starting Apache). Only after i succesfully installed php, i tried giving the following command:
    [root@localhost bin]# ./apachectl start

    But it gave me the following error........
    Syntax error on line 211 of /usr/local/apache/conf/httpd.conf:
    Cannot load /usr/local/apache/libexec/libphp4.so into server: libmysqlclient.so.6: cannot open shared object file: No such file or directory
    ./apachectl start: httpd could not be started

    pls let me know if any soln. is there to this prob.

    duke.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    5
    Rep Power
    0
    I have encountered the same problem with a server at work. Try ./configure - ing Apache, then ./configure PHP --with-apache=../path/to/apache/src

    make, and make install PHP

    Then go back to Apache, ./configure again with
    --activate-module=src/modules/libexec/libphp4.a
    --enable-module=php4
    --enable-module=so

    then make and make install Apache.

    I spent a good 5 hours trying to fix that exact same problem, so I may be a bit confused, but I'm pretty sure that is what I did to fix it.
  4. #3
  5. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    or you can try this simpler approach

    1) edit /etc/ld.so.conf and append a line with the path to your libmysqlclient.so [/usr/local/lib/mysql/]

    2) run /sbin/ldconfig

    3) apache should now start ok

    4) let us know if it worked! :-)

Similar Threads

  1. open doc/pdf file in external viewer
    By lost_pirana in forum Java Help
    Replies: 0
    Last Post: February 16th, 2004, 07:24 PM
  2. Pointer problem in opening a file
    By LAKI in forum C Programming
    Replies: 13
    Last Post: February 11th, 2004, 08:27 AM
  3. Pointer problems opening file *formatted*
    By LAKI in forum C Programming
    Replies: 4
    Last Post: February 11th, 2004, 06:06 AM
  4. Those browser windows when you go to 'open file'...
    By awishedforsong in forum Java Help
    Replies: 0
    Last Post: February 7th, 2004, 09:17 AM
  5. Strcpy() an open file in C?
    By Slurm in forum C Programming
    Replies: 2
    Last Post: February 2nd, 2004, 06:56 AM

IMN logo majestic logo threadwatch logo seochat tools logo