Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. # Tasks when setting up a new Ubuntu server
  2.  
  3. # Chaneg root user password
  4. passwd
  5.  
  6. # Create a new user
  7. adduser tzi
  8. # Add it to sudo group
  9. usermod -a -G sudo tzi
  10. # Add it to www-data group
  11. usermod -a -G www-data tzi
  12.  
  13.  
  14. # Apache
  15. apt-get install apache2
  16. # Enable URL Rewriting
  17. a2enmod rewrite
  18. # Improve security, change the current values to:
  19. # - ServerTokens Prod
  20. # - ServerSignature Off
  21. vi /etc/apache2/conf-available/security.conf
  22. # Change default Apache configuration to:
  23. vi /etc/apache2/sites-available/000-default.conf
  24.  
  25. # PHP
  26. apt-get install php mysql-server php-mysql
  27.  
  28. # Allow our user to deploy a website
  29. chown -R tzi:www-data /var/www
  30. chmod -R 755 /var/www
  31.  
  32.  
  33. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement