Difference between revisions of "WikiServer - Install NEW"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | '' | + | <span style="font-size: 24pt; color: rgb(224, 62, 45); text-decoration: underline;">This is a Deprecated Version!</span>'''''</span> |
'''Now with more VirtualHosts...''' | '''Now with more VirtualHosts...''' | ||
Line 39: | Line 39: | ||
Configure your webserver with [[WebServer - Name-based Virtual Host Support|VirtualHosts]] for the Wiki & LabNotes | Configure your webserver with [[WebServer - Name-based Virtual Host Support|VirtualHosts]] for the Wiki & LabNotes | ||
− | * Wiki | + | *Wiki |
− | ** <code>ServerName WikiServer.Domain.TLD</code> | + | **<code>ServerName WikiServer.Domain.TLD</code> |
− | ** <code>DocumentRoot "/var/www/wiki"</code> | + | **<code>DocumentRoot "/var/www/wiki"</code> |
− | * LabNotes | + | *LabNotes |
− | ** <code>ServerName LabNotesServer.Domain.TLD</code> | + | **<code>ServerName LabNotesServer.Domain.TLD</code> |
− | ** <code>DocumentRoot "/var/www/labnotes"</code> | + | **<code>DocumentRoot "/var/www/labnotes"</code> |
Browse to '''<nowiki>http://WikiServer.Domain.TLD/</nowiki>''' & follow the steps presented. | Browse to '''<nowiki>http://WikiServer.Domain.TLD/</nowiki>''' & follow the steps presented. | ||
Line 53: | Line 53: | ||
Set as '''Private Wiki''' | Set as '''Private Wiki''' | ||
+ | |||
+ | ===Adding another Wiki to an existing Wiki Server=== | ||
+ | |||
+ | * <code>sudo mkdir /var/www/anudderwiki</code> | ||
+ | * <code>sudo cp -r mediawiki-*/* /var/www/anudderwiki</code> | ||
+ | * <code>sudo mysql -u root -p</code> | ||
+ | ** <code>CREATE DATABASE anudder_wiki;</code> | ||
+ | ** <code>GRANT ALL PRIVILEGES ON anudder_wiki.* TO 'someone'@'localhost';</code> | ||
+ | ** <code>FLUSH PRIVILEGES;</code> | ||
+ | ** <code>EXIT;</code> | ||
+ | * <code>sudo chmod -R ugo+rwX /var/www/anudderwiki/images</code> | ||
+ | |||
+ | Configure your webserver with VirtualHosts for the new Wiki | ||
+ | |||
+ | * <code>ServerName AnudderWikiServer.Domain.TLD</code> | ||
+ | * <code>DocumentRoot "/var/www/anudderwiki"</code> | ||
+ | |||
+ | Browse to '''<nowiki>http://AnudderWikiServer.Domain.TLD/</nowiki>''' & follow the steps presented. | ||
+ | |||
+ | Set as '''Authorised editors only''' or '''Private Wiki''' | ||
===Troubleshooting=== | ===Troubleshooting=== |
Latest revision as of 17:20, 13 January 2022
This is a Deprecated 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)
Contents
Install the LAMP Stack
Install MediaWiki
wget https://releases.wikimedia.org/mediawiki/1.34/mediawiki-1.34.1.tar.gz
tar -xvzf mediawiki-*.tar.gz
sudo mkdir /var/www/wiki
sudo mkdir /var/www/labnotes
sudo cp -r mediawiki-*/* /var/www/wiki
sudo cp -r mediawiki-*/* /var/www/labnotes
sudo 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_filesize
to 200M
- Fix upload directories:
sudo chmod -R ugo+rwX /var/www/wiki/images
sudo chmod -R ugo+rwX /var/www/labnotes/images
Configure your webserver with VirtualHosts for the Wiki & LabNotes
- Wiki
ServerName WikiServer.Domain.TLD
DocumentRoot "/var/www/wiki"
- LabNotes
ServerName LabNotesServer.Domain.TLD
DocumentRoot "/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
Adding another Wiki to an existing Wiki Server
sudo mkdir /var/www/anudderwiki
sudo cp -r mediawiki-*/* /var/www/anudderwiki
sudo mysql -u root -p
CREATE DATABASE anudder_wiki;
GRANT ALL PRIVILEGES ON anudder_wiki.* TO 'someone'@'localhost';
FLUSH PRIVILEGES;
EXIT;
sudo chmod -R ugo+rwX /var/www/anudderwiki/images
Configure your webserver with VirtualHosts for the new Wiki
ServerName AnudderWikiServer.Domain.TLD
DocumentRoot "/var/www/anudderwiki"
Browse to http://AnudderWikiServer.Domain.TLD/ & follow the steps presented.
Set as Authorised editors only or 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 -p
ALTER USER 'someone'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';