Home » Technology » Howto

How to Enable, Start, Restart and Stop Httpd in Fedora 16 ?

Submitted by Vidhu on Dec 31 2011 Views: 4718 | Subscribe

How to Enable/Start httpd ?

1. You have to enable Apache / httpd using systemctl

** systemctl - Control the systemd system and service manager

[root@stk /]# su
[root@stk /]# systemctl enable httpd.service

2. Start httpd using this command "systemctl start httpd.service"

[root@stk /]# systemctl start httpd.service
Check the status of httpd service using "systemctl status httpd.service"

How to Check httpd Status ?

[root@stk /]# systemctl status httpd.service

httpd.service - The Apache HTTP Server (prefork MPM)
Loaded: loaded (/lib/systemd/system/httpd.service; enabled)
Active: active (running) since Sat, 31 Dec 2011 17:43:05 +0400; 3h 31min ago
Main PID: 823 (httpd)
CGroup: name=systemd:/system/httpd.service
823 /usr/sbin/httpd -k start
839 /usr/sbin/httpd -k start
840 /usr/sbin/httpd -k start
842 /usr/sbin/httpd -k start
844 /usr/sbin/httpd -k start
845 /usr/sbin/httpd -k start
846 /usr/sbin/httpd -k start
847 /usr/sbin/httpd -k start
848 /usr/sbin/httpd -k start
1568 /usr/sbin/httpd -k start

How to Restart httpd ?

Restart httpd service : "systemctl restart httpd.service"

[root@stk /]# systemctl restart httpd.service
Stop httpd service : "systemctl restart httpd.service"

[root@stk /]# systemctl stop httpd.service

Articles Related to Linux :

Tags: How to Enable httpd on Fedora 16, Start httpd, httpd start using systemctl, stop httpd , how to httpd start

Get email updates. Virus Removal Tips, News, How to, Threat Alerts.

Leave a comment!