Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Sep 2002
    Posts
    66

    Default httpd.conf odd entries

    Had someone contact me to say their site was not working, and sure enough it was trying to open "/home/user/public_html/www/" based on entries in the httpd conf file. Edited, found a few others in the same condition, saved, distilled and when I did, it stated it had created some missing doc roots, once again an extra "www" for some accounts.

    I can't seem to locate where it's finding this so I can put a stop to it.
    From the distiller (one each of these for all accounts just edited):
    Code:
    info [apache_conf_distiller] Creating missing document root /home/*****/public_html/www for *****
    It doesn't actually create the directory, just the pointer to it in httpd.conf.
    Any ideas?

    Found a thread with this issue, but the answer was to open a ticket, and it's years old so I didn't bump it.

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Re: httpd.conf odd entries

    Look in the userdata for the domain. The userdata used to build the Apache configuration are stored in the format /var/cpanel/userdata/$USER/$DOMAIN, where $USER is the cPanel user, and $DOMAIN is the domain in question.

    In that file, you will find a "documentroot:" entry. It is likely this line that needs to be corrected.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Member
    Join Date
    Sep 2002
    Posts
    66

    Default Re: httpd.conf odd entries

    Thanks, Jared, it was indeed in those files, along with a separate pair of files for www.domain.tld and www.domain.tld,v for each of the affected domains (now removed). This was a server I'd taken over, but I'd never come across this before. Would you suggest it was simply misconfigured by the former owner and 'stuck'? There have been new accounts on this box since, and they don't have this issue.

  4. #4
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Re: httpd.conf odd entries

    It is hard to even speculate about what happened without seeing the server. It is possible that it is something the previous owner did. I have not seen reports of this happening, and it is not a default configuration, so it is plausible that it was a custom configuration set up by a former administrator of the server.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

Similar Threads & Tags
Similar threads

  1. Preserve amends to /etc/httpd/conf/httpd.conf ?
    By robocrop in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-14-2010, 02:08 AM
  2. domain has 2 entries in httpd.conf
    By romanus in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-23-2008, 06:16 PM
  3. Deleting virtualhost entries in httpd.conf?
    By Vatoloco in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 07-19-2005, 01:34 AM
  4. httpd.conf entries gets removed......
    By yashodeep in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-22-2004, 06:40 AM
  5. httpd.conf missing entries
    By Ben in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-23-2002, 11:36 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube