WackoWiki is a Wiki Engine software that allows users to edit and create articles in the wiki. In this tutorial, we will go through the process of installing WackoWiki on Void Linux.
sudo xbps-install -Su
sudo xbps-install -S nginx php php-fpm php-pdo php-mbstring php-opcache php-xml php-json php-gd mysql mysql-client
sudo nano /etc/nginx/nginx.conf
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
...
server {
listen 80;
server_name wiki.example.com;
root /var/www/wiki;
index index.php index.html index.htm;
location / {
try_files $uri /index.php;
}
location /dumps {
deny all;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
location ~* ^/cache/.*\.(php)$ {
deny all;
}
}
}
wget https://github.com/WackoWiki/wackoWiki/releases/download/6.0.13/wacko-6.0.13.zip
unzip wacko-6.0.13.zip
sudo mv wacko /var/www/wiki
sudo mysql -u root -p
CREATE database wacko_db;
GRANT ALL ON wacko_db.* TO 'wacko_user'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit
sudo cp /var/www/wiki/config.sample.inc.php /var/www/wiki/config.inc.php
sudo nano /var/www/wiki/config.inc.php
$wakkaConfig['dbtype'] = 'mysql';
$wakkaConfig['dbhost'] = 'localhost';
$wakkaConfig['dbname'] = 'wacko_db';
$wakkaConfig['dbuser'] = 'wacko_user';
$wakkaConfig['dbpasswd'] = 'password';
Save the file and exit.
Restart Nginx and PHP-FPM:
sudo service nginx restart
You have successfully installed WackoWiki on your Void Linux server. Visit your server by browsing to your server hostname or IP address with a web browser, and you should be redirected to the WackoWiki installation page. If you have followed the steps above correctly, then you should now have a fully functional WackoWiki installation ready to use.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!