In this tutorial, we will walk you through the steps to install WackoWiki on Alpine Linux Latest.
Before starting with the installation, it is recommended to update the system packages to their latest version.
To update the system, run the following command:
sudo apk update && sudo apk upgrade
WackoWiki requires PHP and a web server to run. Let's install them using the following command:
sudo apk add php7 php7-fpm nginx mariadb mariadb-client
After the installation is successful, start the services required for WackoWiki using the following commands:
sudo rc-service nginx start
sudo rc-service php-fpm7 start
sudo rc-service mariadb start
Next, we need to configure the database for WackoWiki. Let's create a database and user for WackoWiki:
Log in to the MariaDB:
sudo mysql -u root
Create a new database:
CREATE DATABASE wackowiki;
Create a new user:
CREATE USER 'wackouser'@'localhost' IDENTIFIED BY 'yourpassword';
Grant privileges to the user:
GRANT ALL PRIVILEGES ON wackowiki.* TO 'wackouser'@'localhost';
Flush the privileges:
FLUSH PRIVILEGES;
Exit the MariaDB prompt:
exit;
Now that the database is configured, let's download and install WackoWiki:
Download WackoWiki:
sudo wget https://wackowiki.org/download/wackowiki-6.0.14.tar.gz
Extract the contents:
sudo tar -xvzf wackowiki-6.0.14.tar.gz
Rename the extracted folder to wackowiki
:
sudo mv wackowiki-6.0.14 wackowiki
Copy the wackowiki
folder to the root directory of the web server:
sudo cp -R wackowiki /var/www/localhost/htdocs/
Configure WackoWiki by editing the config/wacko.config.php
file:
cd /var/www/localhost/htdocs/wackowiki/config
sudo nano wacko.config.php
Modify the following settings in the file to reflect your server configuration:
'db_type' => 'mysql',
'db_username' => 'wackouser',
'db_password' => 'yourpassword',
'db_server' => 'localhost',
'db_database' => 'wackowiki',
'base_url' => 'http://localhost/wackowiki/',
Save the file and exit.
Change the ownership of the wackowiki
folder to the nginx
user:
sudo chown -R nginx:nginx /var/www/localhost/htdocs/wackowiki
Finally, let's configure Nginx to serve WackoWiki:
Create a new Nginx configuration file:
sudo nano /etc/nginx/conf.d/wackowiki.conf
Paste the following configuration into the file:
server {
listen 80;
server_name localhost;
root /var/www/localhost/htdocs/wackowiki;
index index.php;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PHP_VALUE "upload_max_filesize = 10M
post_max_size = 10M
max_execution_time = 300";
include fastcgi_params;
}
error_log /var/log/nginx/wackowiki_error.log;
access_log /var/log/nginx/wackowiki_access.log;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
}
Save the file and exit.
Restart Nginx and PHP-FPM:
sudo rc-service nginx restart
sudo rc-service php-fpm7 restart
Open your web browser and navigate to http://your_server_ip/wackowiki/
to complete the installation.
Follow the on-screen instructions and enter the database details when prompted. Once the installation is complete, you can log in to the WackoWiki dashboard using the admin user credentials you set during the installation.
Congratulations, you have successfully installed WackoWiki on Alpine Linux Latest!
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!