The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache Update Function, wiped domain setup location displays 404

Discussion in 'EasyApache' started by superlative, May 16, 2008.

  1. superlative

    superlative Registered

    Joined:
    May 16, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I had one domain setup in cpanel, and the domain worked fine.

    I ran the 'apache update' to reinstall apache and php with GD support.

    After that update completed, when i type in the domain into IE or Firefox it comes up with a WHM 404 page.

    So obviously this update wiped where to tell apache to look for the website files.

    I'm trying to add an ssh user so i can get in and figure out where the httpd.conf file is and what the thing to do, but do you think it would be simple to do this, no its not.

    SSH is running. I can connect via putty. But my root user and password dont work. How do I add a user via cpanel to gain access or is there an easier way to fix this wiped domain location setup in apache?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,474
    Likes Received:
    202
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Unless you had some sort of custom config the update didn't recognize I'm not sure why it would have wiped it out. You can't add a user via cPanel. If your root password doesn't work you'll need to contact your host for assistance there I would think. Can you connect to that account via FTP? I take it you updated to apache2.x?

    Your httpd.conf is located at;
    /usr/local/apache/conf/httpd.conf

    But I would have a close look and read the warnings in there before attempting to edit. (once you get back in)
     
  3. superlative

    superlative Registered

    Joined:
    May 16, 2008
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    okay i am hoping on getting the server host to reset ssh but it could be a few hours.

    is there any info you can give me on how to alter the httpd.conf file so that

    mydomain.com points to /home/myusername/public_html ?

    so that i can save time when i get in? perhaps is there a way to edit httpd.conf in cpanel / whm?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    If you just want to have mydomain.com point to that path, you should go into the cPanel interface for that user and create a parked domain - parked on top of the domain that already points to that path (that account's primary domain).
     
Loading...

Share This Page