LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-19-2007, 12:05 PM   #16
PhilTR
Member
 
Registered: Jun 2004
Location: Birmingham, AL
Distribution: FC6, FC8, FC11
Posts: 102

Original Poster
Rep: Reputation: 16
Apache: httpd fails to start


This morning I commented out all modules with hash marks and tried to start 'httpd' w/o success. I looked at the 'httpd' error logs. No entries.

Next I ran 'configtest' and noted syntax errors which I tried to overcome by commenting out relevant lines in 'httpd.conf ' with the following results:

[root@localhost ~]# sudo /etc/init.d/httpd configtest
httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf.d/proxy_ajp.conf: Cannot load /etc/httpd/modules/mod_proxy_ajp.so into server: /etc/httpd/modules/mod_proxy_ajp.so: undefined symbol: proxy_module
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 318 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 377 of /etc/httpd/conf/httpd.conf:
Invalid command 'DirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 391 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 399 of /etc/httpd/conf/httpd.conf:
Invalid command 'TypesConfig', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 10 of /etc/httpd/conf.d/manual.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration

Next I umcommented all module lines and began commenting them out one at a time beginning with 'mod_auth_basic.so'. I checked for syntax errors, tried to start 'httpd' and then checked the 'httpd' log errors if 'httpd' failed to start. I continued this approach one line at a time untill all modules that did not also produce syntax errors were commented out. My module section is now as follows:

Modules commented out w/o producing syntax errors: 02/19/07

#LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
#LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_user_module modules/mod_authz_user.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
#LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
#LoadModule authz_default_module modules/mod_authz_default.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule logio_module modules/mod_logio.so
#LoadModule env_module modules/mod_env.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule deflate_module modules/mod_deflate.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
#LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule info_module modules/mod_info.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
#LoadModule actions_module modules/mod_actions.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
#LoadModule suexec_module modules/mod_suexec.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
#LoadModule cgi_module modules/mod_cgi.so

Configtest results are as follows:

[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 10 of /etc/httpd/conf.d/manual.conf:
Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 90 of /etc/httpd/conf.d/ssl.conf:
Invalid command 'TransferLog', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 220 of /etc/httpd/conf.d/ssl.conf:
Invalid command 'SetEnvIf', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 11 of /etc/httpd/conf.d/php.conf:
Invalid command 'AddHandler', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
httpd: Syntax error on line 179 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_dav_fs.so into server: /etc/httpd/modules/mod_dav_fs.so: undefined symbol: dav_buffer_append
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 232 of /etc/httpd/conf.d/system-config-httpd.conf:
Invalid command 'IndexOptions', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 717 of /etc/httpd/conf/httpd.conf:
Invalid command 'LanguagePriority', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 18 of /etc/httpd/conf.d/php.conf:
Invalid command 'DirectoryIndex', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax error on line 5 of /etc/httpd/conf.d/manual.conf:
Invalid command 'AliasMatch', perhaps misspelled or defined by a module not included in the server configuration
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
httpd: Syntax error on line 189 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_proxy_balancer.so into server: /etc/httpd/modules/mod_proxy_balancer.so: undefined symbol: proxy_module
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
httpd: Syntax error on line 195 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/mod_disk_cache.so into server: /etc/httpd/modules/mod_disk_cache.so: undefined symbol: ap_cache_cacheable_hdrs_out
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK
[root@localhost ~]# sudo /etc/init.d/httpd configtest
Syntax OK

There should be a one-to-one corolation between module line and 'configtest' result. If a module is responsible for 'httpd' failing to start it should be one of the uncommented above. No 'httpd' log error messages were ever produced.

Next I'll try commenting-out all lines that produce syntax errors and that are easily fixed by commenting out one or two lines in 'httpd.conf ' or 'system-config-httpd.conf '. phil
 
Old 02-19-2007, 01:34 PM   #17
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,545

Rep: Reputation: 1790Reputation: 1790Reputation: 1790Reputation: 1790Reputation: 1790Reputation: 1790Reputation: 1790Reputation: 1790Reputation: 1790Reputation: 1790Reputation: 1790
Take a look at apache documentation about the modules and their usage to see what modules you need and the list of directives provided by each one of them.
 
Old 02-20-2007, 02:39 PM   #18
PhilTR
Member
 
Registered: Jun 2004
Location: Birmingham, AL
Distribution: FC6, FC8, FC11
Posts: 102

Original Poster
Rep: Reputation: 16
Apache: httpd fails to start

With all but 11 modules commented out, I tried:

db) run -X -d /etc/httpd
Starting program: /usr/sbin/httpd -X -d /etc/httpd
(no debugging symbols found)
(no debugging symbols found)
Breakpoint 1 at 0x80034146
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1208899888 (LWP 32765)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

Program exited with code 01.

Not sure what it means but, I think it is my problem. phil
 
Old 02-21-2007, 12:46 AM   #19
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
I had the same problem as in your first post, it is something to do with system-config-httpd in fedora

to get httpd going again

detete /etc/httpd/conf.d/system-config-httpd.conf/
restore original httpd.conf file by renaming the httpd.conf.bak to httpd.conf
and manually configure the conf file by gedit as required, do not use system-config-httpd

Hope it helps
 
Old 02-21-2007, 02:17 AM   #20
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
Took me an hour to search where exactly I had found the solution, anyway here it is

http://forums.fedoraforum.org/archiv.../t-103537.html
 
Old 02-24-2007, 03:05 PM   #21
PhilTR
Member
 
Registered: Jun 2004
Location: Birmingham, AL
Distribution: FC6, FC8, FC11
Posts: 102

Original Poster
Rep: Reputation: 16
Apache: httpd fails to start

Well 'httpd' is now up n running. The solution was simple and found at:
http://www.gidforums.com/t-1889.html

I changed the port that 'httpd' was listening on from '80' to '78'. What gave me the clue as to where to look was the error msg:

(98)Address already in use:make_sock:could not bind to address[::]:80
(98)Address already in use:make_sock:could not bind to address[0.0.0.0]:80

I googled the second string and found the above website. I changed ports and ran:

[root@localhost ~]# httpd -k start

Now I need to figure out who is hogging port 80.

Well I discovered that 'httpd.conf ' and 'system-config-httpd.conf ' do not play well together.

'http.conf ' has a listen line:

#Listen 12.34.56.78:80
Listen *:80

and

'system-config-httpd.conf ' also has a listen line:

#Listen 12.34.56.78:80
#Listen *:80

I discovered that on my system both can not be 'listening'. If they are 'httpd' won't start or re-start. It has to be one or the other. As you'll notice I commented out 'Listen *.:80' in 'system-config-httpd.conf '. Also, using 'System, Administration, Server Settings, HTTPD' GUI causes the line in '/ect/httpd/conf.d/system-config-httpd.conf ' to be uncommented and you'll have to open it with a text editor as root and re-comment it.

But my headache is only partially cured. I can access my 'web server' page and 'ftp' dir from my LAN WinXP box using a 192.168.0.xxx IP but not a 74.229.248.xxx IP. Others located in Virginia can. Grrrrrr! Router issue? New one installed (VersaLink C90-327W30-06) or possibly SELinux issue.

phil

Last edited by PhilTR; 02-24-2007 at 09:47 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd fails to start arsham Linux - Software 9 09-04-2007 02:29 AM
httpd fails to start, can't load Perl modual blackdragonblood Linux - Software 8 03-13-2006 02:51 PM
FC4 - httpd fails to start prabhatsoni Linux - Software 5 01-30-2006 06:22 PM
Apache httpd won't start rob19 Linux - Software 6 05-06-2003 10:41 PM
Apache problem - httpd won't start. Iced_Falcon Linux - Networking 3 12-22-2001 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration