How to install and configure APACHE web server in linux(5/6/7) with practical step by step guide
In this
article we learn what is APACHE webserver and how to install APACHE web server
and how to start APACHE service and know about location of APACHE related
files.
What is APACHE webserver
APACHE web
server is an open source most widely used webserver software.68% of the
webserver are running on APACHE webserver all over the world. APACHE webserver
is very fast,secure and APACHE webserver is highly customizable and fit in
different environment.
How to install APACHE web server in linux(5/6/7)
To install
APACHE webserver we need to install “httpd” package using the below command.
[root@localhost
yum.repos.d]# yum install http*
Loaded plugins: product-id,
subscription-manager
This system is not registered
to Red Hat Subscription Management. You can use subscription-manager to
register.
local |
3.9 kB 00:00 ...
Setting up Install Process
Resolving Dependencies
--> Running transaction
check
---> Package http-parser.x86_64
0:2.0-4.20121128gitcd01361.el6 will be installed
---> Package
http-parser-devel.x86_64 0:2.0-4.20121128gitcd01361.el6 will be installed
---> Package httpd.x86_64
0:2.2.15-29.el6_4 will be installed
--> Processing Dependency:
apr-util-ldap for package: httpd-2.2.15-29.el6_4.x86_64
--> Processing Dependency:
/etc/mime.types for package: httpd-2.2.15-29.el6_4.x86_64
--> Processing Dependency:
libaprutil-1.so.0()(64bit) for package: httpd-2.2.15-29.el6_4.x86_64
--> Processing Dependency:
libapr-1.so.0()(64bit) for package: httpd-2.2.15-29.el6_4.x86_64
---> Package
httpd-devel.x86_64 0:2.2.15-29.el6_4 will be installed
How to turn on APACHE service
After
installing the APACHE server we need to turn on(enable the APACHE service at
the startup mode) httpd service to turn on the service we execute the below
command.
For linux(5/6)
#chkconfig httpd on
For linux 7
#systemctl enable httpd
How to start/stop/restart the APACHE service
For linux(5/6)
#service httpd start
#service httpd stop
#service httpd restart
For linux 7
#systemctl start httpd
#systemctl stop httpd
#systemctl restart httpd
Configuration files of the APACHE web server
How to install and configure APACHE web server in linux(5/6/7) with practical step by step guide |
Default
configuration file: /etc/httpd/conf/httpd.conf
Default
SSL and vhost config directory: /etc/httpd/conf.d/
Default
document root directory: /var/www/html
Default
server access log file: /var/log/httpd/access_log
Default
server access log file: /var/log/httpd/error_log
Now the APACHE web server is
installed in the next article we learn how to configure the APACHE web server
and how it is working as a reverse proxy.
Please Donate To Bitcoin Address: [[address]]
Donation of [[value]] BTC Received. Thank You.
[[error]]
0 comments:
Post a Comment