PukiWiki is a popular wiki engine developed in Japan. In this tutorial, we will guide you on how to install PukiWiki on Debian latest.
Before we start, make sure you have the following:
The first step is to install Apache and PHP on your Debian latest installation. Run the following command in your terminal:
sudo apt update
sudo apt install apache2 php libapache2-mod-php
Then restart the Apache service to apply the changes:
sudo systemctl restart apache2
To verify if Apache and PHP are installed correctly, you can create a PHP test file and access it from your browser. Run the following commands:
echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/test.php
Then open your browser and enter the following URL:
http://localhost/test.php
You should see a PHP info page. If not, make sure you installed Apache and PHP correctly and troubleshoot any issues.
Next, download PukiWiki from the official website. You can use the following command to download the latest stable version:
wget https://ja.osdn.net/dl/pukiwiki/pukiwiki-latest.zip
Then extract the downloaded zip file to the Apache web root directory:
sudo unzip pukiwiki-latest.zip -d /var/www/html/
Rename the extracted directory to something easier to remember:
sudo mv /var/www/html/pukiwiki-XXXXXX /var/www/html/wiki
To configure PukiWiki, you need to edit the config file ini.php
located in the wiki
directory. Run the following command to open the file in the nano text editor:
sudo nano /var/www/html/wiki/ini.php
Find the line that defines the default administrator password and change it to a secure password:
define('PKWK_READONLY', 0);
define('PKWK_SAFE_MODE', 1);
define('PKWK_OPTIMIZATION', 0);
define('PKWK_DISABLE_INLINE_IMAGE', 0);
define('PKWK_ALLOW_JAVASCRIPT', 0);
define('PKWK_USE_VERIFIER', 0);
define('PKWK_ENCODING', 'UTF-8');
// Set the default administrator password here
define('PKWK_ROOT_PASSWORD', 'changeme');
Save and close the file by pressing CTRL + X
, then Y
and ENTER
.
Now you can run the PukiWiki installer from your browser. Open your browser and enter the following URL:
http://localhost/wiki/install.cgi
Then follow the steps in the installer to configure PukiWiki. Make sure to set the correct path to the ini.php
file when prompted:
/var/www/html/wiki/ini.php
When the installation is complete, you can delete the install.cgi
file from the wiki
directory for security reasons:
sudo rm /var/www/html/wiki/install.cgi
You can now access PukiWiki from your browser by entering the following URL:
http://localhost/wiki/
You should see the PukiWiki homepage. You can start creating wiki pages and editing them right away.
In this tutorial, we showed you how to install PukiWiki on Debian latest. Now you can create your own wiki site and collaborate with others seamlessly. Enjoy!
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!