Difference between revisions of "WikiServer - Install NEW"
Jump to navigation
Jump to search
(Created page with "*Proven on Mint 19.3 ... (Seems to get MySQL 5.7) *Proven on Mint 20 ... (Gets MySQL 8.0) *Proven on SparkyLinux 5.11 ... (You'll have to [https://tecadmin.net/install-mysql-s...") |
|||
| Line 1: | Line 1: | ||
| + | '''NEW Version!''' | ||
| + | |||
| + | '''Now with more VirtualHosts...''' | ||
| + | |||
*Proven on Mint 19.3 ... (Seems to get MySQL 5.7) | *Proven on Mint 19.3 ... (Seems to get MySQL 5.7) | ||
*Proven on Mint 20 ... (Gets MySQL 8.0) | *Proven on Mint 20 ... (Gets MySQL 8.0) | ||
| Line 12: | Line 16: | ||
*<code>wget <nowiki>https://releases.wikimedia.org/mediawiki/1.34/mediawiki-1.34.1.tar.gz</nowiki></code> | *<code>wget <nowiki>https://releases.wikimedia.org/mediawiki/1.34/mediawiki-1.34.1.tar.gz</nowiki></code> | ||
*<code>tar -xvzf mediawiki-*.tar.gz</code> | *<code>tar -xvzf mediawiki-*.tar.gz</code> | ||
| − | *<code>sudo mkdir /var/www | + | *<code>sudo mkdir /var/www/wiki</code> |
| − | *<code>sudo mkdir /var/www | + | *<code>sudo mkdir /var/www/labnotes</code> |
| − | *<code>sudo cp -r mediawiki-*/* /var/www | + | *<code>sudo cp -r mediawiki-*/* /var/www/wiki</code> |
| − | *<code>sudo cp -r mediawiki-*/* /var/www | + | *<code>sudo cp -r mediawiki-*/* /var/www/labnotes</code> |
*<code>sudo mysql -u root -p</code> | *<code>sudo mysql -u root -p</code> | ||
| Line 26: | Line 30: | ||
EXIT; | EXIT; | ||
| − | *<code>sudo vim /etc/php/7. | + | *<code>sudo vim /etc/php/7.4/apache2/php.ini</code> |
**(this may be in a slightly different location depending on version of php installed...) | **(this may be in a slightly different location depending on version of php installed...) | ||
**increase <code>upload_max_filesize</code> to 200M | **increase <code>upload_max_filesize</code> to 200M | ||
*Fix upload directories: | *Fix upload directories: | ||
| − | **<code>sudo chmod -R ugo+rwX /var/www | + | **<code>sudo chmod -R ugo+rwX /var/www/wiki/images</code> |
| − | **<code>sudo chmod -R ugo+rwX /var/www | + | **<code>sudo chmod -R ugo+rwX /var/www/labnotes/images</code> |
| + | |||
| + | Configure your webserver with [[WebServer - Name-based Virtual Host Support|VirtualHosts]] for the Wiki & LabNotes | ||
| + | |||
| + | * Wiki | ||
| + | ** <code>ServerName WikiServer.Domain.TLD</code> | ||
| + | ** <code>DocumentRoot "/var/www/wiki"</code> | ||
| + | * LabNotes | ||
| + | ** <code>ServerName LabNotesServer.Domain.TLD</code> | ||
| + | ** <code>DocumentRoot "/var/www/labnotes"</code> | ||
| − | Browse to http:// | + | Browse to '''<nowiki>http://WikiServer.Domain.TLD/</nowiki>''' & follow the steps presented. |
| − | Set it as Authorised editors only. | + | Set it as '''Authorised editors only'''. |
| − | Browse to http:// | + | Browse to '''<nowiki>http://LabNotesServer.Domain.TLD/</nowiki>''' & follow the steps presented. |
| − | Set as Private Wiki | + | Set as '''Private Wiki''' |
===Troubleshooting=== | ===Troubleshooting=== | ||
Revision as of 17:22, 24 July 2020
NEW Version!
Now with more VirtualHosts...
- Proven on Mint 19.3 ... (Seems to get MySQL 5.7)
- Proven on Mint 20 ... (Gets MySQL 8.0)
- Proven on SparkyLinux 5.11 ... (You'll have to fix the missing MySQL thing & install vim first)
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/wikisudo mkdir /var/www/labnotessudo cp -r mediawiki-*/* /var/www/wikisudo cp -r mediawiki-*/* /var/www/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.4/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/wiki/imagessudo chmod -R ugo+rwX /var/www/labnotes/images
Configure your webserver with VirtualHosts for the Wiki & LabNotes
- Wiki
ServerName WikiServer.Domain.TLDDocumentRoot "/var/www/wiki"
- LabNotes
ServerName LabNotesServer.Domain.TLDDocumentRoot "/var/www/labnotes"
Browse to http://WikiServer.Domain.TLD/ & follow the steps presented.
Set it as Authorised editors only.
Browse to http://LabNotesServer.Domain.TLD/ & 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';