installation error: "libphp5.so is garbled"

Discussion in 'Installation/Configuration' started by platzwart, Feb 21, 2007.

  1. platzwart

    platzwart New Member

    Hi,

    lamp is installed and works fine. but we've got a problem installing ispconfig :mad: ... While installation the following error occurs:

    ********************
    Checke, ob Programm httpd installiert ist... (checking whether httpd is installed or not)
    /usr/bin/httpd
    OK
    Überprüfe die Syntax der httpd.conf... (checking syntax of httpd.conf)
    Syntax error on line 53 of /etc/apache2/apache2.conf:
    API module structure `php5_module' in file /usr/local/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?
    ERROR: Die Syntax der httpd.conf ist nicht ok! Bitte korrigieren Sie den Fehler. Die Installation bricht hier ab! (the syntax of httpd.conf is not ok. please correct the error. installation aborted.)
    ********************

    we're absolutley sure that our httpd.conf has no syntax errors and the libphp5.so is not garbled!!! there must be a conflict between some mudules or something else :confused: . anyone got an idea?

    thx for your suggestions! ;)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig uses the modules from your linux distribution, so there can be no conflicts between ISPConfig and your current modules.

    Please post the output of:

    httpd -t
     
  3. platzwart

    platzwart New Member

    httpd -t
    Syntax error on line 53 of /etc/apache2/apache2.conf:
    API module structure `php5_module' in file /usr/local/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, this assumes that it is not a ISPConfig related problem.

    Is the file /usr/local/apache2/modules/libphp5.so present on your system?

    I think the best way is to try to reinstall the php5 apache module from your linux distribution and see if this fixes the problem.
     
  5. platzwart

    platzwart New Member

    when installing lamp the problem was that php wasn't able to find the apache2 installed (with apt-get). so i downloaded the source then, compiled and installed it, now everything worked fine.
    but now installing ispconfig the problem was, that it looked in /etc/apache2/ for httpd.conf and apache2.conf files instead of looking in /usr/local/apache2/conf/ . in /usr/local/apache2/conf/ extists no apache2.conf so i made two softlinks in /etc/apache2 : httpd.conf -> /usr/local/apache2/conf/httpd.conf and apache2.conf -> /usr/local/apache2/conf/httpd.conf .
    now the error above occured...
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please make sure that the program httpd (find the current location with "which httpd") is a symlink to your manually installed apache binary.
     
  7. platzwart

    platzwart New Member

    how do i do that? could you please explain how to do? THX!! ;)
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of the command:

    which httpd
     
  9. platzwart

    platzwart New Member

    /usr/bin/httpd
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Execute:

    mv /usr/bin/httpd /usr/bin/httpd_old
    ln -s /usr/local/apache2/bin/httpd /usr/bin/httpd

    make sure that /usr/local/apache2/bin/httpd is the path to your current apache binary.
     
  11. platzwart

    platzwart New Member

    YEAH!! it works - THXXX! ;)
     

Share This Page