How do I install and start the Apache or httpd web server under Fedora or RHEL or Red Hat / CentOS Linux?
Apache HTTP Server is a free software/open source web server for Unix-like systems and other operating systems.
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 the Apache server under Linux. You can also use up2date or yum command to install the same.
To start the Apache/httpd, run:
OR
To start the Apache/httpd, run:
You can also install httpd from CDROM with rpm command:
Apache HTTP Server is a free software/open source web server for Unix-like systems and other operating systems.
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.
Task: Install Apache/httpd under Fedroa Core/Cent OS Linux
Type the following command if you are using Fedora / RHEL / Cent OS Linux, run:# yum install httpd
To start the Apache/httpd, run:
# chkconfig httpd on
# /etc/init.d/httpd start
Task: Install Apache/httpd under Red Hat Enterprise Linux
Type the following command:# up2date httpd
OR
# yum install httpd
To start the Apache/httpd, run:
# chkconfig httpd on
# /etc/init.d/httpd start
Task: Debian Linux httpd/Apache installation
Use the apt-get command:# apt-get install apache2
# /etc/init.d/apache2 start
Task: Verify that port 80 is open
# netstat -tulpn | grep :80
You can also install httpd from CDROM with rpm command:
# rpm -ivh httpd*
Task: Store files / upload files for your web site
- You need to upload files at /var/www/html under RHEL / CentOS / Fedora Linux operating system.
- You need to upload files at /var/www/ under Debian or Ubuntu Linux operating system.
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.