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.

Weird characters in files - Some strange problems

Discussion in 'General Discussion' started by dob3rman, Jun 10, 2008.

  1. dob3rman

    dob3rman Active Member

    Joined:
    Feb 13, 2005
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    We have a strange problem, cant seem to find info on the web.

    Just to summer up:
    We had a problem yesterday and the system wasnt able to reboot. We have changed our hard drive - put a new one - install from scratch cpanel / whm on centos ent 5. And we have put our old hard drive in slave to be able to retrieve back our sites and more.

    When accessing the old drive, there are some strange characters in the files. For instance instead of header('location:index.php'); i have header('location:aNdex.php'); - Anyone ever saw this issue?? is it a character set in the system config?

    We are in desperate mode - any HELP would be really appreciated.

    On another note - anyone knows how we can retrieve our clients dbs?

    THANKS!
     
  2. k3oni

    k3oni Member

    Joined:
    Nov 2, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Somewhere is USA
    How are you restoring the files from the old drive exactly, rsync/cp etc .

    Regarding mysql databases just stop mysql, go on the old drive copy the databases directories from within /old-drive/var/lib/mysql to /new-drive/var/lib/mysql , make sure you also copy the mysql directory(/var/lib/mysql/mysql) , you may also make sure to not copy the files from within /var/lib/mysql just the directories, because copying the files may create problems when trying to start mysql again.

    You may want to think again and maybe hire someone who knows this things if you have important data in there as you may end up messing everything if this is not done correctly and also may lose data.

    Good luck.
     
Loading...

Share This Page