Sep 11, 2010

How to Create a Linux Based Web Server

When you create a web server using Linux, your server should be secure, and you'll have solid software for a relatively little investment. A huge percentage of the commercial web servers available are working on Linux and utilizing the Apache web server software.


Buy an Enterprise edition of Linux. Many vendors sell Linux installations which come preconfigured to operate as a server. These sellers include Red Hat, Suse and Ubuntu.

Set Up the Linux server software. Quite often when setting up an Enterprise or Server edition of Linux you will be asked if you want to install the full LAMP package. Choose yes if this option is provided.

Linux server software
Select a server package to install. Most Linux installations include the Apache web server software, but they may also offer one of the some other Linux web server packages. Apache is just the most popular.

Add a database program. Your Linux distribution may ship with both MySQL and PostgreSQL. You may set up both applications if you want. Although MySQL is the most popular option, many Web applications are designed to work with PostgreSQL.

Implement supporting for a programming language, such as PHP on your server. Linux distributions almost always include support for PHP, CGI, Perl and in many cases Python. PHP is the most commonly utilized programming language for World Wide Web applications on Linux servers.

Reboot your server once all of the primary applications have been installed. With the server restarted, test each of the applications from the root account and a user account to ensure they are running properly.

Open a browser on your Linux box, and type: http://localhost. If the server is functioning correctly you will see a confirmation test page.

Linux Server Hacks, Volume Two