Vagrant environment for ACC
- Install [VirtualBox] (https://www.virtualbox.org/wiki/Downloads)
- Install [Vagrant] (https://www.vagrantup.com/downloads.html)
- Install [Git] (https://git-scm.com/)
- [Clone] (https://help.github.com/articles/cloning-a-repository/) this repository.
- Get submodules with "git submodule update --init --recursive"
- Run "vagrant up" in a shell prompt
Once "vagrant up" finishes running, you can open up http://127.0.0.1:8081/waca/acc.php and log in using "Admin" and "vagrant" as the username and password. This account should have Tool Administrator and CheckUser set on it.
In addition, there are "AdminNoCU", "CheckUser", "User", and "New" users with the same password.
If you want to run commands on the virtual machine that Vagrant creates (such as "sudo apt-get update; sudo apt-get upgrade"), you can run "vagrant ssh" while in this directory.
The config directory contains a config.local.inc.php file, and a .config.vagrant.inc.php file that should not be edited (it only contains some sane defaults which are copied to /vagrant/html/waca).
If you need the MySQL login details, the username is "root" and the password is "vagrant". This is a virtual machine that is only intended for development purposes so security isn't particularly important here.
There is a phpinfo() file at http://127.0.0.1:8081/info.php.
cleanup.sh/cleanup.bat is a small shell script that destroys the Vagrant environment, deletes the logs directory, and deletes the html/waca directory.
If you want to set up OAuth, the instructions in the last section of [ACC's installation guide] (https://github.com/enwikipedia-acc/waca/blob/master/INSTALLING.md#oauth-setup) should help.