Fedora Guide
On the first page I got Fedora 14 installed and upgraded to Fedora 15, and updated the system with yum.
Now it's time to install the servers that do the dirty work. Do this right through yum. I am installing this system as a plug in replacement for my current web server. I need to install a few things like Apache, PHP, and BIND:
| sudo yum install httpd php bind |
In order to transfer my config and data files over to the backup server I need SCP. SCP does not work for Fedora 14 and Fedora 15 because the minimal installer does not install the necessary ssh files. Fix this with YUM:
| sudo yum install openssh-clients |
Use SCP to copy the server config files.
Copy the server config files to the backup server. I had to do it in a two step process. Copy the files to your home directory, then copy them to the system directories. Here are the locations by default in Fedora 14 & Fedora 15:
Apache:
| /etc/httpd/conf/httpd.conf |
BIND (my zone files are located in /etc/named/zones):
|
/etc/named.conf /etc/named |
Firewall configuration iptables:
| /etc/sysconfig/iptables |
Last step is to copy the Apache directory to move the website data to the backup server. The default directory in Fedora is shown:
| /var/www/html |
|
sudo service named start sudo service httpd start sudo service iptables start |
Fire up your browser and point it at the local address of your backup browser e.g. http://192.168.10.xxx. If everything works the page should load up. To test the BIND server I edited my /etc/resolv.conf to the IP of my backup server.
I'm going to be using this backup server to host this site until I get my main server updated with a 1000 base-T network card and setup DCHP server and iptables for routing on it.
Like this page? See the rest of my Fedora guides!