How to create an instance with pre-installed LAMP tools
A few clicks will get you a Labs instance running Apache, Mysql server and PHP.
- Make sure your instances are accessibly from the web, create a 'Web" security group: see Help:Security Groups.
- In the left bar, click "Manage Instances", then click 'Add Instance', and add your new instance to the 'Web' security group (and any other security groups that you anticipate needing).
- Reach the "configure" page of the instance from Special:NovaInstance. Check the box next to role::lamp::labs in the 'apache' section.
- Configure the domain: see Help:Proxy.
- Choose a sub-server name (for instance "myproject"), and select your instance.
- You can now access your web server at https://myproject.wmflabs.org and http://myproject.wmflabs.org , both pages should show "It works".
- The default page can be modified at /var/www/index.html
There are multiple mysql modules in the configure page. It's not clear what they do; avoid them.
If you need MariaDB, for instance because you need to match some Wikimedia production service, avoid using any of the existing database modules, which (as of 2015) will all work against you.
Instead, just do
sudo apt-get install mariadb-server and proceed from there, following instructions of the software you are installing or any other LAMP/other stack setup guide on the web. Expect some quirks, as for several things the Labs servers don't follow the usual distribution defaults.