Home > other >  Site management
Site management

Time:10-10

1 with yum yum download - y install HTTPD mariadb - PHP - mysql server mariadb PHP gd PHP - gd
Mkdir/var/www/html/a.org create a.org file (/var/WWW/HTML/site note directory)
Vim/var/www/html/a.org/index.html edit content
Vim/etc/httpd/conf.d/a.org.conf edit configuration
Configure the following & lt; VirtualHost * : 80 & gt;
ServerName www.a.org
DocumentRoot/var/www/html/a.org

Httod - t test appeared OK proved successful
Systemcht restart HTTPD restart HTTPD

2 the client vim/etc/hosts
Edit the server IP and www.a.org
Open or elinks http://www.a.org in the browser
  • Related