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.

Data Being Stored Where??

Discussion in 'General Discussion' started by icanectc, May 29, 2004.

  1. icanectc

    icanectc Well-Known Member

    Joined:
    Mar 10, 2003
    Messages:
    344
    Likes Received:
    0
    Trophy Points:
    16
    We are replacing the drive that has had RedHat 8.0 crashed..

    We put this drive in as a 2nd drive and want to move over all the customer data over to the new harddrive...

    I know where the html files are stored in /home/userdirectory

    but where are the sql tables stored on the drive? what directory?
     
  2. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    if this is a standard default install by RPM's then look in the /var/lib/msyql folder, all the databases/files are stored there.

    Mickalo
     
  3. kasey

    kasey Member

    Joined:
    May 29, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Same thing with Fedora Core....

    We're running Fedora Core and had a similar problem. Is the information located in the same place? And what exactly are the files that store cPanel's information for the users?
     
  4. kasey

    kasey Member

    Joined:
    May 29, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    bump....

    Anyone out there know where this is stored. Sorry to sound like I'm really impatient, but our main server is down because of this...
     
  5. icanectc

    icanectc Well-Known Member

    Joined:
    Mar 10, 2003
    Messages:
    344
    Likes Received:
    0
    Trophy Points:
    16
    Need some help

    We have the 2nd drive in the unit

    and basically we want to move all of whats in /home on the old drive to the /home on the new drive

    we recreated the accounts in WHM but when we try to move the folders it says denied..
    when we move them over one by one we have to individually chown them to <username>:<nobody>or<root>

    whats a quick way to do this?? There are WAY to many folders to do this to every single account on the server. What can we do??
     
  6. kasey

    kasey Member

    Joined:
    May 29, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Since you're obviously using a unix based system I can help you with that one.


    If you're using a GUI interface do the following:

    Go into the / folder and right click on home.
    Go down to Preferences.
    When it comes up go to Permissions. Most likely this will be on a tab at the top.
    Then put in the settings you wish to use.
    At the bottom of that screen there should be a checkbox that says something along the lines of "Apply changes to all subdirectories and their contents". Be sure to click that checkbox and then press OK.


    If you're using Unix and have to do this from the command line do the following:

    cd /
    chmod -R 777 home

    This should change all of the subfolders and files to read write and execute across the board.
     
  7. kasey

    kasey Member

    Joined:
    May 29, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    The best way to probably go about this is to have the users move their files back. For example... put them in a folder (backup for instance). Then keep the chmod as 777. Have them move the folders over using putty, or if you really want to you can do it, and when they put it in their new folder it should automatically set the right permissions. Or what you may do is put them in an ftp folder on the server and copy it out from that ftp folder to your user's ftp folder.
     
  8. icanectc

    icanectc Well-Known Member

    Joined:
    Mar 10, 2003
    Messages:
    344
    Likes Received:
    0
    Trophy Points:
    16
    Nice site thaphanton

    I got it all transferred over everyone is back up and running with little downtime. Thanks for your help all! Much appreciated!
     
  9. kasey

    kasey Member

    Joined:
    May 29, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Actually, here's a list given to me by cPanel support themselves. You may not need some of it, but here it is if you want it.

    Files
    /etc/named.conf
    /etc/proftpd.conf
    /etc/localdomains,
    /etc/httpd/conf/httpd.conf
    /usr/local/apache/conf/httpd.conf
    /etc/group
    /etc/shadow
    /etc/passwd
    /etc/domainalias
    /etc/fstab
    /root/.my.cnf
    /etc/ips
    /etc/reservedips
    /etc/quota.conf
    /etc/wwwacct.conf
    /etc/domainalias
    /etc/fstab
    /root/.my.cnf
    /etc/ips
    /etc/reservedips
    /etc/quota.conf
    /etc/wwwacct.conf
    /etc/rndc.conf
    /etc/secondarymx
    /etc/my.cnf
    /usr/local/cpanel/3rdparty/interchange/interchange.cfg
    /etc/userdomains

    Dirs
    /etc/valiases
    /etc/proftpd
    /var/named
    /etc/vfilters
    /var/cpanel
    /var/spool/cron
    /usr/local/frontpage
    /var/log/bandwidth
    /var/lib/mysql
    /usr/share/ssl
    /etc/ssl
    /var/ssl
    /usr/local/cpanel/3rdparty/mailman
    /home
    /usr/local/cpanel/base
    /usr/local/frontpage
    /var/named
     
Loading...

Share This Page