How to install and start the Apache or httpd service under Linux
Q. How do I install and start the Apache or httpd web server under Fedora core or Cent OS?
A. Apache HTTP Server is a free software/open source web server for Unix-like systems and other oses.
Apache features configurable error messages, DBMS-based authentication databases, and content negotiation. It is also supported by several graphical user interfaces (GUIs) which permit easier, more intuitive configuration of the server.
Use rpm command to install Apache under Linux. You can also use up2date or yum command to install the same.
Task: Install Apache/httpd under Fedroa Core/Cent OS Linux
Type the following command if you are using Fedora or Cent OS Linux:
# yum install httpdNow, start the Apache/httpd
# chkconfig httpd on
# /etc/init.d/httpd startTask: Install Apache/httpd under Red Hat Enterprise Linux
Type the following command
Start the Apache/httpd
# up2date httpdStart the Apache/httpd
# chkconfig httpd on
# /etc/init.d/httpd startTask: Debian Linux httpd/Apache installation
Use apt-get command:
# apt-get install apache2
# /etc/init.d/apache2 startTask: Verify that port 80 is open
# netstat -tulpn | grep :80Configuration
Your server is started but you need to configure and use Apache as per your requirement. /etc/httpd/conf/httpd.conf (RHEL/Cent OS/Fedora Core Linux) or /etc/apache2/httpd.conf (Debian / Ubuntu Linux) configuration file. Use text editor such as vi to edit file. This file is very well documented or read official Apache configuration documentation for more information.
No comments:
Post a Comment