Httpd not starting


 
Thread Tools Search this Thread
Top Forums Web Development Httpd not starting
# 1  
Old 12-13-2013
Httpd not starting

I compiled apache 2.2.15 from source and installed it. When I try to start it, its not coming up.

Code:
# ./httpd -k start
# echo $?
1
# ps -ef | grep httpd | grep -v grep
#

# ./httpd -v
Server version: Apache/2.2.15 (Unix)
Server built:   Dec 13 2013 04:31:41

When I run it in gdb I am getting the below output:
Code:
(gdb) run
Starting program: /opt/hpws22/apache/bin/httpd
[New process 12520]
warning: reading register 584: No such process
warning: reading register 473: No such process
warning: reading register 474: No such process
warning: reading register 585: No such process
Detaching after fork from process 12520
[New process 12521]
warning: reading register 584: No such process
warning: reading register 473: No such process
warning: reading register 474: No such process
warning: reading register 585: No such process
Detaching after fork from process 12521
[New process 12523]
warning: reading register 584: No such process
warning: reading register 473: No such process
warning: reading register 474: No such process
warning: reading register 585: No such process
Detaching after fork from process 12523
[New process 12525]
warning: reading register 584: No such process
warning: reading register 473: No such process
warning: reading register 474: No such process
warning: reading register 585: No such process
Detaching after fork from process 12525
[New process 12527]
warning: reading register 584: No such process
warning: reading register 473: No such process
warning: reading register 474: No such process
warning: reading register 585: No such process
Detaching after fork from process 12527

Program exited with code 01.
(gdb)

There is nothing wrong with the httpd.conf file as far as I know:
Code:
# ./httpd -t
Syntax OK

I am using HP-UX 11.31

Code:
# ./httpd -e debug
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authn_file_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authn_dbm_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authn_anon_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authn_dbd_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authn_default_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authn_alias_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authz_host_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authz_user_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authz_dbm_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authz_owner_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authnz_ldap_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module authz_default_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module auth_basic_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module auth_digest_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module file_cache_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module cache_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module disk_cache_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module mem_cache_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module dbd_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module bucketeer_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module dumpio_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module echo_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module example_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module case_filter_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module case_filter_in_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module ext_filter_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module include_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module filter_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module substitute_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module charset_lite_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module ldap_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module log_config_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module log_forensic_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module logio_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module env_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module mime_magic_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module cern_meta_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module expires_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module headers_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module ident_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module usertrack_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module setenvif_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module version_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module proxy_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module proxy_connect_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module proxy_ftp_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module proxy_http_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module proxy_ajp_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module proxy_balancer_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module ssl_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module mime_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module dav_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module status_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module autoindex_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module asis_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module info_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module suexec_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module cgid_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module dav_fs_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module dav_lock_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module vhost_alias_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module negotiation_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module dir_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module imagemap_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module actions_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module speling_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module userdir_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module alias_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module rewrite_module
[Fri Dec 13 06:21:16 2013] [debug] mod_so.c(246): loaded module jk_module
#


Last edited by radoulov; 04-03-2014 at 12:21 PM.. Reason: More Info
# 2  
Old 12-13-2013
Why don't use apachectl to start it?
# 3  
Old 12-16-2013
Tried, but got the same result.
# 4  
Old 12-16-2013
Could you please post the content of the error log?
# 5  
Old 12-16-2013
Actually no logs were generated in apache/logs. The directory was empty.

I thinks it was some mistake that I made while compiling the code. It is working fine after I have compiled again.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Error starting httpd via systemctl

Hi, Most of our systems have the apache customized, and started manually via the command line. One eg : # ps -aux | grep http root 6278 0.0 0.0 112708 984 pts/2 S+ 16:32 0:00 grep --color=auto http root 6398 0.0 0.3 570636 14376 ? Ss Sep17 8:34... (6 Replies)
Discussion started by: anaigini45
6 Replies

2. Red Hat

Httpd.conf Config?

hi is it possible ? explain tome about below items StartServers 8 MinSpareServers 10 MaxSpareServers 20 ServerLimit 4000 MaxClients 4000 MaxRequestsPerChild 4000 this is my servers 8gig ram & cpu 12 core... what cann i putting in order this ? tnx (1 Reply)
Discussion started by: mnnn
1 Replies

3. UNIX for Dummies Questions & Answers

How to grep a line not starting with # from a file (there are two lines starting with # and normal)?

e.g. File name: File.txt cat File.txt Result: #INBOUND_QUEUE=FAQ1 INBOUND_QUEUE=FAQ2 I want to get the value for one which is not commented out. Thanks, (3 Replies)
Discussion started by: Tanu
3 Replies

4. Red Hat

Httpd service not starting... Error "Documentroot must be a directory"

I am working with CentOS 6.5. Indeed the document root /var/www/html is a directory and it is a mount point of one file system (not NFS) I observed, if I unmount that file system, I could able to start httpd. Is it restricted in CentOS 6.X that the Documentroot can not be a mount point? ... (5 Replies)
Discussion started by: atanubanerji
5 Replies

5. Red Hat

apache 2.2 httpd.conf

Hi, I was wondering if someone could help me out here. I am super-paranoid, so am trying to limit what PHP files can be executed on this server. I have a small list of files that I want to allow. The rest, deny: <Files ~ "\.(php|php3)$"> order allow,deny deny from all </Files> I... (0 Replies)
Discussion started by: Lobster
0 Replies

6. Red Hat

HTTPD and telnet

Hi there I have installed httpd and telnet-server on RHEL5 standalone machine. Normally when i install these services they work once i edit /etc/xinetd.d/telnet disable = no start httpd and xinetd services .. #chkconfig --level 345 httpd on #chkconfig --level 345 xinetd on ... (4 Replies)
Discussion started by: dplinux
4 Replies

7. Web Development

httpd problem or something else

Hi, I have a bit problem with my server.. The httpd server seems to be running and all but the websites which are hosted on it are not opening .. any hints what else it might be, here is what I get when /etc/init.d/httpd status Thank you for your replies (6 Replies)
Discussion started by: c0mrade
6 Replies

8. UNIX for Advanced & Expert Users

httpd and mysq after rsync

I have synced two linux machines; /home, /var/lib/mysql, and /var/www. As soon as I synced /etc/passwd and /etc/shadow I lost httpd and mysqld service. Anybody has any idea what caused httpd and mysqld down? When I try "/sbin/service httpd fullstatus" it gives "Elinks: Connection refused". ... (5 Replies)
Discussion started by: kumarrana
5 Replies

9. UNIX for Dummies Questions & Answers

httpd error

I installed FreeBSD6.x and apache2.x using gzip the tar files.i then gave ./configure command.It is know that by default apache2 will be created in /usr/local/apache2 but when i give ./configure command apache2 is not created and iam not able to execute apachectl start it says command not... (2 Replies)
Discussion started by: kumarangopi
2 Replies
Login or Register to Ask a Question