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...")
 
 
(One intermediate revision by the same user not shown)
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 ==
Line 35: Line 34:
 
apachectl graceful
 
apachectl graceful
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
 +
== Starting Apache ==
 +
 +
No configuration is needed for basic operation.  Once its running point your browser to the localhost and you should see the test page:
 +
 +
http://localhost

Latest revision as of 10:58, 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


Starting Apache

No configuration is needed for basic operation. Once its running point your browser to the localhost and you should see the test page:

http://localhost