1&1 Server ReImage Notes
Monday, April 3rd, 2006Recently, 1&1 released Fedora Core 3 with Plesk 7.5 as one of the images server administrator can restore to. Since I've messed up the server a lot, instead of spending more time trying to figure out how to fix it and upgrade it, a quicker solution is to reimage it to FC3. This leads to backuping things up. I tried to get ftpfs working so there would be easy access to 1&1's backup server, but the process seems like this: I'm getting close the solution, but there is this one problem which leads to another problem, and then as I get close to the solution of this another problem, there's another one problem that leads to another another problem. You get the idea. Anyway, I ended up using tar and ftp command to manually backup files and upload them onto the backup server.
Directories backuped:
- /etc
- /home/httpd
- /var
1&1's FAQ has an article "What should I backup?" and I think… yeah… well… it's a 1&1's FAQ, as long as you're happy. I use the standard tar zcvf to add each directory info one .tgz file and then upload it onto the backup server. After these, simply go to the admin panel's Server ReImage page, and select Fedora Core 3 w/ Plesk 7.5, then click the button. In about 40 minutes? Maybe less? The refreshed page finally shows Server Ready.
These are what I really used during restore:
- /etc/csh.cshrc
- /etc/screenrc
- /home/httpd
- /var/lib/mysql
I tried to restore mysql database through the dumped out database via phpmyadmin by uploading them into the sql query window. It doesn't work (orz). What I found out that worked way easier is to create the database & user via Plesk first, and then copy the old database files onto the new ones. Files are located under /var/lib/mysql/[databasename]/. Since I'm getting my old files back from the FTP backup server, installing FTPFS helps a lot.
Additionally, there are other things to do after the newly reimaged server:
- Move /opt to allow Plesk 8.0 update: For some mysterious reason, Plesk 8.0 refuse to install unless you have enough space under /opt. Ironically, by default, there is not enough space. So to make Plesk 8.0 happy in this FC3, link /opt to /home/opt.
- Change the timezone: relink the file /etc/localtime to the correct timezone listed under /usr/share/zoneinfo. For mine:
ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime - Add ntpdate into root's cron:
0 * * * * /usr/sbin/ntpdate time.ucla.edu - Essential packages: yum install cvs firefox openssl python-devel subversion vim xterm
- Essential Packages not available via yum: apt, ncftp. rpm -iv files.
Also within /etc/my.cnf under [mysql.server], add in:
set-variable = max_connections = 300
set-variable = max_user_connections = 300
Do they work? I haven't get a chance to try yet.
To be updated later if new things came across.


Recent Comments