Difference between revisions of "WikiServer - Install"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | === Install the LAMP Stack === | + | ===Install the LAMP Stack=== |
[[WebServer - Basic LAMP Stack Install|Basic LAMP Stack Install]] | [[WebServer - Basic LAMP Stack Install|Basic LAMP Stack Install]] | ||
− | === Install MediaWiki === | + | ===Install MediaWiki=== |
− | * <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/html/wiki</code> | + | *<code>sudo mkdir /var/www/html/wiki</code> |
− | * <code>sudo mkdir /var/www/html/labnotes</code> | + | *<code>sudo mkdir /var/www/html/labnotes</code> |
− | * <code>sudo cp -r mediawiki-*/* /var/www/html/wiki</code> | + | *<code>sudo cp -r mediawiki-*/* /var/www/html/wiki</code> |
− | * <code>sudo cp -r mediawiki-*/* /var/www/html/labnotes</code> | + | *<code>sudo cp -r mediawiki-*/* /var/www/html/labnotes</code> |
− | * <code>sudo mysql -u root -p</code> | + | *<code>sudo mysql -u root -p</code> |
CREATE DATABASE my_wiki; | CREATE DATABASE my_wiki; | ||
Line 21: | Line 21: | ||
EXIT; | EXIT; | ||
− | * <code>sudo vim /etc/php/7.2/apache2/php.ini</code> | + | *<code>sudo vim /etc/php/7.2/apache2/php.ini</code> |
− | ** increase <code>upload_max_filesize</code> to 200M | + | **(this may be in a slightly different location depending on version of php installed...) |
− | * Fix upload directories: | + | **increase <code>upload_max_filesize</code> to 200M |
− | ** <code>sudo chmod -R ugo+rwX /var/www/html/wiki/images</code> | + | *Fix upload directories: |
− | ** <code>sudo chmod -R ugo+rwX /var/www/html/labnotes/images</code> | + | **<code>sudo chmod -R ugo+rwX /var/www/html/wiki/images</code> |
+ | **<code>sudo chmod -R ugo+rwX /var/www/html/labnotes/images</code> | ||
Browse to http://ServerAddress/wiki & follow the steps presented. | Browse to http://ServerAddress/wiki & follow the steps presented. |
Revision as of 23:41, 12 July 2020
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/html/wiki
sudo mkdir /var/www/html/labnotes
sudo cp -r mediawiki-*/* /var/www/html/wiki
sudo cp -r mediawiki-*/* /var/www/html/labnotes
sudo mysql -u root -p
CREATE DATABASE my_wiki; GRANT ALL PRIVILEGES ON my_wiki.* TO 'someone'@'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; CREATE DATABASE my_notes; GRANT ALL PRIVILEGES ON my_notes.* TO 'someone'@'localhost' IDENTIFIED BY 'password'; 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_filesize
to 200M
- Fix upload directories:
sudo chmod -R ugo+rwX /var/www/html/wiki/images
sudo 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