Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd November 2006, 15:32
Geoinline Geoinline is offline
Member
 
Join Date: Nov 2005
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't restart Apache2.. httpd (pid #) not running

When I type /etc/init.d/apache2 restart in the shell as root I get
Code:
httpd (pid 24649?) not running
(98)Address already in use: make_sock: could not bind to address [::]:443
no listening sockets available, shutting down
Unable to open logs
the out put of netstat -tap is
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 localhost.localdo:mysql *:*                     LISTEN     21342/mysqld
tcp        0      0 *:81                    *:*                     LISTEN     6058/ispconfig_http
tcp        0      0 *:ftp                   *:*                     LISTEN     23659/proftpd: (acc
tcp        0      0 localhost.domain:domain *:*                     LISTEN     21729/named
tcp        0      0 localhost.locald:domain *:*                     LISTEN     21729/named
tcp        0      0 *:smtp                  *:*                     LISTEN     23796/master
tcp        0      0 localhost.localdoma:953 *:*                     LISTEN     21729/named
tcp6       0      0 *:imaps                 *:*                     LISTEN     21469/couriertcpd
tcp6       0      0 *:pop3s                 *:*                     LISTEN     21174/couriertcpd
tcp6       0      0 *:pop3                  *:*                     LISTEN     21120/couriertcpd
tcp6       0      0 *:imap2                 *:*                     LISTEN     21423/couriertcpd
tcp6       0      0 *:www                   *:*                     LISTEN     24705/apache2
tcp6       0      0 *:ssh                   *:*                     LISTEN     20549/sshd
tcp6       0      0 ip6-localhost:953       *:*                     LISTEN     21729/named
tcp6       0      0 *:https                 *:*                     LISTEN     24705/apache2
tcp6       0      0 localhost.domain:ssh ::ffff:192.168.15:59572 ESTABLISHED21601/sshd: admin [
Clearly apache2 is indeed running. So why is it lieing to me? Why does it say it's not running? Is it looking at the wrong pid? Why would it do that? Should I try restarting the whole system?
Reply With Quote
Sponsored Links
  #2  
Old 24th November 2006, 15:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Which distribution do you use?

Did you try
Code:
/etc/init.d/apache2 stop
to stop it? If it doesn't help, try
Code:
kill -9 pid
where pid is the process ID that you see in the netstat output. Also check Apache's error log for errors.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 2nd December 2006, 00:20
Geoinline Geoinline is offline
Member
 
Join Date: Nov 2005
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default Work around

I simply rebooted the whole machine. Now; stop, restart, start all work fine.
Reply With Quote
  #4  
Old 14th February 2007, 11:26
K_meleonu K_meleonu is offline
Senior Member
 
Join Date: May 2006
Posts: 108
Thanks: 1
Thanked 5 Times in 4 Posts
Default Same problem

Hi,
I saw the same problem on my machine, triyed to do it work but no success. I have rebooted the machine and now when i want to start httpd i get:

[root@CrazyDesign ~]# service httpd start
Starting httpd: [FAILED]


I user Fedora Core 4 and untill last night all work't perfect.

Does anyone have any ideas how to make it work again?

Thank you all
Reply With Quote
  #5  
Old 14th February 2007, 11:30
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Please post the output of:

httpd -t

any errors in the apache error log?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 14th February 2007, 12:00
K_meleonu K_meleonu is offline
Senior Member
 
Join Date: May 2006
Posts: 108
Thanks: 1
Thanked 5 Times in 4 Posts
Default

[root@CrazyDesign httpd]# httpd -t
Syntax OK


I found somme errors:
In: ispconfig_access_log_2007_02_14 i found the folowing line wich is repeating on and on

CrazyDesign.ath.cx||||309||||195.99.171.18 - - [14/Feb/2007:00:52:09 +0200] "GET /cgi-bin/awstats/falsepositive.muie HTTP/1.1" 404 310 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"

In error_log i have:
[error] [client 86.106.143.102] Directory index forbidden by rule: /var/www/html/
and it keep's going on and on and on

I also found
[Sun Jan 07 04:07:04 2007] [warn] RSA server certificate CommonName (CN) `localhost.localdomain' does NOT match
server name!?

in /var/log/httpd/ssl_error_log

Last edited by K_meleonu; 14th February 2007 at 12:05.
Reply With Quote
  #7  
Old 14th February 2007, 12:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Hmm, these errors are all non critical:

Please try:

/etc/init.d/apache restart
/etc/init.d/apache2 restart
/etc/init.d/httpd restart

Only one of the lines is correct, but this depends on your linux distribution. But it does not hurt if you execute all three lines, for 2 of them you will get file not found errors.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 14th February 2007, 12:10
K_meleonu K_meleonu is offline
Senior Member
 
Join Date: May 2006
Posts: 108
Thanks: 1
Thanked 5 Times in 4 Posts
Default

Here is what i get:

[root@CrazyDesign ~]# /etc/init.d/apache restart
-bash: /etc/init.d/apache: No such file or directory
[root@CrazyDesign ~]# /etc/init.d/apache2 restart
-bash: /etc/init.d/apache2: No such file or directory
[root@CrazyDesign ~]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: [FAILED]


I have Fedora Core 4


I also have this:
[Wed Feb 14 03:57:55 2007] [notice] caught SIGTERM, shutting down [Wed
Feb 14 03:58:02 2007] [notice] Apache/1.3.34 (Unix) PHP/5.1.2 mod_ssl/2.8.25 OpenSSL/0.9.8a configured -- resuming
normal operations [Wed Feb 14 03:58:02 2007] [notice] Accept mutex: sysvsem (Default: sysvsem) [Wed Feb 14 04:11:20
2007] [notice] caught SIGTERM, shutting down [Wed Feb 14 04:11:29 2007] [notice] Apache/1.3.34 (Unix) PHP/5.1.2
mod_ssl/2.8.25 OpenSSL/0.9.8a configured -- resuming normal operations [Wed Feb 14 04:11:29 2007] [notice] Accept
mutex: sysvsem (Default: sysvsem) [Wed Feb 14 04:20:51 2007] [crit] (98)Address already in use: make_sock: could not
bind to port 81 df: `/var/named/chroot/proc': Permission denied df: `/var/named/chroot/proc': Permission denied df:
`/var/named/chroot/proc': Permission denied df: `/var/named/chroot/proc': Permission denied df:
`/var/named/chroot/proc': Permission denied df: `/var/named/chroot/proc': Permission denied du:
`/home/www/web11/user/alex/Maildir': Permission denied df: `/var/named/chroot/proc': Permission denied df:
`/var/named/chroot/proc': Permission denied [Wed Feb 14 13:14:17 2007] [notice] caught SIGTERM, shutting down [Wed
Feb 14 13:14:26 2007] [notice] Apache/1.3.34 (Unix) PHP/5.1.2 mod_ssl/2.8.25 OpenSSL/0.9.8a configured -- resuming
normal operations [Wed Feb 14 13:14:26 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)

in /root/ispconfig/httpd/logs/error_log


I found th problem. One of the clients installed a bad script witch was creating those problems.
Thank you,

Last edited by K_meleonu; 15th February 2007 at 12:48.
Reply With Quote
  #9  
Old 26th February 2007, 11:46
mtoom mtoom is offline
Junior Member
 
Join Date: Feb 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default

my server is screwed, can someone help?


Quote:
[root@matthew ~]# httpd -t
Syntax OK
[root@matthew ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:mysql *:* LISTEN 3154/mysqld
tcp 0 0 *:938 *:* LISTEN 2876/rpc.statd
tcp 0 0 *:sunrpc *:* LISTEN 2857/portmap
tcp 0 0 e6.dc.344a.static.th:domain *:* LISTEN 2805/named
tcp 0 0 e5.dc.344a.static.th:domain *:* LISTEN 2805/named
tcp 0 0 e4.dc.344a.static.th:domain *:* LISTEN 2805/named
tcp 0 0 e3.dc.344a.static.th:domain *:* LISTEN 2805/named
tcp 0 0 e2.dc.344a.static.th:domain *:* LISTEN 2805/named
tcp 0 0 matthew.theplanet.ho:domain *:* LISTEN 2805/named
tcp 0 0 *:ipp *:* LISTEN 2991/cupsd
tcp 0 0 *:smtp *:* LISTEN 3241/master
tcp 0 0 matthew.theplanet.host:rndc *:* LISTEN 2805/named
tcp 0 0 *:imaps *:* LISTEN 3180/dovecot
tcp 0 0 *op3s *:* LISTEN 3180/dovecot
tcp 0 0 *op3 *:* LISTEN 3180/dovecot
tcp 0 0 *:imap *:* LISTEN 3180/dovecot
tcp 0 0 *:ftp *:* LISTEN 3252/proftpd: (acce
tcp 0 0 *:ssh *:* LISTEN 3036/sshd
tcp 0 3752 e2.dc.344a.static.thepl:ssh cust-65-110-31-90.sfu:60636 ESTABLISHED 3623/1
tcp 0 0 e2.dc.344a.static.thepl:ssh cust-65-110-31-90.sfu:60613 ESTABLISHED 3061/0
[root@matthew ~]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: [FAILED]
[root@matthew ~]#
error log ...

Quote:
[root@matthew ~]# vi /root/ispconfig/httpd/logs/error_log
[Fri Feb 23 20:22:12 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.1 mod_ssl/2.8.28 OpenSSL/0.9.8d configured -- resuming normal operations
[Fri Feb 23 20:22:12 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Feb 26 03:54:59 2007] [notice] caught SIGTERM, shutting down
[Mon Feb 26 03:55:17 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.1 mod_ssl/2.8.28 OpenSSL/0.9.8d configured -- resuming normal operations
[Mon Feb 26 03:55:17 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Feb 26 04:04:40 2007] [error] mod_ssl: SSL handshake interrupted by system [Hint: Stop button pressed in browser?!] (System error follows)
[Mon Feb 26 04:04:40 2007] [error] System: Connection reset by peer (errno: 104)
[Mon Feb 26 04:31:44 2007] [notice] caught SIGTERM, shutting down
[Mon Feb 26 04:31:54 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.1 mod_ssl/2.8.28 OpenSSL/0.9.8d configured -- resuming normal operations
[Mon Feb 26 04:31:54 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Feb 26 04:33:04 2007] [notice] caught SIGTERM, shutting down
[Mon Feb 26 04:33:18 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.1 mod_ssl/2.8.28 OpenSSL/0.9.8d configured -- resuming normal operations
[Mon Feb 26 04:33:18 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Mon Feb 26 04:39:52 2007] [notice] caught SIGTERM, shutting down
any ideas?!?!?!?
Reply With Quote
  #10  
Old 26th February 2007, 12:08
mtoom mtoom is offline
Junior Member
 
Join Date: Feb 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
 
Exclamation

Stopping httpd: [FAILED]
Starting httpd: [FAILED]

shutdown -r now

and httpd still fails to start after reboot.

Stopping httpd: [FAILED]
Starting httpd: [FAILED]


Any help!?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 4 TPS mail problem Hagforce HOWTO-Related Questions 13 10th February 2010 18:23
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
Running Apache2 With PHP5 And PHP4 At The Same Time hansmi HOWTO-Related Questions 3 28th June 2006 09:49
apache2 not really running blackflag Installation/Configuration 4 9th May 2006 07:50
warnig with restart httpd leen Server Operation 6 11th April 2006 12:53


All times are GMT +2. The time now is 23:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.