rikpant

Instalar Apache Hostinger Brasil

Jul 19th, 2019
2,622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #### COMANDOS USADOS NO TUTORIAL ####
  2.  
  3. yum update
  4. yum upgrade
  5.  
  6. yum update httpd
  7. yum install httpd
  8.  
  9. systemctl start httpd
  10. systemctl status httpd
  11.  
  12. mkdir -p /var/www/SEUSITE.COM.BR/html
  13.  
  14. mkdir -p /var/www/SEUSITE.COM.BR/log
  15.  
  16. chmod -R 755 /var/www
  17.  
  18. vi /var/www/SEUSITE.COM.BR/html/index.html
  19.  
  20. mkdir /etc/httpd/sites-available /etc/httpd/sites-enabled
  21.  
  22. vi /etc/httpd/conf/httpd.conf
  23.  
  24. IncludeOptional sites-enabled/*.conf
  25.  
  26. vi /etc/httpd/sites-available/SEUSITE.COM.BR.conf
  27.  
  28. <VirtualHost *:80>
  29.  
  30. ServerName www.SEUSITE.COM.BR
  31. ServerAlias SEUSITE.COM.BR
  32. DocumentRoot /var/www/SEUSITE.COM.BR/html
  33. ErrorLog /var/www/SEUSITE.COM.BR/log/error.log
  34. CustomLog /var/www/SEUSITE.COM.BR/log/requests.log combined
  35.  
  36. </VirtualHost>
  37.  
  38. ln -s /etc/httpd/sites-available/SEUSITE.COM.BR/etc/httpd/sites-enabled/SEUSITE.COM.BR.conf
  39.  
  40. systemctl restart httpd
  41.  
  42. #### FIM DOS COMANDOS USADOS NO TUTORIAL ####
Advertisement
Add Comment
Please, Sign In to add comment