Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2002
    Posts
    1,926

    CPanel buildapache nightmare

    Hi,

    a few hours ago I downloaded and ran the latest buildapache.sea from CPanel on one of my servers. Since I have done this, my server seems to be one sick puppy.

    Apache won't restart anymore from within WHM, but will restart if I do it via SSH, but it gives a load of errors in the process:

    [Sat Sep 21 03:59:21 2002] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
    [Sat Sep 21 03:59:21 2002] [notice] Apache/1.3.26 (Unix) mod_perl/1.26 mod_log_bytes/0.3 mod_bwlimited/1.0 PHP/4.2.3 FrontPage/5.0.2.2510 mod_ssl/2.8.10 OpenSSL/0.9.6g configured -- resuming normal operations
    [Sat Sep 21 03:59:21 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Sat Sep 21 03:59:21 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Sat Sep 21 03:59:57 2002] [error] Cannot resolve host name IN --- ignoring!
    [Sat Sep 21 03:59:57 2002] [error] Cannot resolve host name IN --- ignoring!
    [Sat Sep 21 04:00:00 2002] [error] mod_ssl: Cannot open SSLSessionCache DBM file `/usr/local/apache/logs/ssl_scache' for status retrival (System error follows)
    [Sat Sep 21 04:00:00 2002] [error] System: No such file or directory (errno: 2)
    [Sat Sep 21 04:00:09 2002] [error] Cannot resolve host name IN --- ignoring!
    [Sat Sep 21 04:00:11 2002] [error] Cannot resolve host name IN --- ignoring!
    Also when I transfer sites over from another server, the sites won't show unless I give them a dedicated IP and access them using this IP. If I don't access them like this, all I get is the apache test page. I use name based hosting for my users and can't live with this.

    Any ideas are highly appreciated...

    P.S. No error logs entries are generated when I try to restart apache from WHM, but it doesn't restart and it gives an error in WHM.
    Last edited by Tazzman; 09-20-2002 at 10:05 PM.

  2. #2
    Join Date
    Apr 2002
    Location
    Auckland - New Zealand
    Posts
    1,572
    Have you checked httpd.conf - Check that the machines IP is correctly listed in the NameVirtualHost and <VirtualHost 123.123.123.123> containers - I fixed a similar problem the other day for someone - The machines IP was listed as *:80 instead of the correct IP.

  3. #3
    Join Date
    Dec 2000
    Location
    The Woodlands, Tx
    Posts
    5,962
    Cpanel likes to trash your httpd.conf file. Download it to your computer. Then open it in notepad and go thru cleaning up the coding. Check NameVirtualHosts first. It doesnt always put them in the right places. That can cause the probs you posted.

  4. #4
    Join Date
    Feb 2002
    Posts
    1,926
    Well, httpd.conf was a mess. I have been cleaning it up, but I'm not sure how the NameVirtualHost should be. Should they have the # in front of them or not. Some did and some didn't.


    This is the current error log after restaring apache (still can only restart via SSH):

    [Sat Sep 21 15:10:37 2002] [error] [client 66.227.95.240] File does not exist: /usr/local/apache/htdocs/cache
    [Sat Sep 21 15:10:37 2002] [error] [client 66.227.95.240] File does not exist: /usr/local/apache/htdocs/404.shtml
    [Sat Sep 21 15:10:37 2002] [error] [client 164.76.180.100] File does not exist: /usr/local/apache/htdocs/cache
    [Sat Sep 21 15:10:37 2002] [error] [client 164.76.180.100] File does not exist: /usr/local/apache/htdocs/404.shtml
    [Sat Sep 21 15:10:37 2002] [notice] Apache/1.3.26 (Unix) mod_perl/1.26 mod_log_bytes/0.3 mod_bwlimited/1.0 PHP/4.2.3 FrontPage/5.0.2.2510 mod_ssl/2.8.10 OpenSSL/0.9.6g configured -- resuming normal operations
    [Sat Sep 21 15:10:37 2002] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
    [Sat Sep 21 15:10:37 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Sat Sep 21 15:10:51 2002] [error] [client 61.171.239.114] File does not exist: /home/del/public_html/user/stat.js
    [Sat Sep 21 15:10:51 2002] [error] [client 61.171.239.114] File does not exist: /home/del/public_html/404.shtml
    [Sat Sep 21 15:10:53 2002] [error] [client 168.95.19.27] File does not exist: /home/del/public_html/user/stat.js
    [Sat Sep 21 15:10:53 2002] [error] [client 168.95.19.27] File does not exist: /home/del/public_html/404.shtml
    [Sat Sep 21 15:10:54 2002] [error] [client 211.75.245.137] File does not exist: /home/del/public_html/user/stat.js
    [Sat Sep 21 15:10:54 2002] [error] [client 211.75.245.137] File does not exist: /home/del/public_html/404.shtml
    [Sat Sep 21 15:10:56 2002] [error] [client 168.95.19.27] File does not exist: /home/del/public_html/user/stat.js
    [Sat Sep 21 15:10:56 2002] [error] [client 168.95.19.27] File does not exist: /home/del/public_html/404.shtml
    [Sat Sep 21 15:11:07 2002] [error] [client 211.75.245.137] File does not exist: /home/del/public_html/user/stat.js
    [Sat Sep 21 15:11:07 2002] [error] [client 211.75.245.137] File does not exist: /home/del/public_html/404.shtml
    [Sat Sep 21 15:11:19 2002] [error] [client 211.22.33.11] File does not exist: /home/del/public_html/user/stat.js
    [Sat Sep 21 15:11:19 2002] [error] [client 211.22.33.11] File does not exist: /home/del/public_html/404.shtml
    [Sat Sep 21 15:11:20 2002] [error] [client 211.75.245.137] File does not exist: /home/del/public_html/user/stat.js
    [Sat Sep 21 15:11:20 2002] [error] [client 211.75.245.137] File does not exist: /home/del/public_html/404.shtml


    Now I have no idea where those IP's are coming from as they aren't allocated to my server.



    Thanks for your help.
    Last edited by Tazzman; 09-21-2002 at 04:29 PM.

  5. #5
    Join Date
    Dec 2000
    Location
    The Woodlands, Tx
    Posts
    5,962
    You really shouldnt be posting that. Go ahead and remove it, I have it here now. I will clean it up. Email me at webdude @ worldzonepro.com and I will send a cleaned up copy back to you. Backup your old one before you use this one. It's been a while since we used Cpanel....so have the current one backed up in case I make a mistake somewhere. I had to clean up my config a LOT when we used cpanel, but it's possible I might not remember everything, and could miss something.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •