Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Apr 2003
    Location
    Cleveland, Ohio
    Posts
    45
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Unable to open HTTPD.Conf file.

    Okay, about two weeks ago the server got hacked. Restored it to Red Hat Enterprise 3, re built all the accounts.

    Now in cPanel all my customers get this error;
    Fatal Error! Unable to open httpd config file /usr/local/apache/conf/httpd.conf

    It really is writeable though. You can add an add-on domain or subdomain. It'll spit out an error, but it actually does go through. I can change the CHMOD settings and the error will go away until /scripts/upcp is ran again. It then returns.
    Submitted a ticket to cPanel and all they did was the quick fix of changing the CHMOD settings.

    Anyone else know of anything that might fix it?

  2. #2
    Member trakwebster's Avatar
    Join Date
    Jan 2003
    Posts
    145

    Default

    I'm not very knowledgeable about this, but first, are you really spelling it HTTPD.Conf? (Because it *should* be spelled httpd.conf.)

    Nextly, who owns it?

    If you can open it and cpanel can't, then perhaps it's owned by you, but not by the user that cpanel is, if you follow me.
    -- Arthur Cronos from Voltos
    =================================================
    The Bloggard, Un Hombre Muy Blogisto -- http://www.bloggard.com
    Your loch ness monster, your yeti, your bigfoot. Bah! I've seen worse.
    =================================================

  3. #3
    Member
    Join Date
    Apr 2003
    Location
    Cleveland, Ohio
    Posts
    45
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Yeah, I'm actually spelling it httpd.conf. I don't know why I capitalized it in the title. Lack of sleep maybe.

    I gotcha for the "own" settings. I'll have to look into that.

  4. #4
    Member
    Join Date
    Apr 2003
    Location
    Cleveland, Ohio
    Posts
    45
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Ah, turns out you need to change all 300 of the httpd.conf files CHMOD settings.

  5. #5
    Member
    Join Date
    Aug 2003
    Posts
    32

    Default

    Originally posted by inogenius
    Ah, turns out you need to change all 300 of the httpd.conf files CHMOD settings.
    I don't know about you but all I have to do is chmod o=r on the one /usr/local/apache/conf/httpd.conf.

    However, I seem to lose the permissions on the file. I'm assuming that an update of sorts resets the permissions.

  6. #6
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default Re: Unable to open HTTPD.Conf file.

    Originally posted by inogenius
    Now in cPanel all my customers get this error;
    Fatal Error! Unable to open httpd config file /usr/local/apache/conf/httpd.conf
    Are you running a grsecurity patched server?

    I have seen this error on all of my grsecurity patched cpanel servers but not on my one non-grsec cpanel server.

  7. #7
    Member
    Join Date
    Aug 2003
    Posts
    32

    Default

    Does anyone have any idea as to how to fix this?

    My server did have grsecurity installed but has since been removed.


    - orb_sp

  8. #8
    Def
    Def is offline
    Member
    Join Date
    Feb 2003
    Posts
    65

    Default

    I'm getting this as well. Anyone know a fix?

    Thanks.

  9. #9
    SACHIN
    Guest

    Smile chmod

    chmod 644 /etc/httpd/conf/httpd.conf


  10. #10
    Member
    Join Date
    Jan 2004
    Posts
    144

    Exclamation

    Has this been fixed yet, becuase I still have this problem, and it is cuasing alot of problem. Or can someone tell me how to create a cron script to do the permissions change??

  11. #11
    SACHIN
    Guest

    Wink cron script

    Hello,

    1)vi chht
    2)insert following syntax
    3)save it
    4)chmod 755 chht
    5)mv chht /etc/cron.d/




    #!/bin/sh
    * * * * * root /bin/chmod 644 /etc/httpd/conf/httpd.conf


    it will be work gr8....

  12. #12
    tjb
    tjb is offline
    Registered User
    Join Date
    Jun 2004
    Posts
    2

    Default I have two server with this, fixed one

    Hi first off i am new to servers but i had this on two servers. I can fix it by running a cron every minute to change the chmod of http.conf to 644. This works but is not great as when a customers adds a park or sub domain they see the fatal eror mgs for one minute.

    My small server in the end had to be reinstalled by the provider, cpanel installed again and the accounts brought back. Everything is fine again.

    However my second server which is my main server can not afford tobe down that long so I really need a fix for this

    Has anyone fixed the contance changing of the chmod of http.conf and if so can they explain how to do it?

    Thank you for any help offered.
    TJ

  13. #13
    Member
    Join Date
    Dec 2004
    Location
    Glasgow
    Posts
    133

    Default

    im still getting this problem

  14. #14
    SACHIN
    Guest

    Default try this one

    hello,

    please do the following steps.

    vi /usr/local/cpanel/bin/chmodhttpdconf
    set 644

    we have to find which cpanel script change the httpd.conf permission so that we can fix this issue permanently.

  15. #15
    Member
    Join Date
    Jan 2004
    Posts
    144

    Default

    Quote Originally Posted by SACHIN
    hello,

    please do the following steps.

    vi /usr/local/cpanel/bin/chmodhttpdconf
    set 644

    we have to find which cpanel script change the httpd.conf permission so that we can fix this issue permanently.

    I have done this however I still get the error. I only get it on centos 3.4 server I have. Any other solutions in the mix?

Similar Threads & Tags
Similar threads

  1. Unable to locate httpd.conf
    By Storming in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-20-2009, 11:36 PM
  2. Frontpage error unable to access httpd.conf
    By rspurlock in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 08-14-2007, 01:11 PM
  3. Fatal Error! Unable to open httpd config file
    By rastoma in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-09-2005, 04:56 PM
  4. Fatal Error! Unable to open httpd config file
    By Def in forum cPanel and WHM Discussions
    Replies: 93
    Last Post: 09-05-2005, 12:43 AM
  5. Unable to locate httpd.conf at /scripts/wwwacct line 1319.
    By ndj1022 in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 05-08-2003, 07:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube