{"id":17225,"date":"2015-06-29T13:11:11","date_gmt":"2015-06-29T18:11:11","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17225"},"modified":"2022-06-03T03:44:17","modified_gmt":"2022-06-03T08:44:17","slug":"how-to-install-phpwiki-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-phpwiki-on-a-centos-7-vps\/","title":{"rendered":"How to install PhpWiki on a CentOS 7 VPS"},"content":{"rendered":"
PhpWiki is a wiki-based content management software written in PHP, used to create web sites where anyone can edit or create the pages using a\u00a0web browser. At the time of writing this tutorial, the latest stable version of PhpWiki is 1.5.3 and it requires:<\/p>\n <\/p>\n This install guide assumes that Apache, MySQL (or MariaDB) and PHP are already installed and configured on your virtual server<\/a>. If your server has a\u00a0minimal CentOS 7 base installation, you can install Apache, MariaDB\u00a0and PHP stack by following\u00a0this\u00a0tutorial<\/a>.<\/p>\n Download the latest version of PhpWiki available at ‘http:\/\/downloads.sourceforge.net\/project\/phpwiki\/’ to the server and extract it using the following commands:<\/p>\n Create a new MySQL database for PhpWiki on your server:<\/p>\n Create tables inside your phpwikidb database:<\/p>\n Create a new virtual host directive in Apache. For example, edit your Apache configuration file (\u2018\/etc\/httpd\/conf\/httpd.conf\u2019 by default) and un-comment the following line:<\/p>\n Then, add the following lines at the end:<\/p>\n Restart the Apache service for the changes to take effect:<\/p>\n Create a subdirectory called ‘data’ in the ‘phpwiki’ directory:<\/p>\n Copy ‘\/var\/www\/html\/config\/config-dist.ini’ to ‘\/var\/www\/html\/phpwiki\/config\/config.ini’ and edit the settings in ‘\/var\/www\/html\/phpwiki\/config\/config.ini’ file according to your needs. It may be simpler for you to use http:\/\/phpwiki.fr\/configurator.php to generate the ‘config.ini’ configuration file for PhpWiki:<\/p>\n Copy the generated configuration to a file, and save it as ‘\/var\/www\/html\/phpwiki\/config\/config.ini’.\u00a0Set the proper ownership of PhpWiki files and directories using the following command:<\/p>\n That is it. The PhpWiki installation is now complete.<\/p>\n Open http:\/\/yourdomain.com in your favorite browser and once the initialization complete, open\u00a0http:\/\/yourdomain.com\/index.php\/PhpWikiAdministration and log in using your Administrator login credentials. PS.<\/strong><\/span> 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 <\/p>\n","protected":false},"excerpt":{"rendered":" PhpWiki is a wiki-based content management software written in PHP, used to create web sites where anyone can edit or … <\/p>\n
\nIn this tutorial\u00a0we will show you\u00a0the steps needed to install PhpWiki on a\u00a0CentOS 7 VPS<\/a><\/strong>.<\/p>\n\n
cd \/opt\/\r\nwget http:\/\/downloads.sourceforge.net\/project\/phpwiki\/phpwiki-1.5.3.zip\r\nunzip phpwiki-1.5.3.zip -d \/var\/www\/html\/\r\ncd \/var\/www\/html\/\r\nmv phpwiki-1.5.3 phpwiki<\/pre>\n
mysql -u root -p\r\nMariaDB > create database phpwikidb;\r\nMariaDB > grant all privileges on phpwikidb.* to phpwikiuser@localhost identified by 'your-password';\r\nMariaDB > > flush privileges;\r\nMariaDB > quit;\r\n<\/pre>\n
cd \/var\/www\/html\/phpwiki\/schemas\r\nmysql -uphpwikiuser -pyour-password phpwikidb < mysql-initialize.sql<\/pre>\n
#NameVirtualHost *:80<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@yourdomain.com\r\nDocumentRoot \/var\/www\/html\/phpwiki\/\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\n<Directory \/var\/www\/html\/phpwiki\/>\r\n DirectoryIndex index.php\r\n Options FollowSymLinks\r\n AllowOverride All\r\n Require all granted\r\n<\/Directory>\r\n ErrorLog logs\/yourdomain.com-error_log\r\n CustomLog logs\/yourdomain.com-access_log common\r\n<\/VirtualHost>\r\n<\/pre>\n
systemctl restart httpd.service<\/pre>\n
mkdir -p \/var\/www\/html\/data\/<\/pre>\n
\n
chown apache:apache -R \/var\/www\/html\/phpwiki\/<\/pre>\n
\nOf 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 PhpWiki<\/strong>\u00a0for you. They are available 24×7 and will take care of your request immediately.<\/p>\n