Hello,
I have installed Apache 2.2.4 and php 5.2.4 on my Ubuntu platform and when I do sudo httpd -k restart

I get this:

httpd: Syntax error on line 66 of /etc/apache2/httpd.conf: API module structure `auth_digest_module' in file /usr/lib/apache2/modules/mod_auth_digest.so is garbled - perhaps this is not an Apache module DSO?

I know I have a php version that's not working w/ my Apache 2.2.4 but I'm not sure about how to find the correct version of PHP that will work w/ this version of Apache.

Anyone know the best way to resolve this?

Thanks,
Clem C

    I ran: sudo apt-get install apache2 php5

    And got:

    Reading package lists... Done
    Building dependency tree... Done
    apache2 is already the newest version.
    php5 is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

    Sounds like somethings strange that the newest versions of these aren't compatable

      I'm confused - what makes you think PHP is the problem? From the error message you posted, it looks like PHP has nothing to do with the error...

        I know when I comment out line #66 it just says the next module is garbled:

        httpd: Syntax error on line 67 of /etc/apache2/httpd.conf: API module structure `cache_module' in file /usr/lib/apache2/modules/mod_cache.so is garbled - perhaps this is not an Apache module DSO?

        and if I comment out line 68 I get:

        httpd: Syntax error on line 68 of /etc/apache2/httpd.conf: Cannot load /usr/lib/apache2/modules/mod_mem_cache.so into server: /usr/lib/apache2/modules/mod_mem_cache.so: undefined symbol: apr_atomic_dec

        and then I comment out the next one I get:
        httpd: Syntax error on line 71 of /etc/apache2/httpd.conf: Cannot load /usr/lib/apache2/modules/mod_ext_filter.so into server: /usr/lib/apache2/modules/mod_ext_filter.so: undefined symbol: apr_poll_socket_add

        and so on.

        Something is all messed up.

          Sounds like a botched Apache installation rather than PHP... have you tried removing Apache and reinstalling it?

            2 months later

            I ran: sudo apt-get remove apache2

            and then reinstalled apache w/ sudo apt-get install apache2

            Then when I restarted the server, I got the same error as before.

            Just don't get it

              Write a Reply...