ក្រុមការងារយើងខ្ញុំនិងខិតខំសិក្សារស្រាវជ្រាវចំនេះដឹងបន្ថែមទៀតសំរាប់លោកអ្នក សូមអរគុណសំរាប់ការគាំទ្រ !

Linux Web Server Configuration

Linux Web Server Configuration

View Video : link 

Command configure Web server : 

Web server in linux : old service is Apache

1/ install service :
#yum -y install httpd        d is demol is for run background
2/ create website in folder var/www/html
#cd /var/www/html/
#mkdir test.local
#cd test.local
#mkdir public_html
#vi index.html
write : welcame to my website !!!  : save
#mv index.html public_html/
#ls
3/ configure vitual host
#cd /etc/httpd/conf.d/
#ll
#vi vhost.conf
write :
<VirtualHost *:80>
  servertAdmin webmaster@test.local
  serverName test.local           : ត្រូវមាន DNS និងសិនបានដំណើរការបាន ត្រូវ add record in revers zone
  serverAlias www.test.local
  DocumentRoot /var/www/html/test.local/public_html/
 </VirtualHost>          :  save
#ll
#cat vhost.conf
#Service httpd restart
#servie httpd status
#chkconfig httpd on
#firewall-cmd --add-service=http --permanent --zone=public
#firewall-cmd --reload
test with website
open browser : 192.168.1.254
- add domain name :
+ add dns in phycical PC   : 192.168.1.254

open browser : test.local


EmoticonEmoticon