Преглед на файлове

Update guide with config checks and uninstall steps

- Postgresql to list tables in schema
- Fix misprint
- Remove asterisk in archive file path
DricomDragon преди 5 години
родител
ревизия
c30f58d581
променени са 1 файла, в които са добавени 38 реда и са изтрити 2 реда
  1. 38 2
      Guides/wiki.md

+ 38 - 2
Guides/wiki.md

@@ -7,8 +7,14 @@
 
 ## Config
 
+### Tweak MediaWiki
+
 File at `/var/lib/mediawiki/LocalSettings.php`
 
+### Look at postgresql tables
+
+When logged as *wiki_app*, use command `\\dt mediawiki.*`
+
 ## Warning
 
 Do not use wiki in url filepath.
@@ -28,7 +34,7 @@ CREATE DATABASE wiki_db WITH OWNER wiki_app;
 
 ### GNU/Linux packages
 
-Minmal :
+Minimal :
 ```
 sudo apt install apache2 php libapache2-mod-php php-xml php-mbstring
 ```
@@ -49,7 +55,7 @@ cd /tmp/
 
 wget https://releases.wikimedia.org/mediawiki/1.33/mediawiki-1.33.0.tar.gz
 
-tar -xvzf /tmp/mediawiki-*.tar.gz
+tar -xvzf /tmp/mediawiki-1.33.0.tar.gz
 
 sudo mkdir /var/www/mediawiki
 
@@ -65,6 +71,36 @@ php maintenance/install.php
 
 ### Apache HTTPS
 
+_todo_
+
 ### Optional : configure PHP
 
+_todo_
+
+## Uninstall Mediawiki
+
+### Disable site
+
+Required to disable database connection :
+
+```
+sudo a2dissite 'wiki.*'
+
+sudo service apache2 reload
+```
+
+### Drop postgreSQL stuff
+
+As _postgres_ user :
+
+```
+DROP DATABASE wiki_db ;
 
+DROP ROLE wiki_app ;
+```
+
+### Delete web server files
+
+```
+sudo rm -r /var/www/mediawiki
+```