Error in libxml2.so.2

Results 1 to 6 of 6
  1. #1
    Apprentice junioraoc is offline
    MemberRank
    Jul 2012 Join Date
    23Posts

    Error in libxml2.so.2

    Code:
    root@hosted-by:~# service apache2 start
     * Starting web server apache2
    apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: libxml2.so.2: wrong ELF class: ELFCLASS32
    Action 'start' failed.
    The Apache error log may have more information.
                                                                                                                            [fail]
    root@hosted-by:~#
    Already changed the libxml2.so.2, but the error continues.
    Thank you!


  2. #2
    0, 1, 1, 2, 3, 5, 8, 13, argonaut is offline
    MemberRank
    Sep 2011 Join Date
    AustraliaLocation
    602Posts

    Re: Error in libxml2.so.2

    Quote Originally Posted by junioraoc View Post
    Code:
    root@hosted-by:~# service apache2 start
     * Starting web server apache2
    apache2: Syntax error on line 203 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: libxml2.so.2: wrong ELF class: ELFCLASS32
    Action 'start' failed.
    The Apache error log may have more information.
                                                                                                                            [fail]
    root@hosted-by:~#
    Already changed the libxml2.so.2, but the error continues.
    Thank you!
    Have you tried re-installing libxml2?
    rm /lib/libxml2.so.2; aptitude reinstall libxml2
    or
    sudo apt-get --purge [strike]remove[/strike] libxml2
    sudo apt-get install libxml2
    Last edited by argonaut; 13-10-13 at 01:42 PM.

  3. #3
    Psy Sins Psytrac is online now
    MemberRank
    Jul 2011 Join Date
    Hammond, INLocation
    2,015Posts

    Re: Error in libxml2.so.2

    unless the structure of that command changed you can do just "sudo apt-get purge libxml2"

  4. #4
    0, 1, 1, 2, 3, 5, 8, 13, argonaut is offline
    MemberRank
    Sep 2011 Join Date
    AustraliaLocation
    602Posts

    Re: Error in libxml2.so.2

    Yes, thought that remove was not meant to be there [s]My Bad[/s]
    Last edited by argonaut; 13-10-13 at 01:44 PM.

  5. #5
    uint is best int. Swoosh91 is offline
    MemberRank
    Feb 2010 Join Date
    BerlinLocation
    712Posts

    Re: Error in libxml2.so.2

    Your java = 64 bit, your lib = 32 bit, now guess what the issue could be knowing that you can't load 32 bit libs into 64 bit address space due to different byte alignments and default sizes...

  6. #6
    Apprentice junioraoc is offline
    MemberRank
    Jul 2012 Join Date
    23Posts

    Re: Error in libxml2.so.2

    Quote Originally Posted by argonaut View Post
    Have you tried re-installing libxml2?
    rm /lib/libxml2.so.2; aptitude reinstall libxml2
    or
    sudo apt-get --purge [strike]remove[/strike] libxml2
    sudo apt-get install libxml2

    Well, with this command:
    Code:
    # apt-get - purge remove libxml2
    # apt-get install libxml2
    It worked perfect!

    But it has a problem, this command deletes all programs php5, phpmyadmin etc., had to install again.

    At least it worked for me.

    Thank you.



Advertisement