x
Loading
 Loading
Hello, Guest | Login | Register

Running a Web Server under Linux

Someone recently asked me to help them install a Web server
on her Linux system. I simply pointed her Web browser at http:// localhost, and
up came a “Test Page” from Red Hat’s Apache package, displaying the banner “It
worked!”

Guru Screenshot
At Your Service: Most Linux distributions will install the Open Source Apache Web server by default.

Someone recently asked me to help them install a Web server on her Linux system. I simply pointed her Web browser at http:// localhost, and up came a “Test Page” from Red Hat’s Apache package, displaying the banner “It worked!”

The point is that most Linux distributions already include the Apache Web server package and will install it either by default or through a simple selection from the installation scripts. So if you have installed Linux, no additional work is required to install a Web server; you’ve already done it.

It sometimes happens, however, that your distribution may not have included the particular Web server you want to use. Or you may want to upgrade an existing Web server to a newer version. In that case, you may have to install one of the many Linux Web server packages using your distribution’s package management facilities, or by grabbing a tarball of the Web server’s sources, compiling them, and installing them manually.

There is not enough space to go into great detail on these alternatives. Fortunately, even a manual package install is rather simple. To install a new Web server package from an RPM file, you would use a command like:

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. KDE 4.4: Does It Work Yet?
  2. Writing Custom Nagios Plugins with Python
  3. Power Up Linux GUI Apps
  4. Tweeting from the Command Line with Twyt
  5. When Memory Serves You: Using ramfs and tmpfs
Follow Linux Magazine
Rackspace