Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Tasks when setting up a new Ubuntu server
- # Chaneg root user password
- passwd
- # Create a new user
- adduser tzi
- # Add it to sudo group
- usermod -a -G sudo tzi
- # Add it to www-data group
- usermod -a -G www-data tzi
- # Apache
- apt-get install apache2
- # Enable URL Rewriting
- a2enmod rewrite
- # Improve security, change the current values to:
- # - ServerTokens Prod
- # - ServerSignature Off
- vi /etc/apache2/conf-available/security.conf
- # Change default Apache configuration to:
- vi /etc/apache2/sites-available/000-default.conf
- # PHP
- apt-get install php mysql-server php-mysql
- # Allow our user to deploy a website
- chown -R tzi:www-data /var/www
- chmod -R 755 /var/www
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement