How to Install WiKiss on macOS

WiKiss is a lightweight and easy-to-use wiki software that lets users create and edit wiki pages easily. It is written in PHP, and it uses a MySQL database to store the data. If you're looking to install WiKiss on your macOS computer, this tutorial will guide you through the process.

Prerequisites

Before you begin, you'll need to have the following:

If you haven't installed Homebrew yet, you can follow the instructions on their website https://brew.sh/. After installing Homebrew, run the following commands in the terminal to install PHP and MySQL:

brew update
brew install php@7.4
brew install mysql

Download and Install WiKiss

  1. Download the latest release of WiKiss from the official website https://wikiss.tuxfamily.org/.
  2. Extract the WiKiss archive to your desired directory. For instance, the following command can be executed in the terminal within the directory where you prefer WiKiss to be stored:
tar xvfz wikiss.tar.gz -C ~/wikiss/
  1. Rename the directory containing the WiKiss files to the name of your wiki. For example, if you want to name your wiki mywiki, you can rename the directory by running the following command:
mv ~/wikiss ~/mywiki

Set up the Database

  1. Open the MySQL console by running the following command:
mysql -u root
  1. Create a new database for your wiki by running the following command:
CREATE DATABASE mywiki;

Make sure to replace mywiki with the name you've chosen for your wiki.

  1. Create a new user and grant them permission to access the mywiki database:
CREATE USER 'wikiss'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON mywiki.* TO 'wikiss'@'localhost';

Make sure to replace password with a password of your choice.

  1. Exit the MySQL console by running the following command:
exit;

Configure WiKiss

  1. Open the mywiki/config.php file in a text editor:
vim ~/mywiki/config.php
  1. Configure the database settings by updating the following variables:
define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_NAME', 'mywiki');
define('DB_USER', 'wikiss');
define('DB_PASS', 'password');

Replace the values with the settings you've created in the previous section.

  1. Save and close the config.php file.

Set up the Web Server

  1. Create a virtual host for your wiki by opening the Apache configuration file:
sudo vim /etc/apache2/httpd.conf
  1. Add the following virtual host configuration at the end of the file:
<VirtualHost *:80>
    ServerName mywiki.local
    DocumentRoot /Users/YOUR_USERNAME/mywiki/

    <Directory "/Users/YOUR_USERNAME/mywiki/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

Make sure to replace YOUR_USERNAME with your actual username.

  1. Save and close the httpd.conf file.

  2. Restart the Apache web server:

sudo apachectl restart

Access the Wiki

  1. Open your web browser and navigate to http://mywiki.local/.

  2. You should now see the WiKiss installation page. Follow the on-screen instructions to complete the installation process.

  3. After installation, log in to the wiki using the default username and password:

username: admin
password: admin
  1. Enjoy using your new wiki!

Conclusion

In this tutorial, you've learned how to install WiKiss on your macOS computer using Homebrew and configure it to work with Apache and MySQL. Now you can experiment and customize your new wiki to suit your needs.

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!