# On Docker Alpine Linux
# install pkgs
apk add curl lighttpd php php-dom php-json php-pgsql php-cgi
php-mbstring php-xml php-ctype php-fileinfo php-iconv php-zlib php-gd
php-session imagemagick diffutils
#
#
apk add postgresql postgresql-client openrc
#
mkdir -p /usr/share/webapps/
cd /usr/share/webapps/
# latest release of MediaWiki
# https://www.mediawiki.org/wiki/Download
curl https://releases.wikimedia.org/mediawiki/1.38/mediawiki-1.38.2.tar.gz >mw.tar.gz
tar zxvf mw.tar.gz
mv mediawiki-1.38.2 mediawiki
# rm mw.tar.gz
chown -R lighttpd /usr/share/webapps/
ln -s /usr/share/webapps/mediawiki/ /var/www/localhost/htdocs/mediawiki
# Edit lighttpd.conf and uncomment include "mod_fastcgi.conf"
nano /etc/lighttpd/lighttpd.conf
Starting
/etc/init.d/postgresql setup
# hmmmm puzzling output
# touch /run/openrc/softlevel
# more complaints
touch: /run/openrc/softlevel: No such file or directory
mkdir -p /run/openrc
touch /run/openrc/softlevel
/etc/init.d/postgresql setup
# Success goto next step
/etc/init.d/postgresql start && rc-update add postgresql default
#
* WARNING: postgresql is already starting
rc-update add postgresql default
#
# * service postgresql added to runlevel default
#
# run this now
/etc/init.d/lighttpd start && rc-update add lighttpd default
Config your wiki
Install the wiki accessing
http://WEBSERVER_IP_ADDRESS/mediawiki/mw-config/index.php
When you finish, press "Install MediaWiki" button, and that's all. :)
You have MediaWiki working. To access go to http://WEBSERVER_IP_ADDRESS/mediawiki and enjoy!
docker inspect [containerID] | grep IPAddress
rc-status -a
# ps is different on Alpine!
https://wiki.alpinelinux.org/wiki/MediaWiki