Install Apache | httpd under Fedroa,Cent OS Linux
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
1. You need to upload files at /var/www/html under RHEL / CentOS / Fedora Linux operating system.
2. You need to upload files at /var/www/ under Debian or Ubuntu Linux operating system.
Apache Server configuration
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.

No comments:
Post a Comment