(This is an updated version of my own tutorial for EE2.)
- Create your droplet. Name it, select your size and location, then hit the Applications tab and select (as of this writing) "LAMP on 14.04". Add your SSH key if you want, and submit.
- Make sure mod_rewrite is enabled, with
a2enmod rewrite
. - If you like, increase PHP's
upload_max_filesize
andpost_max_filesize
values by editing the php.ini file, with this:nano /etc/php/7.0/apache2/php.ini
- Give Apache a restart:
service apache2 restart
- Run
mysql_secure_installation
. It will ask for the initial mysql root password which is saved in/root/.digitalocean_password
. - Log in to MySQL:
mysql -u root -p
(It will prompt you for your password.) - Create a new user, so we aren't using root all the time:
CREATE USER [NEW USERNAME]@'%' IDENTIFIED BY '[NEW PASSWORD]';
- Grant the new user full access:
GRANT ALL PRIVILEGES ON * . * TO '[NEW USERNAME]'@'%';