November 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Categories

November 2014
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930

Centos7 Apache HTTP SERVER

Centos7 Apache HTTP SERVER

yum -y install httpd

rpm -qi httpd

systemctl enable httpd.service

ln -s ‘/usr/lib/systemd/system/httpd.service’ ‘/etc/systemd/system/multi-user.target.wants/httpd.service’

chkconfig httpd on

systemctl enable httpd

mkdir /wwwroot/www echo “www.rmohan.com” > /wwwroot/www/index.html

mkdir /wwwroot/crm echo “rmohan.com” > /wwwroot/crm/index.html

cd /etc/httpd/ mkdir vhost-conf.d echo “Include vhost-conf.d/*.conf” >> conf/httpd.conf

ServerName www.rmohan.com DocumentRoot /wwwroot/www/ Requireall granted

[…]