Difference between revisions of "Redhat: Apache webserver install"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Apache Installation == Apache can be installed using yum. To isntalled Apache using yum. <syntaxhighlight> yum install httpd </syntaxhighlight> However other packages will be needed. The ea...")
 
Line 3: Line 3:
 
Apache can be installed using yum.
 
Apache can be installed using yum.
  
To isntalled Apache using yum.
+
To install Apache using yum:
  
 
<syntaxhighlight>
 
<syntaxhighlight>
Line 14: Line 14:
 
yum groupinstall "Web Server"
 
yum groupinstall "Web Server"
 
</syntaxhighlight>
 
</syntaxhighlight>
 
  
 
== Controlling Apache ==
 
== Controlling Apache ==

Revision as of 10:55, 5 March 2014

Apache Installation

Apache can be installed using yum.

To install Apache using yum:

yum install httpd

However other packages will be needed. The easiest way to install all the packages is to use groupinstall

yum groupinstall "Web Server"

Controlling Apache

No Configuration is required. Once Apache is started, point the webbrower to http://localhost and you will see the apache test page.

using init.d

/etc/init.d/httpd start
/etc/init.d/httpd stop
/etc/init.d/httpd restart

using apache commands

apachectl stop
apachectl start
apachectl graceful