How to Install WiKiss on Arch Linux
WiKiss is an open-source wiki engine written in PHP that allows users to create and organize their own wiki sites. In this tutorial, we will discuss how to install WiKiss on Arch Linux.
Requirements
- Arch Linux installed
- Apache web server installed
- PHP installed and configured with Apache
- SQLite or MariaDB installed
Installation Steps
Step 1: Installing Required Dependencies
Before installing WiKiss, we need to install some required dependencies. To do that, open the terminal and run the following command:
sudo pacman -S php-sqlite php-gd gd php-intl
Step 2: Downloading WiKiss
Next, we need to download the latest version of WiKiss from their official website. Navigate to the following link and download the WiKiss-xxx.tar.gz package: https://wikiss.tuxfamily.org/download
Once downloaded, extract the package to the /var/www/html directory:
cd ~/Downloads
tar -xzf WiKiss-xxx.tar.gz
sudo mv wikiss /var/www/html
Step 3: Configuring Apache
After downloading WiKiss, we need to configure Apache to serve the WiKiss content. Open the Apache configuration file /etc/httpd/conf/httpd.conf using a text editor:
sudo nano /etc/httpd/conf/httpd.conf
Add the following directives to the end of the file:
Alias /wikiss "/var/www/html/wikiss/"
<Directory "/var/www/html/wikiss/">
AllowOverride All
Require all granted
Options FollowSymLinks
</Directory>
Save and close the file.
Step 4: Creating a New Database
WiKiss requires a database to store the wiki content. We can create a new SQLite database using the following command:
cd /var/www/html/wikiss
touch wikiss.db
Step 5: Configuring WiKiss
Now, we need to configure WiKiss to use the newly created database. Open the config/config.php file using a text editor:
sudo nano /var/www/html/wikiss/config/config.php
Find the following lines:
$conf['db']['type'] = 'mysql';
$conf['db']['host'] = 'localhost';
$conf['db']['port'] = '';
$conf['db']['user'] = '';
$conf['db']['pass'] = '';
$conf['db']['name'] = '';
Comment out these lines and add the following lines:
$conf['db']['type'] = 'sqlite';
$conf['db']['file'] = 'wikiss.db';
Save and close the file.
Step 6: Setting Permissions
We need to set the correct permissions on the cache and uploads directories:
sudo chown -R http:http /var/www/html/wikiss/cache /var/www/html/wikiss/uploads
sudo chmod -R u+w /var/www/html/wikiss/cache /var/www/html/wikiss/uploads
Step 7: Restarting Apache
Finally, we need to restart the Apache web server to apply the changes:
sudo systemctl restart httpd
Step 8: Accessing WiKiss
Now, you can access WiKiss by navigating to http://localhost/wikiss in your web browser.
Conclusion
In this tutorial, we discussed how to install WiKiss on Arch Linux. By following the steps above, you should be able to install WiKiss without any issues. If you encounter any problems during the installation process, please refer to the official documentation for more information.