4 ms·
I do! A killer tip too. The Linode tutorials teach you one way of installing Apache, PHP, and MySQL... but there is another. If you're using Ubuntu and you r
by ubuntuftw 16y ago
I do! A killer tip too.
The Linode tutorials teach you one way of installing Apache, PHP, and MySQL... but there is another.
If you're using Ubuntu and you run the command "sudo tasksel", that'll launch a program that lets you pick from a bunch of preconfigured options. Need a LAMP server? Just "sudo tasksel" and select LAMP. Need a mail server? Same thing. Need an SSH server? Well, you get the idea.
In the past, I've had problems getting Apache, PHP, and MySQL to play nicely when installed manually, so this can sometimes be helpful.
As far as security tips:
1. Use password-protected SSH keys to login as opposed to just using a password. SSH is the protocol you will use to manage your VPS. It is also what you should use (instead of FTP, which is insecure) to transfer files.
2. Use UFW (it's short for uncomplicated firewall) to block all traffic by default and allow only necessary ports (80 for HTTP, 22 for SSH, etc). UFW is one GREAT reason to use Ubuntu. With other distributions, you have to use iptables to setup a firewall, which is incredibly complicated. UFW is easy as pie.
3. Run the command "sudo mysql_secure_installation" to secure your MySQL server
4. Keep the software on your VPS up to date. Run the commands "sudo aptitude update" and "sudo aptitude safe-upgrade" to do this.
- tasaro 16y agoAs far as making installations easier, you can also check out Linode StackScripts: http://www.linode.com/stackscripts/ http://www.linode.com/stackscripts/ The LAMP and LEMP (nginx instead of apache) stacks are two of the most popular.