clem_c_rock Posted November 12, 2007 Share Posted November 12, 2007 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 Quote Link to comment Share on other sites More sharing options...
Branden Wagner Posted November 12, 2007 Share Posted November 12, 2007 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. Quote Link to comment Share on other sites More sharing options...
clem_c_rock Posted November 14, 2007 Author Share Posted November 14, 2007 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 Quote Link to comment Share on other sites More sharing options...
btherl Posted November 14, 2007 Share Posted November 14, 2007 I think he means sudo apt-get install apache2 php5 Quote Link to comment Share on other sites More sharing options...
clem_c_rock Posted November 14, 2007 Author Share Posted November 14, 2007 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 Quote Link to comment Share on other sites More sharing options...
btherl Posted November 15, 2007 Share Posted November 15, 2007 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 Quote Link to comment Share on other sites More sharing options...
clem_c_rock Posted November 17, 2007 Author Share Posted November 17, 2007 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 Quote Link to comment Share on other sites More sharing options...
btherl Posted November 18, 2007 Share Posted November 18, 2007 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 .. Quote Link to comment Share on other sites More sharing options...
clem_c_rock Posted November 20, 2007 Author Share Posted November 20, 2007 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. Quote Link to comment Share on other sites More sharing options...
clem_c_rock Posted January 21, 2008 Author Share Posted January 21, 2008 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.