2,350 Tutorials

How to install Apache on Linux

An easy step-by-step guide to setting up an Apache Web server on Fedora, CentOS, or Ubuntu

The installation, care, and feeding of an Apache Web server is not terribly difficult, but can seem so if you haven't ventured into those particular waters before. This quick-start guide will help you get your feet wet with Apache on a Linux server. You'll find it's relatively simple to get the Web server set up and running on your Linux of choice. We'll also install PHP and MySQL, though we won't be digging into MySQL configurations, as that deserves a quick start all its own.

The method of installing the Apache packages on a Linux server varies from distribution to distribution. We'll cover how to do this on Fedora and CentOS, as well as on Ubuntu. This is a server-centric walkthrough, so we'll use the command line exclusively. Naturally, you'll need root-level privileges. Open the terminal window and type:

su -

Learn More

Already an Insider? Sign in

Send to a friend

Email this article to a friend or colleague:


PLEASE NOTE: Your name is used only to let the recipient know who sent the story. Both your name and the recipient's name and address will not be used for any other purpose.

IDG UK Sites

Nexus 4 selling out and Nexus 5 spotted in bar

IDG UK Sites

15 October Apple event: iPad 5, iPad mini 2, Haswell-powered iMac, Mac mini, MacBook Pro coming?

IDG UK Sites

Windows 8 smartwatch: what you need to know about the Surface smartwatc

IDG UK Sites

Reasons to be Creative organiser reflects on why the best talks are about passion

* *