WikiServer - Install
Jump to navigation
Jump to search
Proven on Mint 19.3
NOT Proven on SparkyLinux 5.11 ... (MySQL on SparkyLinux may be problematic)
Install the LAMP Stack
Install MediaWiki
wget https://releases.wikimedia.org/mediawiki/1.34/mediawiki-1.34.1.tar.gztar -xvzf mediawiki-*.tar.gzsudo mkdir /var/www/html/wikisudo mkdir /var/www/html/labnotessudo cp -r mediawiki-*/* /var/www/html/wikisudo cp -r mediawiki-*/* /var/www/html/labnotessudo mysql -u root -p
CREATE DATABASE my_wiki; GRANT ALL PRIVILEGES ON my_wiki.* TO 'someone'@'localhost'; FLUSH PRIVILEGES; CREATE DATABASE my_notes; GRANT ALL PRIVILEGES ON my_notes.* TO 'someone'@'localhost'; FLUSH PRIVILEGES; EXIT;
sudo vim /etc/php/7.2/apache2/php.ini- (this may be in a slightly different location depending on version of php installed...)
- increase
upload_max_filesizeto 200M
- Fix upload directories:
sudo chmod -R ugo+rwX /var/www/html/wiki/imagessudo chmod -R ugo+rwX /var/www/html/labnotes/images
Browse to http://ServerAddress/wiki & follow the steps presented.
Set it as Authorised editors only.
Browse to http://ServerAddress/labnotes & follow the steps presented.
Set as Private Wiki
Troubleshooting
Note: With MySQL 8, there is some possibility that it will default to the wrong authentication method.
- If Mediawiki has problems connecting & gives you "The server requested authentication method unknown to the client." as part of the error message, sign back into MySQL & adjust the user being assigned in the wiki install:
sudo mysql -u root -pALTER USER 'someone'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';