All the popular Linux distributions come with Apache, the most popular Web server on the Internet today.In most cases, Apache is installed and configured automatically when you install Linux. Then, setting up a Web server for the Internet or an intranet is simply a matter of tweaking a few Apache configuration settings and copying your HTML document files to Apache's home directory.
You can quickly find out whether Apache is installed on your system by entering the following command from a shell prompt:
rpm -q httpd
If Apache has been installed, the package version is displayed. If not, the message package httpd is not installed is displayed.
If Apache isn't installed on your Linux server, you can install it by following these steps:
- Choose System → Administration → Add/Remove Software.
This summons the Add/Remove Software program.
- Choose Package Collections in the list on the left side of the Add/Remove Software window.
This displays a list of commonly installed collections of packages.
- In the main list box in the Add/Remove Software window, scroll down
almost to the end of the list and select the Web Server option.
This selects the Apache Web Server packages.
- Click Apply.
The Add/Remove Software program installs the basic Apache packages.
- Type Apache Configuration in the search text box and click the Find button.
This finds the Apache Configuration tool, which is a valuable tool for configuring Apache that isn't included in the basic Web Server package collection.
- Click Apply.
The Apache Configuration Tool is installed.
- Close the Add/Remove Software program.
Apache is now installed.
In this tutorial:
- Managing Linux Systems
- Planning a Linux Server Installation
- Installing Fedora 7
- Getting Used to Linux
- Understanding the file system
- On Again, Off Again
- Using GNOME
- Managing User Accounts
- Linux Network Configuration
- Restarting Your Network
- Working with Network Configuration Files
- The ifcfg files
- The resolv.conf file
- DHCP and DNS
- Configuring DHCP
- Running a DNS Server
- Running Apache
- Starting and Stopping Apache
- Confirming that Apache Is Running
- Using the HTTP Configuration Tool
- Restricting Access to an Apache Server
- Configuring Virtual Hosts
- Setting the Apache User Account
- Running Sendmail
- Installing Sendmail
- Modifying sendmail.mc
- Using SpamAssassin
- Using the Mail Console Client
- Running FTP
- Starting the vsftpd Service
- Configuring FTP