Setting up a new Ubuntu Webserver
Posted on Sat 11 November 2017 in Sysadmin
Here's a collection of links that provide helpful information when you have a brandnew Ubuntu machine with root access and you want to set it up as a webserver:
- https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-16-04
- https://www.digitalocean.com/community/tutorials/additional-recommended-steps-for-new-ubuntu-14-04-servers
- https://www.linode.com/docs/security/securing-your-server
- https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-16-04
- https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-16-04
- If you want to use Wordpress: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04
- If you're migrating from shared hosting: https://linode.com/docs/platform/migrate-to-linode/migrate-from-shared-hosting-to-linode/
If you want to use PHP 7 with mcrypt
, you might need to add an extra apt
repository like this:
sudo add-apt-repository universe
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-mcrypt php7.0-mysql
The following links help you secure your server: