Error when starting apache


 
Thread Tools Search this Thread
Operating Systems HP-UX Error when starting apache
# 8  
Old 09-05-2016
tcp 0 0 10.61.1.121.80 192.168.11.41.37274 CLOSE_WAIT
# 9  
Old 09-05-2016
Quote:
Originally Posted by anaigini45
tcp 0 0 10.61.1.121.80 192.168.11.41.37274 CLOSE_WAIT
That is NOT a process ID, it is the port number. "192.168.11.41.37274" is a "socket": a certain port on a certain IP address.

When we talk about "TCP connections" we are talking about something you can picture like a garden hose, where, instead of water, data can be pumped through (in both directions). This is also called a "virtual channel". The "sockets" are the end points at the two connecting systems where this garden hose is attached. In this case you have two systems connected: 10.61.1.121 and 192.168.11.41. The "garden hose" connects port 80 on the first system to port 37274 on the second.

You really should read the suggested book (or another, but i found this one to be the best to learn from) to understand basic networking concepts.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 10  
Old 09-05-2016
Finally, the solution for this was to kill the 2 httpd processes listed from the lsof command :
Code:
# /usr/local/bin/lsof -i ":80" | grep "LISTEN"
top     13106  www    3u  IPv6 0xe00000038137cac0      0t0  TCP *:http (LISTEN)
top     13179  www    3u  IPv6 0xe00000038137cac0      0t0  TCP *:http (LISTEN)
#

After killing these 2 processes, all the CLOSE_WAIT connections were gone.
Then, I could restart the apache process once again.
# 11  
Old 09-05-2016
Also check that
Code:
ndd -h tcp_time_wait_interval

is 1 minute (60000 miliseconds), not 4 or 10 minutes.
Still this can mean that when you stop a service like apache you must wait 1 minute until you can start it again.
# 12  
Old 09-05-2016
Quote:
Originally Posted by anaigini45
Finally, the solution for this was to kill the 2 httpd processes
[...]
After killing these 2 processes, all the CLOSE_WAIT connections were gone.
Then, I could restart the apache process once again.
This was exactly what i have told you in first place: the apache processes are named "httpd", not "apache".

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Red Hat

Error while starting Apache after compiling PHP and Curl

Hello, I am facing an issue while starting the apache server after compiling php and curl. Below are the versions i am using. php-5.2.17 httpd-2.2.17 curl-7.16.0 CentOS5.5x64 Compiling above packages without curl working very fine but when trying to compile php with curl below error is... (1 Reply)
Discussion started by: sunnysthakur
1 Replies

3. UNIX for Advanced & Expert Users

Starting an Apache Server

Sir, I have installed an Apache server in Fedora 9 (packages) and when i go to etc folder and try the command httpd -k start it says command not found....can any one help me out!!! ---------- Post updated at 12:02 PM ---------- Previous update was at 11:46 AM ---------- When i... (4 Replies)
Discussion started by: bssandeshbs
4 Replies

4. Web Development

Problems starting Apache 2.0.54

Hi, I just installed Apache 2.0.54 and when I try and start httpd I get mohit@mohit-desktop:/sw/pkg/apache/bin$ ./httpd -k start httpd: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName (13): make_sock: could not bind to address :80 no listening... (1 Reply)
Discussion started by: mojoman
1 Replies

5. UNIX for Dummies Questions & Answers

Error about SSLProtocol when starting Apache

I just installed Apache 2.2.6 & when trying to start it i got this: Invalid command 'SSLProtocol', perhaps misspelled or defined by a module not included in the server configuration Any help? (3 Replies)
Discussion started by: moe2266
3 Replies

6. Solaris

Problems starting apache 1.3 with mysql

I've been working on a project to replace one of the my group's primary NIS servers. It also runs mysql and apache, as it is the host for the our team's hardware tracking database and website. Its running apache 1.3, and for some odd reason, I can't get apache to start on system boot. The... (1 Reply)
Discussion started by: godspunk32
1 Replies

7. Shell Programming and Scripting

Docbase starting Error

Hi All, I am trying to start the docbase but i am getting the following error-: $ ./dm_start_ncsglorbiprd00 interpreter "/bin/sh" not found file link resolves to "/usr/bin/sh" sh: ./dm_start_ncsglorbiprd00: not found. Can anyone please help me in this regard. Thanks in advance ... (0 Replies)
Discussion started by: Divyac
0 Replies

8. Programming

starting with APR (Apache Portable Runtime)

Hi I am new to APR and I started programming using APR 1.2.2. So please guide me how to start learning it? (0 Replies)
Discussion started by: sumsin
0 Replies

9. UNIX for Dummies Questions & Answers

Starting Apache

I successfully installed Apache, but When I tried to start it I experienced problems. After installing and compiling, I typed the PREFIX "usr/local/ apache/bin/apachect1 start." The output was path not found. After checking the apachect1 file using vi, I found the file empty. There was no... (4 Replies)
Discussion started by: cstovall
4 Replies

10. UNIX for Dummies Questions & Answers

starting Apache on Solaris 8

I am not by any means a UNIX guru if you can't already tell by the question I'm about to ask. How do I launch Apache web server on my SOlaris 8 server without rebooting it? Any help would be much appreciated!!! -Thanks (5 Replies)
Discussion started by: jskillet
5 Replies
Login or Register to Ask a Question