User:SamanthaNguyen/Guides/Setup
Appearance
System Requirements
[edit]- Git
- Docker
- Composer
- PHP
Shell
[edit]git clone https://gerrit.wikimedia.org/r/mediawiki/core.git --branch REL1_44 mediawiki
cd mediawiki
cat > .env <<EOF
MW_SCRIPT_PATH=/w
MW_SERVER=http://localhost:8080
MW_DOCKER_PORT=8080
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=dockerpass
XDEBUG_CONFIG=
XDEBUG_ENABLE=true
XHPROF_ENABLE=true
EOF
echo "MW_DOCKER_UID=$(id -u)
MW_DOCKER_GID=$(id -g)" >> .env
# start container in detached mode
docker compose up -d
# run these commands inside the container via
# docker compose exec
## update submodules
docker compose exec mediawiki git submodule update --init --recursive
## install Composer dependencies
docker compose exec mediawiki composer update
## install
docker compose exec mediawiki /bin/bash /docker/install.sh
open http://localhost:8080/