Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 17
  1. #1
    Member
    Join Date
    Mar 2003
    Posts
    52

    Default Unable to locate httpd.conf at /scripts/wwwacct line 1319.

    Getting this error when trying to create a account

    Useing Red hat 9

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Here is the subroutine in the wwwacct file giving you that message:

    sub find_httpconf {
    my(@LOC,$loc);
    @LOC = ("/usr/local/apache/conf/httpd.conf",
    "/etc/httpd/conf/httpd.conf");
    foreach $loc (@LOC) {
    if (-e $loc) { return $loc; }
    }
    die "Unable to locate httpd.conf"; < ---- this is line 1319
    return "";
    }

    What it's saying is that it can't find the httpd.conf file in either of the 2 locations it's checking.

    I suggest telnetting in and doing a locate.
    locate httpd.conf
    See what it tells you.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    52

    Default

    I got these as the reasults


    /etc/http.old/conf/httpd.conf
    /usr/share/apacheconf/httpd.conf.xsl
    /usr/local/cpanel/base/docs/whm/images/buttons_httpd.conf.png
    /home/cpins/installd/buildapache/httpd.conf.tempeditlib

  4. #4
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You better contact your server provider. You don't appear to have an httpd.conf file. Without it, you can't have websites.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  5. #5
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You could try running
    cp /etc/http.old/conf/httpd.conf /etc/http/conf/httpd.conf
    to copy the one marked old to use as the real one. It may work, but I would contact the provider.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  6. #6
    Member
    Join Date
    Mar 2003
    Posts
    52

    Default

    Its a test box, did I install something wrong? It's running right next to me so I can physical Contact with it.

  7. #7
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    I would just copy then. It sounds like you may have somehow deleted the file.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  8. #8
    Member
    Join Date
    Mar 2003
    Posts
    52

    Default

    Says no file or Directory.

  9. #9
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    You mean you ran
    cp /etc/http.old/conf/httpd.conf /etc/http/conf/httpd.conf
    and it said that?
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  10. #10
    Member
    Join Date
    Mar 2003
    Posts
    52

    Default

    hmm, its now saying Cannot create regular file '/etc/http/conf/httpd.conf/': No such file or Directory

  11. #11
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    I put a starter conf file on my site. It's my conf file but just the usual starter stuff with the actual account material removed. Just download it from http://www.premierwebsitesolutions.com/httpd.conf.txt then remove the txt extension and put it in your etc/http/conf directory.

    Creating accounts should work after that.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  12. #12
    Member
    Join Date
    Mar 2003
    Posts
    52

    Default

    How do I remove the .txt thingy?

  13. #13
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Just rename it, or right-click on the link and just save as httpd.conf.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  14. #14
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default

    I thought cpanel was still not compatible with redhat 9.

  15. #15
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Originally posted by Juanra
    I thought cpanel was still not compatible with redhat 9.
    That could cause a problem.

    Does anyone know more about the problems this mismatch could cause?
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. Unable to locate httpd.conf
    By Storming in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-21-2009, 12:36 AM
  2. Replies: 1
    Last Post: 06-22-2009, 09:29 AM
  3. Unable to read /etc/quota.conf at /scripts/resetquotas line 23
    By HostingZero.com in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-04-2007, 04:48 PM
  4. Ignoring bad line in /etc/wwwacct.conf
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-19-2006, 09:50 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube