PmWiki installation and configuration on centOS 7

3
156

PmWiki

PmWiki is free wiki software licensed under the terms of GNU GPL. It is based on PHP for creation and maintenance of websites. Its pages look like normal web pages, except the edit option. It’s easy to create and modify web pages on the website without having the knowledge HTML, CSS and PHP. Pages can be edited publicly or restricted to the only small group of editors.

In this article, we will be known about the installation of PmWiki on CentOS 7 and RHEL 7.

First, make sure that system is up to date by using the following command.

#yum -y update

Now install apache web server and PHP.

#yum -y install httpd php 

Now download the latest version PmWiki from their official site

#wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.zip

Unzip and copy to the /var/www/html/ directory

#unzip pmwiki-latest.zip -d /var/www/html
#cd /var/www/html/
#mv pmwiki-2.2.93 pmwiki
#chown -R apache:apache pmwiki

Now create the writable wiki.d directory

#cd pmwiki
#mkdir wiki.d

Now create an index.php file in PmWiki directory with the following code

#touch index.php
<?php include('pmwiki.php');

Now create configuration file

#cp docs/sample-config.php local/config.php

Now configure SELinux as follows

#setenforce 0
#getenforce 

Now access pmwiki on url http://ip-address/pmwiki

The pages in the Site group (except the Site.SideBar) are locked by default. In order to edit pages in this group you need to create a site-wide admin password in local/config.php. To set the site-wide admin password to “techbuddies”, change the line to the following:

$DefaultPasswords['admin'] = pmcrypt('techbuddies');

 

Enjoy PmWiki on your system. If you want to join this discussion, feel free to leave a comment!

3 COMMENTS

  1. You actually make it seem so easy with your presentation but I find this topic to be really something which I think I would
    never understand. It seems too complicated and
    extremely broad for me. I’m looking forward for your next post, I
    will try to get the hang of it!