Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member Chriz1977's Avatar
    Join Date
    Sep 2006
    Posts
    191

    Exclamation Apache Failing and not restarting - PLEASE HELP

    Hi

    Apache has fallen over and wont get back up again. The last entry in the apache error log is an unknown username error. This was just before the crash. The user was having troubles with a DNS entry as hed created a user without a domain and couldnt delete it (Nor can I as i cant find it anywhere in WHM except when I list reseller accounts, but thats another story)

    Ive looked at httpd.conf and found this at the bottom

    ErrorDocument 400 /400.shtml
    ErrorDocument 401 /401.shtml
    ErrorDocument 403 /403.shtml
    ErrorDocument 404 /404.shtml
    ErrorDocument 500 /500.shtml
    ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
    Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
    Alias /java-sys/ /usr/local/cpanel/java-sys/
    Alias /img-sys/ /usr/local/cpanel/img-sys/
    Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
    Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
    ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
    ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
    ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
    ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi
    ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi
    Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
    ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
    Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
    Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
    Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/
    Which wasnt there before. Everything else looks ok.

    Any suggestions as to what to do to sort it? Ive tried to rebuild apache but no luck, same thing 'httpd failed to start'. Im getting bored of seeing that now, can anyone help me?

    Cheers
    Chriz
    When I was young I used to break Windows, Now Microsoft does it for me!

  2. #2
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,064

    Default

    httpd configtest

    to find errors

    if no error , look on your php.ini , and try to disable (comment) zend and ioncube lines

    restart apache
    Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
    █ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.

  3. #3
    Member Chriz1977's Avatar
    Join Date
    Sep 2006
    Posts
    191

    Default

    # httpd configtest

    Warning: DocumentRoot [/home/samantha/public_html/cp] does not exist
    Warning: DocumentRoot [/home/samantha/public_html/shop] does not exist
    Warning: DocumentRoot [/home/divinity/public_html/settle-your-debts] does not exist
    Warning: DocumentRoot [/home/mancunia/public_html/rick] does not exist
    Warning: DocumentRoot [/home/divinity/public_html/blog] does not exist
    Warning: DocumentRoot [/home/stayba/public_html/buenosairesagent] does not exist
    Warning: DocumentRoot [/home/stayba/public_html/agent] does not exist
    Warning: DocumentRoot [/home/boaltacs/public_html/secasatboy] does not exist
    httpd: bad user name best8
    Thats the result. the missing dirs shouldnt cause a problem as theyre useres dirs, should they?
    How do I resolve the bad user name? just delete the dir and dns entry?

    cheers
    When I was young I used to break Windows, Now Microsoft does it for me!

  4. #4
    Member
    Join Date
    Oct 2005
    Posts
    37

    Default hi

    Check the user name in httpd.conf (ie, from User directive )exists in /etc/password file.....
    Anish T S
    Unix system administrator

  5. #5
    Member Chriz1977's Avatar
    Join Date
    Sep 2006
    Posts
    191

    Default

    Ive got it all sorted. I had to delete the Virtual Host Entries for that user.

    This all came about because someone tried to create an account without adding a domain name. Is there any way to stop this happening in the future? You would think whm would have a check for this, wouldnt you?
    When I was young I used to break Windows, Now Microsoft does it for me!

  6. #6
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Another one to add to the list for the argument for better Cpanel quality control!

  7. #7
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Well you could submit it as a bug report I suppose ....

    "Cpanel allows sites to be built if domain not entered"

    I personally would consider that a bug! A big bug!

  8. #8
    Member Chriz1977's Avatar
    Join Date
    Sep 2006
    Posts
    191

    Default

    So how de we suggest things to be in the next release?

    Its easy enough to check if a textbox is empty so they hav NO excuse. Especially if one user doing that can crash a server, Its essential I think
    When I was young I used to break Windows, Now Microsoft does it for me!

  9. #9
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Lovely! This forum site is broken too as my last reply is showing now in the thread
    before the post that I was actually replying to!

    (Looks like they have something resetting the clock on this server --- Just great! )

  10. #10
    Member Chriz1977's Avatar
    Join Date
    Sep 2006
    Posts
    191

    Default

    mine did that yesterday, i think it happens when you post at a time close to the last post.
    I think we confused it, lol
    When I was young I used to break Windows, Now Microsoft does it for me!

  11. #11
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by Chriz1977
    mine did that yesterday, i think it happens when you post at a time close to the last post.
    I think we confused it, lol
    It shouldn't be doing that unless there is something wrong with the system clock
    on the server where this forum is hosted.

    Could be a number of things ...

    1. Syncronizing time using a list of multiple servers out of sync with each other

    2. CMOS battery on the mainboard is dead

    3. Motherboard / CPU is overclocked

    4. Someone or some script on the server resetting the clock for whatever reason

  12. #12
    Member
    Join Date
    Mar 2003
    Posts
    160

    Default

    I have seen this error countless times. It is mostly caused when a user deletes a domain and does not give the browser time to finish. But, there could be other reason's also. I agree, cpanel needs to make a better way for this, possible requening the process to a job instead of at the mercey of the browser.

Similar Threads & Tags
Similar threads

  1. Exim Failing And Restarting...
    By timvie in forum E-mail Discussions
    Replies: 5
    Last Post: 12-10-2010, 03:30 PM
  2. clamd constantly failing/restarting
    By betoranaldi in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-29-2010, 12:30 PM
  3. cpsrvd keeps failing and server keeps restarting.
    By Xiode in forum cPanel and WHM Discussions
    Replies: 17
    Last Post: 09-09-2006, 03:06 AM
  4. spamd keeps failing and restarting
    By neilio in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 03-11-2006, 09:58 AM
  5. Sim started restarting Apache, but then it kept failing?
    By noimad1 in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-04-2005, 06:27 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube