{"id":4679,"date":"2014-09-27T12:29:36","date_gmt":"2014-09-27T17:29:36","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=4679"},"modified":"2022-12-15T07:04:06","modified_gmt":"2022-12-15T13:04:06","slug":"install-and-run-dokuwiki-the-most-versatile-wiki-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-and-run-dokuwiki-the-most-versatile-wiki-on-a-centos-7-vps\/","title":{"rendered":"Install and run DokuWiki the most versatile Wiki on a CentOS 7 VPS"},"content":{"rendered":"
In the following article, we’ll explain how you can install and run DokuWiki<\/a> on a CentOS 7 server<\/a><\/strong>. We support DokuWiki running on all our SSD VPS hosting<\/a> plans and with our DokuWiki hosting stack<\/a>, you’ll get DokuWiki pre-loaded<\/strong> on your virtual server<\/strong>, making your wiki up and running in no-time.<\/p>\n Sweet!<\/p>\n What is DokuWiki?<\/strong><\/p>\n DokuWiki is considered to be the most versatile open source Wiki software application which is proven to meet your demanding wiki needs.<\/p>\n DokuWiki does not require a database and it’s extremely simple and easy to use. Check out DokuWiki features<\/a> to learn more.<\/p>\n System Requirements?<\/strong><\/p>\n <\/p>\n <\/p>\n Before proceeding with the actual DokuWiki installation, <\/p>\n Install some useful packages on your CentOS SSD powered virtual server<\/a>:<\/p>\n <\/p>\n In this set-up we are going to serve DokuWiki using the Apache 2.4 webserver<\/strong>, so install Apache on your CentOS 7<\/strong> using the following Once installed, restart Apache and add it to automatically start on your system start-up using:<\/p>\n Now let\u2019s configure some extra Apache options<\/strong>, for example, hide its version number, its banner etc\u2026 by adding the following to Test Apache configuration file and restart the webserver for the changes to take effect:<\/p>\n <\/p>\n Since DokuWiki relies on PHP<\/strong>, we have to add PHP support to the Apache webserver by installing the following packages:<\/p>\n Although DokuWiki operates with the default PHP settings<\/strong>, it is recommended to tune your PHP configuration<\/a> ( restart Apache using systemctl for the changes to take effect:<\/p>\n Test if PHP module is loaded in Apache using:<\/p>\n <\/p>\n We’ll use This tells Apache, to load the configuration files ending with restart apache for the changes to take effect:<\/p>\n <\/p>\n First thing to do is to go to DokuWiki’s download page<\/a> and download the latest stable version of DokuWiki<\/strong>.<\/p>\n once the archive is downloaded, extract it to set-up proper ownership using the and open <\/p>\n once you complete the installer, you can safely remove the <\/p>\n Now you have your DokuWiki up and running, so you may want to check its manual at https:\/\/www.dokuwiki.org\/manual<\/a> and also learn more about its syntax at https:\/\/www.dokuwiki.org\/wiki:syntax<\/a><\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Apache and DokuWiki<\/strong>. They are available 24×7 and will take care of your request immediately.<\/p>\n PS<\/span>.<\/strong> 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.<\/p>\n","protected":false},"excerpt":{"rendered":" In the following article, we’ll explain how you can install and run DokuWiki on a CentOS 7 server. We support … <\/p>\n\n
UPDATE THE SYSTEM<\/b><\/h4>\n
ssh<\/code> to your CentOS 7 SSD VPS<\/a><\/strong>, initiate a
screen<\/code> session and upgrade your system using
yum<\/code>:<\/p>\n
## screen -U -S dokuwiki-screen\r\n## yum update<\/pre>\n
INSTALL SOME PACKAGES<\/b><\/h4>\n
## yum install wget unzip vim<\/pre>\n
INSTALL APACHE WEBSERVER<\/b><\/h4>\n
yum<\/code> command:<\/p>\n
## yum install httpd openssl mod_ssl<\/pre>\n
## systemctl restart httpd\r\n## systemctl status httpd\r\n## systemctl enable httpd<\/pre>\n
\/etc\/httpd\/conf.d\/options.conf<\/code><\/p>\n
## vim \/etc\/httpd\/conf.d\/options.conf\r\n\r\nTraceEnable off\r\n\r\n## Disable Signature\r\nServerSignature Off\r\n\r\n## Disable Banner\r\nServerTokens Prod<\/pre>\n
## apachectl configtest\r\n## systemctl restart httpd\r\n## systemctl status httpd<\/pre>\n
INSTALL PHP<\/b><\/h4>\n
## yum install php php-gd<\/pre>\n
php.ini<\/code>). At least you should edit your
\/etc\/php.ini<\/code> and set the following:<\/p>\n
## vim \/etc\/php.ini\r\n\r\nexpose_php = Off<\/pre>\n
## systemctl restart httpd\r\n## systemctl status httpd<\/pre>\n
## httpd -M | grep php\r\n\r\nalso\r\n\r\n## php -v<\/pre>\n
SET-UP APACHE VHOST<\/b><\/h4>\n
wiki.mydomain.com<\/code> to access the DokuWiki installation, so we would have to create an Apache Virtual Host<\/strong> directive. So, create
\/etc\/httpd\/conf.d\/vhosts.conf<\/code> and add the following:<\/p>\n
## cat \/etc\/httpd\/conf.d\/vhosts.conf\r\n\r\n# Load my vhosts\r\nIncludeOptional vhosts.d\/*.conf<\/pre>\n
.conf<\/code> which reside in
\/etc\/httpd\/vhosts.d<\/code>. As you can guess, this is the place where we put the Virtual Hosts, so let\u2019s set-up one for
wiki.mydomain.com<\/code><\/p>\n
VHOST for wiki.mydomain.com<\/b><\/h5>\n
## mkdir \/etc\/httpd\/vhosts.d\r\n## vim \/etc\/httpd\/vhosts.d\/wiki.mydomain.com.conf\r\n\r\n<VirtualHost YOUR_SERVER_IP:80>\r\n ServerAdmin webmaster@mydomain.com\r\n DocumentRoot \"\/var\/www\/html\/dokuwiki\"\r\n ServerName wiki.mydomain.com\r\n ServerAlias www.wiki.mydomain.com\r\n ErrorLog \"\/var\/log\/httpd\/wiki.mydomain.com-error_log\"\r\n CustomLog \"\/var\/log\/httpd\/wiki.mydomain.com-access_log\" combined\r\n\r\n <Directory \"\/var\/www\/html\/dokuwiki\/\">\r\n DirectoryIndex index.php\r\n Options FollowSymLinks\r\n AllowOverride All\r\n Require all granted\r\n <\/Directory>\r\n<\/VirtualHost><\/pre>\n
## systemctl restart httpd\r\n## systemctl status httpd<\/pre>\n
INSTALL DOKUWIKI<\/b><\/h4>\n
## wget -P \/tmp http:\/\/download.dokuwiki.org\/out\/dokuwiki-de8b19be26a1d74ba5bd5e075dbb7996.tgz<\/pre>\n
\/var\/www\/html<\/code> using:<\/p>\n
## tar zxf \/tmp\/dokuwiki-de8b19be26a1d74ba5bd5e075dbb7996.tgz -C \/var\/www\/html<\/pre>\n
chown<\/code> command:<\/p>\n
## chown apache: -R \/var\/www\/html\/dokuwiki<\/pre>\n
http:\/\/wiki.mydomain.com\/install.php<\/code> in your favorite browser to initiate the DokuWiki installer<\/strong>. You should get something like this:<\/p>\n
install.php<\/code> script located withing your DokuWiki document root in
\/var\/www\/html\/dokuwiki<\/code><\/p>\n
## rm -f \/var\/www\/html\/dokuwiki\/install.php<\/pre>\n
WHAT IS NEXT?<\/b><\/h4>\n
\nLET US DO THIS FOR YOU?<\/b><\/h4>\n