Jump to content

auth_digest_module garbled Apache 2.2.4/ php 5.2.4


clem_c_rock

Recommended Posts

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

Link to comment
Share on other sites

All of that is compatible... if you are using Ubuntu.. then you can open a terminal and type

sudo apt-get apache2 php5

but the problem is telling you that you have a syntac error.. meaning there is something mistyped on line 66.. what does line 65-67 have on it? or you can just install apache2 and php5 through apt and your php will work just fine.

Link to comment
Share on other sites

This is what I have around line 66 (I don't see anything wrong on line 66)

 

LoadModule authn_file_module /usr/lib/apache2/modules/mod_authn_file.so

LoadModule authn_dbm_module /usr/lib/apache2/modules/mod_authn_dbm.so

LoadModule authn_anon_module /usr/lib/apache2/modules/mod_authn_anon.so

LoadModule authn_dbd_module /usr/lib/apache2/modules/mod_authn_dbd.so

LoadModule authn_default_module /usr/lib/apache2/modules/mod_authn_default.so

LoadModule authz_host_module /usr/lib/apache2/modules/mod_authz_host.so

LoadModule authz_groupfile_module /usr/lib/apache2/modules/mod_authz_groupfile.so

LoadModule authz_user_module /usr/lib/apache2/modules/mod_authz_user.so

LoadModule authz_dbm_module /usr/lib/apache2/modules/mod_authz_dbm.so

LoadModule authz_owner_module /usr/lib/apache2/modules/mod_authz_owner.so

LoadModule authz_default_module /usr/lib/apache2/modules/mod_authz_default.so

LoadModule auth_basic_module /usr/lib/apache2/modules/mod_auth_basic.so

LoadModule auth_digest_module /usr/lib/apache2/modules/mod_auth_digest.so

LoadModule cache_module /usr/lib/apache2/modules/mod_cache.so

LoadModule mem_cache_module /usr/lib/apache2/modules/mod_mem_cache.so

LoadModule dbd_module /usr/lib/apache2/modules/mod_dbd.so

LoadModule dumpio_module /usr/lib/apache2/modules/mod_dumpio.so

LoadModule ext_filter_module /usr/lib/apache2/modules/mod_ext_filter.so

LoadModule include_module /usr/lib/apache2/modules/mod_include.so

LoadModule filter_module /usr/lib/apache2/modules/mod_filter.so

LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so

 

Also,  when I try sudo apt-get apache2 php5

 

I get this:

E: Invalid operation apache2

Link to comment
Share on other sites

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

Link to comment
Share on other sites

There may be another package like php5-cgi or similar.

 

Can you run "dpkg --list | grep php" and show the output?  Here's what I get on my system (which is debian, but probably has similar packages):

 

$ dpkg -l|grep php
ii  php4           4.3.10-19      server-side, HTML-embedded scripting languag
ii  php4-apd       0.4p2-5        PHP code execution profiler and debugger
ii  php4-cgi       4.3.10-19      server-side, HTML-embedded scripting languag
ii  php4-cli       4.3.10-19      command-line interpreter for the php4 script
ii  php4-common    4.3.10-19      Common files for packages built from the php
ii  php4-curl      4.3.10-19      CURL module for php4
ii  php4-dev       4.3.10-19      Files for PHP4 module development
ii  php4-domxml    4.3.10-19      XMLv2 module for php4
rc  php4-gd        4.3.10-16      GD module for php4
ii  php4-imap      4.3.10-19      IMAP module for php4
ii  php4-ldap      4.3.10-19      LDAP module for php4
ii  php4-mcal      4.3.10-19      MCAL calendar module for php4
ii  php4-mcrypt    4.3.10-1       MCrypt module for php4
ii  php4-mhash     4.3.10-19      MHASH module for php4
ii  php4-mysql     4.3.10-19      MySQL module for php4
ii  php4-pear      4.3.10-19      PEAR - PHP Extension and Application Reposit
ii  php4-pgsql     4.3.10-4       PostgreSQL module for php4
ii  php4-recode    4.3.10-19      Character recoding module for php4
ii  php4-snmp      4.3.10-19      SNMP module for php4
ii  php4-xslt      4.3.10-19      XSLT module for php4

Link to comment
Share on other sites

Here's what I got when I ran  dpkg --list | grep php:

 

 

ii  libapache2-mod-php5    5.1.2-1ubuntu3.9            server-side, HTML-embedded scripting languag

ii  php5                  5.1.2-1ubuntu3.9            server-side, HTML-embedded scripting languag

ii  php5-common            5.1.2-1ubuntu3.9            Common files for packages built from the php

ii  php5-mysql            5.1.2-1ubuntu3.9            MySQL module for php5

ii  php5-mysqli            5.1.2-1ubuntu3.9            MySQL Improved module for php5

ii  phpmyadmin            2.8.0.3-1                    set of PHP-scripts to administrate MySQL ove

 

Link to comment
Share on other sites

Ok.  Keep in mind that what I'm about to say is based on my experience with Debian, not Ubuntu.  It may work, it may not.  Anyway, this package is the one that in debian links php to apache:

 

ii  php4-cgi      4.3.10-19      server-side, HTML-embedded scripting languag

 

There is a similar php5 version, php5-cgi.

 

But looking at your original post, the error was triggered in mod_auth_digest.so.  That's not part of php.  You could try just commenting out that line and see what happens ..

Link to comment
Share on other sites

One thing I should mention, when I start commenting out the module includes the next one in line shows up as 'garbled'.   

 

Behold:

 

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.

Link to comment
Share on other sites

  • 2 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.