Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Jan 2005
    Posts
    10

    Default httpd.conf errors

    I am running WHM 10.8.0 cPanel 10.8.1-R30 on centos 4.2 it is a brand new server and I keep getting this error when trying to ransfer or add an account.

    Fatal Error! Unable to open httpd config file /usr/local/apache/conf/httpd.conf!

    All the old posts point this as a bug and none give a way to fix it. If some one has any insight please let me know it is causing issues with the transfering of accounts from one server to another

  2. #2
    Member
    Join Date
    May 2005
    Posts
    14

    Default

    Hello !

    give me the result of the two following commands :

    PHP Code:
    ls -all /usr/local/apache/conf/httpd.conf

    lsattr 
    /usr/local/apache/conf/httpd.conf 
    Regards,

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    98

    Default

    could it be a permissions issue? Maybe it needs to be chmodded?
    www.AYKsolutions.com
    Professional. Painless. Polite.

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    98

    Default

    Also, is the httpd.conf file there?
    www.AYKsolutions.com
    Professional. Painless. Polite.

  5. #5
    Member
    Join Date
    Jan 2005
    Posts
    10

    Default

    root@ezhosta [/etc/init.d]# ls -all /usr/local/apache/conf/httpd.conf
    -rw------- 1 root root 39618 Nov 23 07:49 /usr/local/apache/conf/httpd.conf

    root@ezhosta [/etc/init.d]# lsattr /usr/local/apache/conf/httpd.conf
    ------------- /usr/local/apache/conf/httpd.conf


    I tired changing permission to 644 and 755 neither worked.

  6. #6
    Member
    Join Date
    Nov 2004
    Posts
    38

    Default

    Was this matter ever settled?

    I have a brand spanking new server (CentOS 4.2)
    with a one day old install of Cpanel (Current)

    and went to copy over an account from the other Cpanel box I've got

    And had the same result, and exactly the same response from
    those ls commands.

    Quote Originally Posted by ezhostingpro
    root@ezhosta [/etc/init.d]# ls -all /usr/local/apache/conf/httpd.conf
    -rw------- 1 root root 39618 Nov 23 07:49 /usr/local/apache/conf/httpd.conf

    root@ezhosta [/etc/init.d]# lsattr /usr/local/apache/conf/httpd.conf
    ------------- /usr/local/apache/conf/httpd.conf
    Is this a permissions issue, or a bug where I'm not being allowed to transfer across individual accounts?

    I'd like to eventually do a mass transfer, but obviously I'm in testing mode with just transferring just the one domain across.

    I'm on a time constraint here, so any timely help would be appreciated.

  7. #7
    Member
    Join Date
    Nov 2004
    Posts
    38

    Default

    Answering my own question:

    On the third attempt with the same domain, the transfer went through.
    One thing I did where I have no idea if it worked or not was...
    I edited the original user name on the other server. The user name on the old server had a
    hyphen in it (my-website.com username my-web) and changed it to myweb
    and perhaps that was the issue.

    I'll respond again if things go back to failing.

    EDIT: The message
    Fatal Error! Unable to open httpd config file /usr/local/apache/conf/httpd.conf!
    still appeared in WHM panel during the copy of the domain, but as mentioned the account apparently transferred over properly.
    Last edited by WindyT; 12-20-2005 at 12:24 PM.

  8. #8
    Member
    Join Date
    Oct 2003
    Location
    Dickson City, Pennsylvania (USA)
    Posts
    48

    Default

    Those permissions don't look right to me.... try this:

    chmod 644 /usr/local/apache/conf/httpd.conf

    You may also want to do this:

    chown apache:apache /usr/local/apache/conf/httpd.conf

    (Replace apache:apache with whatever user:group your Apache server runs under. E.g.: nobody:nobody, httpd:httpd).

    ~ Dan
    ^--- I wrote that.
    http://www.parasane.net/
    <plug shame="no">
    We also offercPanel/WHM hosting plans that include full PHP text-to-speech technology
    We created it so that you can play with it!
    </plug>

  9. #9
    Member
    Join Date
    Nov 2004
    Posts
    38

    Default

    Quote Originally Posted by parasane
    Those permissions don't look right to me.... try this:

    chmod 644 /usr/local/apache/conf/httpd.conf

    You may also want to do this:

    chown apache:apache /usr/local/apache/conf/httpd.conf

    (Replace apache:apache with whatever user:group your Apache server runs under. E.g.: nobody:nobody, httpd:httpd).

    ~ Dan
    I did both of the suggested changes, the chmod to 644 and changing the owner of apache from root root to nobody nobody and then tested with
    ls -la

    And then a funny thing happened. The permissions/ownership of the file reverted after a few minutes. I repeated that twice. I think my server is trying to tell me something. Sorry to be the doofus here on this. Obviously there's a daemon file that knows to reset that. Repeated this with the reset of permissions duplicated.

    by the way, in the "copy account from another server with the account password" section, this is the portion of the response that has the failure in context
    Grabbing mysql privs...Done
    Copying mailman lists....Done
    Copying mailman archives....Done
    Copying homedir.............
    ...............
    ...............
    Done
    Copying cpuser file.......Done
    Copying crontab file.......Done
    Copying quota info.......Done
    Storing Subdomains....
    Fatal Error! Unable to open httpd config file /usr/local/apache/conf/httpd.conf!
    Done
    Storing Parked Domains....
    Done
    Storing Addon Domains....
    Done
    Copying password.......Done
    Copying shell.......Done
    pkgacctfile is: /tmp/cpmove-mywebsite.tar.gz
    Creating Archive .............
    Done
    could this only be related to the "Storing Subdomains?"
    There are no subdomains to speak of on either server, but perhaps there's a cpanel setting I've never looked for that might be the issue.

    Aside from the listed error, the accounts are transferring normally. I'll be doing a mass transfer later today and this is all part of test mode. It'll be my first mass move.

    Again, I hate to be the doofus on this, but since the accounts are transferring individually fine with that one error I haven't seen with the identical procedure on my older WHM setup (not running CentOS), I'll assume I can ignore the error for now. I initially tagged the error as the first transfer just didn't take, but now realize the error is probably unrelated to the success of the transfer.

    Oh, and no (related) errors on
    /usr/local/apache/logs/error_log
    but if there's another log where the subject error might be chronicled, please reply.

    Thanks all!

  10. #10
    Member
    Join Date
    Oct 2003
    Location
    Dickson City, Pennsylvania (USA)
    Posts
    48

    Default

    Windy,

    When is the last time you did a scan on your box to make sure that everything was alright?

    ~ Dan
    ^--- I wrote that.
    http://www.parasane.net/
    <plug shame="no">
    We also offercPanel/WHM hosting plans that include full PHP text-to-speech technology
    We created it so that you can play with it!
    </plug>

  11. #11
    Member Murtaza_t's Avatar
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    471

    Default

    What version do you have on your server...? did you try upgrading or changing the tree..?

  12. #12
    Member
    Join Date
    Nov 2004
    Posts
    38

    Default

    Quote Originally Posted by parasane
    Windy,

    When is the last time you did a scan on your box to make sure that everything was alright?

    ~ Dan
    As mentioned, this is a fresh install, done by CPLicensing. And it done on a fresh CentOS 4.1 install, which I now notice got upgraded during CPLicensing's install process to CentOS 4.2

    So, my config is
    WHM 10.8.0 cPanel 10.8.1-C66
    CentOS 4.2 i686 - WHM X v3.1.0

    I had a glitch that wasn't a glitch yesterday, the first day of install, and I ran every check I could on the server, with no issues. The glitch was a firewall issue that was solved. All other of the initial checks on the server seem to work out fine.

    My old box is a VPS I'm leaving today, and so while I have some minor CPanel experience, there are some issues I haven't dealt with up to now. Any of those issues I'll save for a separate thread.

    I tested out some "Copy multiple accounts from another server" with two of the remaining sites on the old box, and they went flawlessly -- without error messages. I have about five dozen more sites to copy across this evening, and I feel confident the transfers will go well.

    I'll continue to use the "Copy multiple accounts from another server" anyway, now.

    Thanks again!

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. Internal Server Errors (500) after editing httpd.conf
    By tmbw.net in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-15-2010, 02:19 PM
  3. v11.24 STABLE - Errors - httpd.conf / dedicated IPs / ssl certificates
    By cPanelCory in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-02-2009, 05:17 AM
  4. httpd.conf sites/www.domain.com.conf Wildcard DNS
    By ttremain in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-16-2008, 11:19 AM
  5. httpd.conf errors?
    By JakeNviper in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-31-2003, 05:09 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube