PmWiki is a free and an open source wiki application that is lightweight. PmWiki was at first release in 2004. PmWiki is a wiki-based system for collaborative creation and maintenance of websites. The web-pages created using PmWiki looks like normal web pages, but they also have the edit link to modify existing pages and add new pages in the website.
In this article I will show you how to install PmWiki on CentOS 6.x system.
- Custom look-and-feel: A site administrator can quickly change the appearance and functions of a PmWiki site by using different skins and HTML templates. If you can’t find an appropriate skin already made, you can easily modify one or create your own.
- Access control: PmWiki password protection can be applied to an entire site, to groups of pages, or to individual pages. Password protection controls who can read pages, edit pages, and upload attachments. PmWiki’s access control system is completely self-contained, but it can also work in conjunction with existing password databases, such as .htaccess, LDAP servers, and MySQL databases.
- Customization and plugin architecture: One principle of the PmWikiPhilosophy is to only include essential features in the core engine, but make it easy for administrators to customize and add new markup. Hundreds of features are already available by using extensions (called “recipes”) that are available from the PmWiki Cookbook. -PmWiki developer
- LAMP Stack should be installed on the system.
First of all you have to download the PmWiki package using wget command like below.
# wget http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.zip --2017-11-09 06:00:05-- http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.zip Resolving www.pmwiki.org... 220.127.116.11 Connecting to www.pmwiki.org|18.104.22.168|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 574496 (561K) [application/zip] Saving to: “pmwiki-latest.zip” 100%[=====================================================================================>] 574,496 --.-K/s in 0.01s 2017-11-09 06:00:08 (46.7 MB/s) - “pmwiki-latest.zip” saved [574496/574496]
After download completed now extract it into your web document root directory using below command.
# unzip pmwiki-latest.zip -d /var/www/html/ Archive: pmwiki-latest.zip creating: /var/www/html/pmwiki-2.2.105/ inflating: /var/www/html/pmwiki-2.2.105/README.txt creating: /var/www/html/pmwiki-2.2.105/cookbook/ inflating: /var/www/html/pmwiki-2.2.105/wikilib.d/PmWiki.BasicEditing inflating: /var/www/html/pmwiki-2.2.105/wikilib.d/PmWiki.Uploads inflating: /var/www/html/pmwiki-2.2.105/wikilib.d/SiteAdmin.GroupAttributes ........ ........
Once extract rename the pmwiki-2.2.105 directory to pmwiki.
# mv /var/www/html/pmwiki-2.2.105 /var/www/html/pmwiki
Now create a wiki.d directory inside the pmwiki directory like below.
# mkdir /var/www/html/pmwiki/wiki.d
Then set the appropriate ownership and permission on pmwiki directory.
# chown -R apache.apache /var/www/html/pmwiki/
Now create a directory index file called “index.php” with below content in pmwiki directory.
# cd /var/www/html/pmwiki/ # vim index.php <?php include('pmwiki.php');
Save and close file and restart the Apache web service.
# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]
Next go to your web browser and type the below URL. You will get home page of PmWiki on screen.
You can also edit the existing pages.
You can also view the page history.