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.

restaring httpd Warning: DocumentRoot

Discussion in 'General Discussion' started by Voltio, Aug 31, 2010.

  1. Voltio

    Voltio Active Member

    Joined:
    Oct 17, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    For some reason when I try to restart httpd via SSH I get the following:

    Code:
    root@stable [/home/wwwarqa]# service httpd restart
    Warning: DocumentRoot [/home/antonia/public_html/avoke] does not exist
    Warning: DocumentRoot [/home/antonia/public_html/conepti] does not exist
    Warning: DocumentRoot [/home/antonia/public_html/ecuadormultisport] does not exist
    Warning: DocumentRoot [/home/transerm/public_html/teamomagnolia] does not exist
    Warning: DocumentRoot [/home/admin/public_html/inicial] does not exist
    Warning: DocumentRoot [/home/admin/public_html/julian] does not exist
    Warning: DocumentRoot [/home/admin/public_html/yarleque] does not exist
    root@stable [/home/wwwarqa]#
    Why is this happening? I'm sure the client is creating this directories and since they no longer use them, they delete them but how are they staying in the httpd config? Thanks guys.
     
    #1 Voltio, Aug 31, 2010
    Last edited by a moderator: Sep 3, 2010
  2. Voltio

    Voltio Active Member

    Joined:
    Oct 17, 2004
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    checking the httpd.conf

    I found the following when checking the httpd.conf

     
  3. nimrodx

    nimrodx Active Member

    Joined:
    Jul 24, 2005
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Edinburgh, Scotland
    run

    /scripts/rebuildhttpd_conf
     
  4. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    There are various ways to remove a directory like FTP, file manager, scp/ssh, etc and cPanel can't keep a check on all these services. It is already doing a great job telling you that there are Apache config entries that are useless and need to be removed.
    Clients should be wise enough to remove subdomains/addons from cPanel rather than just removing their folders to stop them loading. :)
     
    #4 JawadArshad, Sep 1, 2010
    Last edited: Sep 2, 2010
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    When restarting Apache/httpd (web server) it expects the document root directory path of each virtual host to actually exist on the system; if the document root directory does not exist, Apache/httpd will output a warning message upon initialization when being started or restarted. The warning messages are being displayed because the document root path of each domain or sub-domain was removed manually, such as when a user manually removes a document root directory without using cPanel; this can be for any domains on a cPanel account, including sub-domains, add-on domains, and parked domains, when they are not removed correctly.

    It is not recommended to manually remove the document root directory of a domain that is still actively setup or otherwise remains configured on the server. I would consider politely advising affected clients to properly remove domain names by using cPanel; here is our available documentation for the applicable menu paths in cPanel:

    Each document root is associated with a specific domain name that was created or setup via cPanel; to resolve the situation each domain that is affected must be removed using cPanel so that the configuration can be properly updated.
     
Loading...

Share This Page