As most of you know, G&G Network Design and Cabling, LLC has grown substantially over the past year. One of the reasons we have been so successfull is obviously because of our aggressive pricing for web services like email and website hosting. If you don't know, G&G Network Design and Cabling, LLC offers free web hosting for clients that have an active service agreement. The free website hosting includes unlimited bandwidth and unlimited data storage. "Frank! How does G&G Network Design and Cavling, LLC afford to host everyone's website for free without it tapping into your bottom line?" I'm glad you asked, and here is the answer.
G&G Network Design and Cabling, LLC has strategically placed Linux LAMP servers in various data centers and other locations throughout the nation. By load balancing these servers, we are able to offer a second to none infrastructure where clients can effectively launch, market, update, and present their business or product to the world. Because Linux is a free operating system, we are able to deploy these website servers for with zero licensing fees. These web servers are known in the technology space as LAMP Servers. LAMP stands for the 4 open source (software without licensing fees) system name "Linux." "A" stands for the webpage presenting software "Apache." "M" stands for the database software known as "MySQL." Finally, "P" stands for the server side scripting language know as "PHP." The good thing about the LAMP stack is that anyone can build and host their own server with minimal technical experience. Not only can you host your website on a LAMP server, you can also host just about any application you want. If the software or application you are hosting is written with the Python scripting language, the "P" in LAMP can be changed to Python. Now that we know what LAMP is, let me show you the easiest way to set up a LAMP Server.
The following are whats required prior to starting this project. If you dont have one or more of these items or you want to know if something you have will work in place of another part in my list, please send me an email and I'll let know.
- Spare computer with at least a 700 MHz processor (about Intel Celeron or better), 512MB of RAM, and 5GB of hard disk space.
- A DVD or Flash drive with your Linux OS of choice. For this tutorial, we used Ubuntu 12.
Install your Linux distro of choice, again we are using Ubuntu in this tutorial. The steps and commands will basically be the same for all versions of Linux.
- Start by running the update command to get our OS up to date with the latest security patches and bug fixes.
sudo apt-get update
- After Linux has finished updating its' files, we can start installing the LAMP components. Since we already have "L (Linux)," we will run the following command for "A (Apache)."
sudo apt-get install apache2
- In this tutorial, we are going to build our web server to accommodate PHP5 server side scripting language because thats the most common for websites today. With that in mind, install the PHP5 package with the Apache2 library.
sudo apt-get install php5 libapache2-mod-php5
- Once you have installed PHP5, go ahead and restart the Apache service.
sudo /etc/init.d/apache2 restart
- Once networking services are started back up, we will install the MySQL database package.
sudo apt-get install mysql-server
- That finishes the basic requirements for LAMP, however if you aren't too familiar or comfortable with managing MySQL from command line, you might want to install PHPMyAdmin. PHPMyAdmin is a graphical user interface for managing MySQL databases. It makes creating, removing, backing up, and migrating databases easy. To install it, run the following.
sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
- Finally, to complete the PHPMyAdmin installation, restart Apache service once more.
sudo /etc/init.d/apache2 restart
That completes the process for a simple LAMP server that easy to manage. Depending on your hardware and internet traffic, you can host hundreds of websites from this one server. Simply create virtual hosts in your sites-available directory and add the website host names to the local /etc/host file. If requested, I can create another tutorial on how to do that. If you have any questions, feel free to leave a comment or email me at frank@GandGNetworks.com. Remember, GandGNetworks.com offers free website hosting to all of its' clients. Fill out the Contact Form and we will contact you promptly.
G&G Network Design and Cabling, LLC