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.

Maaaaaaajor Problem :'(

Discussion in 'General Discussion' started by johnsee, Mar 28, 2006.

  1. johnsee

    johnsee Member

    Joined:
    Mar 14, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    I have a web server running on Fedora Core 4

    Simply for how simple it is, I often transfer users sites by connecting with SSH, grabbing a tar file off a remote FTP and untaring it there. My only problem is then that the files belong to me a root user... and not the user in question. A quick run of
    CHOWN -R username *
    and they are all set.

    This morning I accidently ran that comand in the root directory. EVRYTHING on my server is now owned by a normal user account. Now I've restored backups of home directories, but CPanel and WHM still produce some error message... anything database related dies on its ass... and pretty much overy other file on my server is owned by this user account.

    AHHHHHHH HELP MEEEEEEEEEEEE!!!

    (Fedora code 4, Running with WHM and CPanel, I have SSH access and formatting the server Reeeeeeaaaallly isnt an option I want to look at. (Its in the US)

    Any help you could give me... or even prods in the right direction would be much appreciated :)
     
    #1 johnsee, Mar 28, 2006
    Last edited: Mar 28, 2006
  2. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    Have you tried running the scripts :

    Code:
    /scripts/fixeverything 
    OR
    Code:
    /scripts/upcp --force
    this will fix most of your problems but there will be some who will need personal attention.
     
  3. johnsee

    johnsee Member

    Joined:
    Mar 14, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Murtaza_t , your a legend :D

    I CHOWNed everything to root, ran your two scripts and everything seemed to be back to normal except mail accoutns were missing. I then restored all of last nights home drive backups... and that seems to have brought them back too.

    Would what I have run updated my kernel? (My network card has issues with the latest version)
     
  4. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    Well, Thanks to cPanel

    But I did not get you when you said :

     
  5. johnsee

    johnsee Member

    Joined:
    Mar 14, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Watching the scripts run, it appeared to be forcing updates of a lot of different things on the server. mysql etc. I just want to make sure it didn't update my kernel version.
     
  6. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    Do rpm -qa | grep "kernel" to see what kernels you have installed.
     
  7. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    whoops, forums just froze up on me! sorry for double post...
     
  8. johnsee

    johnsee Member

    Joined:
    Mar 14, 2006
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    All looking good, and I am eternally grateful for all the help so far.

    Although :S

    I get this error when I restart my DNS Server (Bind)
    Code:
    named has failed, please contact the sysadmin (result was "named is not running"). Mar 29 15:48:07 server named[3610]: starting BIND 9.3.1 -u named Mar 29 15:48:07 server named[3610]: found 1 CPU, using 1 worker thread Mar 29 15:48:07 server named[3610]: loading configuration from '/etc/named.conf' Mar 29 15:48:07 server named[3610]: /etc/named.conf:1: open: /etc/rndc.key: permission denied Mar 29 15:48:07 server named[3610]: loading configuration: permission denied Mar 29 15:48:07 server named[3610]: exiting (due to fatal error)
    And SMTP also isn't working, neither is ping. I assume it is related to the above?

    :S
     
  9. gorilla

    gorilla Well-Known Member

    Joined:
    Feb 3, 2004
    Messages:
    699
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney / Australia
    Try

    service named stop (probably will give u an error which you can ignore)
    service named start
    /scripts/fixndc
     
Loading...

Share This Page