Expat errors reported in stderr.log

Discussion in 'General' started by Sindre, Jan 18, 2009.

  1. Sindre

    Sindre Member

    I have just switched from Apache to LiteSpeed, and now I'm seeing lots of these errors in sterr.log:

    Code:
    expat reports error code 2
            description: syntax error
            line: 1
            column: 49
            byte index: 49
            total bytes: 0
    
            data beginning 10 before byte index: L 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head expat reports error code 2
            description: syntax error
            line: 1
            column: 49
            byte index: 49
            total bytes: 0
    
            data beginning 10 before byte index: L 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head
    I have no idea how to interpret these errors. No url or path is provided for the problem script either.

    Do you have any clue what may be causing this?
  2. mistwang

    mistwang LiteSpeed Staff

    You need to build PHP with configuration options matching that from Apache mod_php or suphp.
  3. Sindre

    Sindre Member

    The PHP is built with the same configuration except from the Apache-specific parameters like "--with-apxs2=/usr/local/apache/bin/apxs". I noticed the parameter "--with-libexpat-dir=/usr" in both PHP configurations. I don't know what this does, but should it be different for LiteSpeed? 'expat' is mentioned in the errors.

    Thanks,
    Sindre
  4. mistwang

    mistwang LiteSpeed Staff

    If phpinfo() shows similar configuration options, then PHP should be fine. I think the same error will happen with Apache, the error message may be discard or logged in error_log or somewhere else.
    If the error does make the web site behave differently than when Apache being used, you can safely ignore those messages.

Share This Page