I've run several WPMS installs in the past, but never run into this.
- DO LAMP install
- Set up virtual host via https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts for domain.com
So files are in /var/www/domain.com/public_html and WordPress install goes swimmingly. check the vanilla install and can update plugins, upload media, etc.
Turn on WPMS using:
Jump back in and the Tools > Network Setup is there. Recommended config defines are:
and the .htaccess recommendations are also standard. Plug those in... and run bang into "Error establishing a database connection"
So something strange is happening between the standard and the WPMS install: probably something to do with the path because of the virtual host setup. I notice that these instructions are only for running in the root (with IP address as DOMAIN_CURRENT_SITE) but I've run WPMS in similar virtual host environments before without issues.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart.
If you run into issues leave a comment, or add your own answer to help others.