×
UNIX.COM Login
Username:
Password:  
Show Password





×
UNIX.COM Login
Hello Unregistered
Welcome from United States
You are somewhere around Ashburn
Last Visit: 1 Minute Ago @ 03:24 PM
Bits: 0
UNIX Time: 1531682640

👤


HP-UX

HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Error when starting apache

👤 Login to reply

 
Thread Tools Search this Thread Display Modes
    #8  
Old 09-05-2016   -   Original Discussion by anaigini45
anaigini45's Unix or Linux Image
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 15 May 2018, 4:11 AM EDT
Posts: 115
Thanks: 7
Thanked 0 Times in 0 Posts
tcp 0 0 10.61.1.121.80 192.168.11.41.37274 CLOSE_WAIT
Sponsored Links
    #9  
Old 09-05-2016   -   Original Discussion by anaigini45
bakunin's Unix or Linux Image
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 3 July 2018, 11:43 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,786
Thanks: 112
Thanked 1,698 Times in 1,248 Posts
Quote:
Originally Posted by anaigini45 View Post
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
The Following User Says Thank You to bakunin For This Useful Post:
RavinderSingh13 (09-05-2016)
Sponsored Links
    #10  
Old 09-05-2016   -   Original Discussion by anaigini45
anaigini45's Unix or Linux Image
anaigini45 anaigini45 is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 15 May 2018, 4:11 AM EDT
Posts: 115
Thanks: 7
Thanked 0 Times in 0 Posts
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   -   Original Discussion by anaigini45
MadeInGermany's Unix or Linux Image
MadeInGermany MadeInGermany is offline Forum Staff  
Moderator
 
Join Date: May 2012
Last Activity: 15 July 2018, 1:04 PM EDT
Location: Simplicity
Posts: 4,151
Thanks: 365
Thanked 1,417 Times in 1,273 Posts
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.
Sponsored Links
    #12  
Old 09-05-2016   -   Original Discussion by anaigini45
bakunin's Unix or Linux Image
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
 
Join Date: May 2005
Last Activity: 3 July 2018, 11:43 PM EDT
Location: In the leftmost byte of /dev/kmem
Posts: 5,786
Thanks: 112
Thanked 1,698 Times in 1,248 Posts
Quote:
Originally Posted by anaigini45 View Post
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
Sponsored Links
👤 Login to reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error while starting Apache after compiling PHP and Curl sunnysthakur Red Hat 1 12-03-2013 09:47 AM
Starting an Apache Server bssandeshbs UNIX for Advanced & Expert Users 4 11-21-2009 01:00 PM
Problems starting Apache 2.0.54 mojoman Web Programming 1 01-14-2009 08:49 PM
Error about SSLProtocol when starting Apache moe2266 UNIX for Dummies Questions & Answers 3 11-03-2007 03:25 AM
Starting Apache cstovall UNIX for Dummies Questions & Answers 4 12-04-2002 09:18 AM



All times are GMT -4. The time now is 03:24 PM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.