After boring you to death with information that may come in handy. We will now go into the fun part of setting up our server. The the type of server we will setup here is known as a LAMP stack. It gets it’s name because it is Linux, Apache, MySQL and PHP. Which when you take the first letter of each name spells LAMP, dah.
The recommended & preferred way to setup a LAMP server is to install the packages in just that order. So this means the first thing we will do is install and setup Linux. For the purposes of this tutorial I will be using Fedora 16. If your using Ubuntu Server you will be able to setup a LAMP stack right from the installation . You can also do this with Fedora. However for the purposes of this tutorial we wont be doing that. Plus I just prefer Fedora. And really who doesn’t. After all RPM’s are so Yummy.
The Fedora netboot installation and the installation from an optical media or almost identical. So it really wont matter to much. At the beginning of the installation you may get a blue screen that looks like the following.
It is pretty self explanatory. Simply choose your prefered language and input options by using the arrow keys on your keyboard. After that the Anaconda graphical installer should start up. If your using Ubuntu or Debian or a Debian derivative you will get the Debian installer. The nice part about Anacanda is the simplicity of configuring the network card right at installation. We will get to that in a bit.
The first part of Anacanda will ask you what type of storage you are using. This usually have two options, which are basic and advanced. Most of the time we will use the first option. After this we will use our mouse to click on the button in the lower right hand corner of the screen that says next.
If you have more then one hard drive on your computer, Anacanda will ask you which drive you will want to install to. Choose the drive you want to install Fedora onto by clicking on it. Then when it is highlighted click on the arrow in the center of the screen.
Note: If your installing Fedora from USB drive the USB drive will show up in the list of drives. If you choose to install the Fedora onto the USB drive you may run into complications. So be very careful not to choose that drive.
After you have selected your drive. You will click on the button that says next on it. Once again the Next button is located in the bottom right hand corner of your screen.
Next you will be asked to type in a domain. I usually type a domain like server1.something. I do this simply because I may have second server that I will call server2.something. But to be honest with you at this point in the installation you can type what ever you want. It really doesn’t matter.
Next you will see a screen that has picture of a map on it. Select your location. In my case I select New York as my location. This sets my clock correctly. After you do this you click on the next button.
It will ask you to type a password for the Root User. You should type in a fairly strong password. But it is also important that you remember this password. Because without it you wont be able to get into your server.
The next option is how you want Fedora to be installed on the Disk. Their are several options that you can choose from. They are list below.
- Use All Space
- Replace Existing Linux Systems
- Shrink Current System
- Use Free Space
- Create Custom Layout
After Anaconda has written to the disk you will see the following.
This is where you will select what type of files you want installed on your server. Select the option that says Web Server. Then check the boxes that say Installation Repo, Fedora 16 Repo, Fedora 16 Updates. Then select the option that says “Customize Now“. After this click the Next button.
Another window will pop up. This is where you will get to configure your network. Click the Ok button. The network manager should then appear. Along with a list of your networks. Select the one you want to configure and press the Edit button to the right.
Another window will appear. In the top of the window you will see a text box that says something along the lines of System eth0 or System p1p1. We can change this name to something like My Home Network. We also see 4 tabs. Select the tab that says IPv4 Settings. By default Fedora should be set to DHCP. We will change this to Static by selecting the drop down box next to the word Method. And choosing the option that says Manual.
Here we will click on the button that says Add. Now we need to add our Servers IP Address, our Netmask, and the Gateway IP Address. These IP addresses are internal IP address so they are only for your network not the outside world. If your using a Linksys Router your IP address should be something like the following.
Where the letters xx can be any number you choose.
Most of the time the mask will always be 255.255.255.0
Gateway IP Address.
The Gateway IP Address is the Address of your router. Which is the device that will issue all of the IP Addresses on the network. If it is Linksys Router it will most likely be 192.168.1.1