Visit The New, Modern Unix Linux Community


Error Restart apache


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Error Restart apache
# 1  
Error Restart apache

Hi
Im apache service restart
Error

Code:
[mn@SRV-Web ~]$ service httpd reload
Reloading httpd:
service httpd reload
Reloading httpd:                                           [FAILED]

Code:
 service httpd start
Starting httpd: (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
                                                           [FAILED]

Code:
Server version: Apache/2.2.15 (Unix)
Server built:   Jul 18 2016 15:24:00


Code:
BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:60687  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:52038  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:49089  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:39251  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:46442  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:45666  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.240:80    ::ffff:192.168.10.15:50647  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:43184  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:48337  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:57527  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.240:80    ::ffff:192.168.10.15:43741  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:42253  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:36737  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:45120  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.240:80    ::ffff:192.168.10.15:42350  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:56127  ESTA                                                                                                                     BLISHED
tcp        0  51616 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:60732  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:45067  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:53283  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:47900  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.240:80    ::ffff:192.168.10.15:54141  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:34332  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:51869  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.240:80    ::ffff:192.168.10.15:33455  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:59655  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:52402  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:46366  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:58349  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:57432  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:57479  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:36001  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:35214  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:39796  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:41135  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:41555  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:51897  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:49530  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:55335  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:39946  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:38357  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:35732  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:34744  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:37177  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:57170  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.240:80    ::ffff:192.168.10.15:50107  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:43997  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:33683  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:33893  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:35759  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:42578  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:42709  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:34150  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:58067  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:45839  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:33104  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:41187  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:43407  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:48092  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:58317  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:41940  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:59615  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:53939  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:57407  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:33815  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:39314  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:56446  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:45195  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:37410  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:54337  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:41116  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.240:80    ::ffff:192.168.10.15:56096  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:57486  TIME                                                                                                                     _WAIT
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:54148  ESTA                                                                                                                     BLISHED
tcp        0      0 ::ffff:192.168.10.12:80     ::ffff:192.168.10.15:45755  TIME

????????????

Last edited by mnnn; 07-26-2016 at 04:34 AM..
# 2  
A process is already running that is LISTENing on port 80.

Here is one method to determine the process.
Code:
lsof -i -n -P |grep -w :80


Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #40
Difficulty: Easy
HTML stands for 'Hyper Technology Transfer Protocol'.
True or False?

9 More Discussions You Might Find Interesting

1. Red Hat

Apache service not coming up after restart

When I update the server with new SSL certificates, and restart httpd, I get errors : # service httpd restart Stopping httpd: rm: cannot remove `/usr/local/apache2/bin/httpd/logs/httpd.pid': Not a directory Starting httpd: ... (0 Replies)
Discussion started by: anaigini45
0 Replies

2. Shell Programming and Scripting

Error while running restart script -

Hi All I have written below basic restart script but it is giving me the following error - error - syntax error at line 40 : `else' is not matched . below is the script can someone assist me what i am doing wrong - #!/bin/ksh cd bin . ./set_sysm sleep 60 ./swstop -f 0 ... (1 Reply)
Discussion started by: honey26
1 Replies

3. Shell Programming and Scripting

Script to restart apache when running out of memory

Hi, I have a problem with running out of memory in my Ubuntu web server (4GB RAM) because many people try to access my server. I used to restart manually my apache server to clear out the memory & swap. Can anyone tell me how to write bash script that can automatically restart apache when... (2 Replies)
Discussion started by: nica
2 Replies

4. Shell Programming and Scripting

How to keep process running after apache restart.

I have posted this on the Web subforum but it seems that nobody knows to do this, maybe someone has a solution here. Thank you I have a PHP application that starts a couple of processes on the server...the problem is that if I restart apache those running apps will die. How can I start them... (1 Reply)
Discussion started by: valiadi
1 Replies

5. Web Development

How to keep process running after apache restart.

Hi, I have a PHP application that starts a couple of processes on the server...the problem is that if I restart apache those running apps will die. How can I start them in a way that they are not killed when I restart/stop apache ? $cmdstr = "nohup ".$config."/".$config."... (6 Replies)
Discussion started by: valiadi
6 Replies

6. Web Development

Can't restart apache. PHP is broken.

I need to restart my apache, but apachectl configtest tells me that Syntax error on line 208 of /etc/httpd/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: ap_signal I've tried rebuilding php, I'm not... (2 Replies)
Discussion started by: tatebn
2 Replies

7. Solaris

apache error

dear all i install apache in solaris 10 and configure it but when i start catalina it give the error below : Exception in thread "main" java.lang.NoClassDefFoundError: cat/conf/krb5/conf does any one know about this error ?? (2 Replies)
Discussion started by: murad.jaber
2 Replies

8. Shell Programming and Scripting

need help: shell script to restart apache when no. of processes keeps growing

I need a shell script to kill apache and restart it, in case the number of processes keeps growing. The logic is like the below, but I don't know how to get the number and neither the syntax. Could somebody kindly help? if no_of_processes (ps ax grep httpd) > 200 then killall httpd... (14 Replies)
Discussion started by: _joshua_
14 Replies

9. UNIX for Dummies Questions & Answers

SCO 5.0.5 Error - Requiging Restart.

Came into work Monday afternoon (AEST) and walking into this ... CPU 4 WARNING : TABLE_GROW - mblock table page limit of 500 pages (NSTRPAGES) exceeded by 1 page CPU 4 WARNING : STRD - cannot grow STREAMS message header table PANIC : SVIRTOPHYS - page not present Unable to freeze processor... (1 Reply)
Discussion started by: Cameron
1 Replies

Featured Tech Videos