How to install PmWiki on CentOS 6 VPS
PmWiki is a free PHP based wiki system for collaborative creation and maintenance of websites. Its pages look and act like normal web pages, except they have an “Edit” link that makes it easy to modify existing pages and add new pages into the website without knowing any HTML or CSS, just by using basic editing rules. Pages can be edited publicly or by small groups of authors.
This blog article will guide you through the installation of PmWIki on a CentOS 6 VPS.
PmWiki has just few requirements that have to be met in order to run on your server:
– PHP 4.3 or later (PHP 5+ is recommended)
– A web server that can run PHP scripts
First of all, Log in to your CentOS 6 VPS as user ‘root’ and make sure that all the packages are up to date
yum -y update
Download the latest stable release of PmWiki from their official website. At the moment of writing it is version 2.2.26
Unpack the downloaded archive pmwiki-latest.zip in the document root directory on your server.
unzip pmwiki-latest.zip -d /var/www/html/
If you are not sure what is your document root directory, you can find out by executing
grep -i "^documentroot" /etc/httpd/conf/httpd.conf DocumentRoot "/var/www/html"
In our case it is ‘var/www/html’ which is the default path in CentOS
This will create a ‘pmwiki-2.2.64’. We will rename this directory to simpler name
mv /var/www/html/pmwiki-2.2.64/ /var/www/html/pmwiki
PmWiki needs to have a writable wiki.d/ directory
Change the owner of the PmWiki directory
chown -R apache: /var/www/html/pmwiki/
Create a directory index file in the main PmWiki directory.
cd /var/www/html/pmwiki/ vim index.php <?php include('pmwiki.php');
PmWiki’s configuration file does not exist by default, but there is a sample configuration file in the ‘/docs’ directory, so we will use that file.
cp docs/sample-config.php local/config.php
That’s all. It is really that easy.
Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install PmWiki for you. They are available 24×7 and will take care of your request immediately.
PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.