Sunday 26 August 2012

How to Install a Ubuntu Dedicated Server

3637703614_e109b39f89.jpg (500×333)

In this tutorial you will be installing a dedicated web server for free. There are several reasons why a web server will be useful, including a test platform for websites and host them later. It will take about one to two hours and should be easy enough for beginners to complete. To summarize, we will install the operating system Ubuntu server due to its friendly interface and easy to administer. This is a good choice for those just entering the Linux community. A LAMP stack installed later, consisting of Linux, Apache, MySQL and PHP. The Apache web server is gone today. Finally, we will install a firewall on the server, to prevent intruders from changing your hard work.

Firstly, you must purchase a copy of Ubuntu Server on a blank CD or a kind of portable device. Go to the Ubuntu website and click on the download link in the left menu and choose Edit Server. Burn the iso. In a blank CD. If you do not have an ISO burner, there are several reliable and free programs on the internet that you can find easily. Then install Ubuntu Server on your computer, server, or if you have one. Booting from the CD, and the installation of Ubuntu will start automatically. Select "Install Ubuntu Server" and follow the instructions to complete the installation. As a quick note, make sure to label all its variables, such as host name, correctly and clearly so that you can refer to them later.

Once Ubuntu is installed, it must be converted to a Web server. Installing applications in Ubuntu is different from the typical form, but still relatively simple. We need to implement a web server Apache, the database server MySQL database and PHP as server side language. To install these three entities in Ubuntu, go to Package Manager and enter the following command: sudo aptitude install mysql-server apache2 php5-mysql libapache2-mod-php5. Press Enter and Ubuntu will automatically download and install the programs listed in the order. If you lack the necessary requirements, Ubuntu automatically installs them for you too.

Once all the equipment is in place, you should check if the Web server is running. Find IP of your server by typing ifconfig | grep inet on the command line. Locate the first IP address in the list and copy down. Go to your web browser and enter the IP address. If you get a response that says "It works!", Then you have successfully installed your own web server. Do not put the champagne yet, however, you must install the firewall.

We want to install a firewall command line to protect our server. Shorewall is a reliable standard command line firewall. Install with the command: sudo aptitude install shorewall. Once installed, we need to set permissions. Block all connections and HTTP port and the SSH port by opening rules: sudo nano / etc / shorewall / rules. Add these lines, where it says # LAST LINE: HTTP / ACCEPT net $ FW. SSH / ACCEPT net $ FW. Then press Ctrl-S and Ctrl-x. The firewall has been optimized to allow only incoming SSH HTTP traffic. Congratulations, you now have your own dedicated server and website free.

No comments:

Post a Comment