Starting and Stopping Apache
Before you can use Apache, you must start the httpd daemon. From a command shell, use this command:
service httpd start
Whenever you make a configuration change, you should stop and restart the service with this command:
service httpd restart
If you prefer, you can stop and start the service with separate commands:
service httpd stop service httpd start
If you're not sure if Apache is running, enter this command:
service httpd status
You get a message indicating whether the httpd daemon is running.
To configure Apache to start automatically when you start Linux, use this command:
chkconfig --level 35 httpd on
To make sure that the chkconfig command worked right, enter this command:
chkconfig --list httpd
You should see output similar to the following:
httpd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
In this tutorial:
- Managing Linux Systems
- Planning a Linux Server Installation
- Partitions
- 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