suphp not working

Discussion in 'HOWTO-Related Questions' started by Anand_47, Jul 21, 2012.

  1. Anand_47

    Anand_47 New Member

    I am trying to compile lamp server with suphp. I installed all of it and i am getting php info page with normal apache handler but when i try to use suphp i am getting errors with libmysqlclient.so.18 cannot open shared object no such file or directory i am using mysql 5.5 php 5.4 and apache 2.2 . I installed sql server in /sql directory .i can see /sql/lib/libmysqlclient.so.18.0.0 .But why it is not working :( .Anyone please help me out thanx :)
    :confused:
     
  2. TiTex

    TiTex Member

    probably can't find the lib because it's not in the standard location like /lib/ or /usr/lib/
    you should create a symlink for the library in one of this dirs usally /usr/lib/ or /usr/lib/mysql/

    Code:
    for file in $(ls /sql/lib/ | grep libmysqlclient.so); do ln -s /sql/lib/$file /usr/lib/$file; done
     
  3. Anand_47

    Anand_47 New Member

    suphp

    I did the same thing but its not working i created symbolic links to /usr/lib/mysql
    in the directory libmysqlclient.so.16 and some other files present .But still I am getting errors..Check my error log screen shots Thanks for quick replay.. :) :confused:
     

    Attached Files:

  4. TiTex

    TiTex Member

    what linux distribution are you using ?
    is it a 32bit or 64bit distribution ?
    can you also post the link for the howto you followed ?
    also what is the output of ls -l /usr/lib/ | grep libmysqlclient.so && ls -l /usr/lib/mysql
     
  5. Anand_47

    Anand_47 New Member

    suphp

    Yes here it is i am using cenos 6 32-bit edition i listed /usr/lib but i didnt get any output probably nothing in there here m posting my /usr/lib/mysql and /sql/lib directory thanks for your posts bro.. :)
     

    Attached Files:

    • 1.jpg
      1.jpg
      File size:
      39.9 KB
      Views:
      109
    • 2.jpg
      2.jpg
      File size:
      49.4 KB
      Views:
      108
  6. TiTex

    TiTex Member

    run these commands as i posted them one by one, just copy/paste in a ssh terminal
    Code:
    rm -f /usr/lib/mysql/libmysqlclient.so
    rm -f /usr/lib/mysql/libmysqlclient.so.18
    rm -f /usr/lib/mysql/libmysqlclient.so.18.0.0
    for file in $(ls /sql/lib/ | grep libmysqlclient.so); do ln -s /sql/lib/$file /usr/lib/mysql/$file; done
    and try again after that , if still not working post again the content of
    Code:
    ls -l /usr/lib/mysql
     
  7. Anand_47

    Anand_47 New Member

    I am still getting same error i think my os damaged have to reinstall or something
    i was getting same error when i try to install fastcgi also.linux sometimes so hard like this unknown things sorry for my bad english thanks for your support
    :)
     

Share This Page