Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 15 of 15
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    22

    Default VirtualHosts not working?

    Hello,

    Apache suddenly died on the server. It wouldn't restart because a bunch of modules suddenly couldn't load. Commented those modules out of httpd.conf. The users disappeared from WHM. Got them back. Now the VirtualHosts are not working. All that is showing for all these domains is the Apache test page.

    I have double and triple checked the DocumentRoot of these hosted domains and they all point to directories with orginal content, but that content is just not being displayed.

    Any ideas?

    Thanks in advance.

  2. #2
    Member
    Join Date
    Sep 2003
    Location
    UK, Luton
    Posts
    197

    Default

    Are the sites virtualhosts in the httpd.conf ?
    Regards,
    James Smith
    UH Hosting Ltd

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    22

    Default

    Yes, that's right. The DocumentRoot in each VirtualHost container is correct and the directories contain content that is not being displayed.

  4. #4
    Member
    Join Date
    Sep 2003
    Location
    UK, Luton
    Posts
    197

    Default

    Tried doing /scripts/easyapache again ?
    Regards,
    James Smith
    UH Hosting Ltd

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    22

    Default

    I just tried that, unfortunately it did not work. Any other ideas?

  6. #6
    Member
    Join Date
    Sep 2003
    Location
    UK, Luton
    Posts
    197

    Default

    Odd. Mean while drop an e-mail to CPanel tech support.
    Regards,
    James Smith
    UH Hosting Ltd

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2004
    Posts
    22

    Default

    Very odd. What's more, when I do not specify a page, like in http://domain.com, I get the Apache test page. But when I specify a page, I get a 403 Forbidden error. I checked the permissions on the files in question and they are world-readable.

    ??

  8. #8
    sv1
    sv1 is offline
    Member
    Join Date
    Aug 2003
    Posts
    140

    Default

    having this same issue.

    service httpd status
    says it cannot connect to localhost

    httpd.conf looks fine

    any ideas?

  9. #9
    sv1
    sv1 is offline
    Member
    Join Date
    Aug 2003
    Posts
    140

    Default

    I had to remove the pid file.

  10. #10
    Member marius's Avatar
    Join Date
    Jun 2002
    Location
    Bucharest
    Posts
    158

    Default same prob. here

    not even one domain is working and I cannot acces the site even by their ip address. tried anything..

    any suggestions?
    Marius

  11. #11
    sv1
    sv1 is offline
    Member
    Join Date
    Aug 2003
    Posts
    140

    Default

    firewall?

    check your named.conf and make sure it's ok, sounds like bind maybe messed up.

  12. #12
    Member marius's Avatar
    Join Date
    Jun 2002
    Location
    Bucharest
    Posts
    158

    Default

    no firewall on it. nothing wrong with named. i checked httpd.conf and all the virtual hosts...dissapeared...!??!
    Marius

  13. #13
    Member
    Join Date
    Sep 2003
    Posts
    658

    Default

    Make sure the host name is correct in httpd.conf and run this as root. May help.

    /usr/local/apache/bin/apachectl configtest

  14. #14
    Member marius's Avatar
    Join Date
    Jun 2002
    Location
    Bucharest
    Posts
    158

    Default

    the configtest was ok because the httpd.conf was brand new with nothing defined in it.

    i had to find a backup of the file ...

    what on earth could replace my httpd.conf? could this be due to the automatic backup ?
    Marius

  15. #15
    iko
    iko is offline
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jan 2004
    Posts
    56

    Default

    No. The problem is widespread. Many users are complaining for the same problem - httpd.conf corruption. It is a random problem.

    The problem with the permissions - please upcp cPanel and then recompile Apache by disabling suEXEC. It works for me.

Similar Threads & Tags
Similar threads

  1. No VirtualHosts
    By uneedawebsite in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 12-06-2008, 10:25 PM
  2. VirtualHosts Wiped Out
    By luis in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-25-2008, 10:44 AM
  3. NameVirtualHost has no VirtualHosts
    By rockster in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-15-2006, 06:56 PM
  4. no VirtualHosts ???
    By nicklas in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-30-2005, 11:24 AM
  5. Custom Virtualhosts
    By freshstartup in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-13-2004, 08:21 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube