PukiWiki is a lightweight and powerful wiki engine written in PHP that allows easy creation of web pages without the need for any database. In this tutorial, we will show you how to install PukiWiki on a Fedora Server Latest.
To install PHP on your Fedora Server Latest, use the following command:
dnf install php php-cli php-mbstring php-gd php-xml php-mysqlnd
This command will install PHP and some necessary modules.
You can use either Apache or Nginx web server to run PukiWiki. To install Apache, run the following command:
dnf install httpd
To install Nginx, run the following command:
dnf install nginx
Download the latest stable version of PukiWiki from the official website https://pukiwiki.osdn.jp/. You can use the following command to download the PukiWiki archive:
wget https://ja.osdn.net/frs/redir.php?m=jaist&f=pukiwiki%2F70173%2Fpukiwiki-1.5.2_utf8.zip
Extract the downloaded PukiWiki archive using the following command:
unzip pukiwiki-1.5.2_utf8.zip
Edit the configuration file pukiwiki.ini.php
, and update the following settings:
define('PKWK_READONLY', 0);
// Change 0 to 1 if you want to enable read-only mode.
define('PKWK_OPTIMISE', 1);
// Change 1 to 0 if you want to disable page caching.
define('PKWK_DISABLE_MULTILINE_PLUGIN_OPTIMISE', 0);
// Change 0 to 1 if you want to disable multi-line plugin optimization.
define('PKWK_DISABLE_INLINE_PLUGIN_OPTIMISE', 0);
// Change 0 to 1 if you want to disable inline plugin optimization.
define('PKWK_BACKUP', 1024*1024);
// Maximum size of backups in bytes. Default value is 1MB.
Set appropriate file permissions using the following commands:
chmod 644 pukiwiki.ini.php
chmod -R 777 wiki
If you are using Apache as your web server, move PukiWiki files to /var/www/html/
, and restart Apache with the following command:
mv pukiwiki /var/www/html/
systemctl restart httpd.service
If you are using Nginx as your web server, move PukiWiki files to /usr/share/nginx/html/
, and restart Nginx with the following command:
mv pukiwiki /usr/share/nginx/html/
systemctl restart nginx.service
If you have enabled the Firewall on your Fedora Server Latest, you need to allow HTTP and HTTPS traffic using the following commands:
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --zone=public --add-service=https --permanent
firewall-cmd --reload
You can now access your PukiWiki installation by opening your web browser and entering your server IP address or domain name followed by /pukiwiki/
in the address bar.
Congratulations! You have successfully installed PukiWiki on your Fedora Server 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!