Linux (create an instance)
A few clicks will get you a Labs instance running Apache, MySQL, 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
Other modules: There are multiple MySQL modules in the configuration page. It's not clear what they do; avoid them.
sudo apache2ctl graceful
MySQL or MariaDB
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.
Add to or change the PHP configuration by editing:
/etc/php5/apache2/conf.d/99-<projectname>.inifor Apache (after editing this you'll need to restart Apache; see above); and
/etc/php5/cli/conf.d/99-<projectname>.inifor the CLI.
Other INI files will be overwritten on PHP upgrades.