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.

New cPanel/WHM Install... named.conf missing

Discussion in 'General Discussion' started by Daenks, Jan 16, 2007.

  1. Daenks

    Daenks Member

    Joined:
    Jan 9, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hi all,

    I'm not new to using cPanel/WHM, but this is the first time i've installed it myself, so maybe i'm missing something simple..

    I installed cPanel sucessfully, but when i went through the inital setup i had an issue with MySQL. I found out the service doesn't start. Okay fine. (low priority issue)

    I went to go add my 1st domain, a test domain i setup with dyndns.org, but it failed to add the dns zone. (high priority issue)

    So i went to edit the DNS Zone, and here's what i get:
    Attempting to locate /etc/named.confno bind configuration presentUnable to locate Bind configuration file.

    Now i figured i had done something wrong in the install.
    So i reformatted :)

    So, on this install, I followed the Newbie Guide 100% just to be sure I wasn't missing anything.

    Still, my MySQL service will not start, and and i get the same error when i try to do anything DNS related:
    Attempting to locate /etc/named.confno bind configuration presentUnable to locate Bind configuration file.
    I checked, and there isnt a named.conf file in /etc. i also checked /var/named, and though there are zone files there, there is no named.conf.

    I am running Fedora Core 6, inside a VMWare Virtual Machine. (VPS license)

    Has anyone run into this problem?

    thanks,
    Daniel
     
  2. Daenks

    Daenks Member

    Joined:
    Jan 9, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    bump

    any ideas?
     
  3. adept2003

    adept2003 Well-Known Member

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(extra|special)/data"
    For the MySQL issue, have you tried resetting the mysql root password via WHM?

    Named issue: Have you been through the steps in WHM >> Service Configuration >> Nameserver Setup
     
  4. Daenks

    Daenks Member

    Joined:
    Jan 9, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Yes, it cant start mySQL to change the password I haven't tried re-installing mySQL manually yet.

    Yes, i did during initial setup, i will try again now and see what happens.
     
  5. Daenks

    Daenks Member

    Joined:
    Jan 9, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Name Server Activated
    Ensuring caching-nameserver is installed
    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    Nothing to do
    Activating name server monitoring (chkservd)
    Setting up rndc configuration
    Attempting to locate /etc/named.confno bind configuration presentUnable to locate Bind configuration file.Restarting Nameserver
    Starting named: [ OK ]
    Restarting chkservd
    Stopping chkservd: [ OK ]
    Starting chkservd: [ OK ]



    Attempting to locate /etc/named.confno bind configuration presentUnable to locate Bind configuration file.

    Excuse my french... but.. WTF?
     
  6. Daenks

    Daenks Member

    Joined:
    Jan 9, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I found a workaround, just so everyone knows.

    I searched google for "named.conf example" and copy/pasted the localhost zone into /etc/named.conf (i had to create the file ofcourse) then i ran the dns cleanup script from inside WHM and restarted the DNS server.

    Seems to be working, i'll tell you for sure when i can.
     
  7. deadend

    deadend Active Member

    Joined:
    Jan 18, 2007
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Well, I am now in this jam. I will try the work around shortly and see what happens, but MySql won't start so . . . any ideas?


    Lane
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Fedora Core 6 is not supported yet, although we are working on it.

    FC6 does not provide an /etc/named.conf file. Up to this point we used what the OS vendor provides. Now we are reworking that to generate a bare-bones named.conf if one is not present.

    Could you give some more detail about the MySQL problem? Which verson of MySQL? Is there anything in the error log? Is there anything in the /etc/my.cnf file?

    If you /etc/my.cnf file is empty, try placing the following in it and restarting MySQL:

    [mysqld]
    set-variable = max_connections=500
    safe-show-database
    log-error=/var/log/mysqld.log

    If it still doesn't start, post the contents of the error log (or PM me with them)
     
Loading...

Share This Page