{"id":17973,"date":"2015-11-10T15:33:02","date_gmt":"2015-11-10T21:33:02","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=17973"},"modified":"2022-06-03T03:44:04","modified_gmt":"2022-06-03T08:44:04","slug":"install-twiki-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-twiki-on-a-centos-7-vps\/","title":{"rendered":"Install TWiki on CentOS 7"},"content":{"rendered":"
<\/a>In this article we will install TWiki on a CentOS 7 VPS<\/a> with Apache web server. TWiki is simple to use, flexible, secure and very powerful web-based collaboration platform based on Perl. Using TWiki you can run a project development space, a document management system, a knowledge base or any other groupware tool. TWiki is used by millions of users in more than 130 countries in the world and it comes with many features such as:<\/p>\n And many more…<\/p>\n Log in to your CentOS 7 machine via SSH as user root<\/p>\n and update all services to your server<\/p>\n Install some prerequisites needed to install TWiki .<\/p>\n Execute the following command to install Apache web server.<\/p>\n Start the Apache web server and add it to automatically start on the system start-up<\/p>\n We also need to install several Perl modules<\/p>\n We will install the rest of the Perl modules from CPAN. Start CPAN’s shell by executing the following<\/p>\n and install the following modules one by one<\/p>\n Now, go to TWiki’s official website and download the latest stable release. At the moment of writing this article it is version 6.0.1<\/p>\n Create a new directory in the document root and unpack the TWiki archive to that directory<\/p>\n Change the ownership of the directory<\/p>\n Now we need to configure TWiki. Rename the ‘LocalLib.cfg.txt’ file\/<\/p>\n Open the configuration file and set the path of the lib directory in TWiki’s installation<\/p>\n Copy the Apache configuration file provided by TWiki<\/p>\n Open the configuration and change all instances of ‘\/home\/httpd\/’ to ‘\/var\/www\/html’. If you are using vi text editor you can use the following command<\/p>\n Also insert ‘root’ as username at the ‘AuthName’ file in the same file.<\/p>\n Protect the data directory to be accessible with username and password<\/p>\n Restart the Apache web server<\/p>\n Now, open a web browser and navigate to 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 TWiki for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n 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","protected":false},"excerpt":{"rendered":" In this article we will install TWiki on a CentOS 7 VPS with Apache web server. TWiki is simple to … <\/p>\n\n
ssh root@IP<\/pre>\n
yum -y update<\/pre>\n
yum install wget perl unzip rcs gcc make gd gd-devel php<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install perl-CPAN perl-ExtUtils-CBuilder perl-YAML perl-Module-CoreList\u00a0 perl-CGI perl-Module-Build perl-IPC-Cmd<\/pre>\n
perl -MCPAN -e shell<\/pre>\n
install Term::ReadKey\r\ninstall Bundle::CPAN\r\nreload cpan\r\ninstall CGI::Carp\r\ninstall Cwd\r\ninstall LWP\r\ninstall Encode\r\ninstall HTML::Parser\r\ninstall Error\r\ninstall Time::Local\r\ninstall Text::Diff\r\ninstall Authen::SASL\r\ninstall CGI::Session\r\ninstall Digest::SHA1\r\ninstall URI\r\ninstall Locale::Maketext::Lexicon\r\ninstall FreezeThaw\r\ninstall GD\r\ninstall HTML::Tree\r\ninstall Time::Timezone<\/pre>\n
wget http:\/\/downloads.sourceforge.net\/project\/twiki\/TWiki%20for%20all%20Platforms\/TWiki-6.0.1\/TWiki-6.0.1.zip<\/pre>\n
mkdir\u00a0 \/var\/www\/html\/twiki\r\nunzip TWiki-6.0.1.zip -d \/var\/www\/html\/twiki<\/pre>\n
chown -R apache:apache \/var\/www\/html\/twiki<\/pre>\n
cd \/var\/www\/html\/twiki\r\nmv bin\/LocalLib.cfg.txt bin\/LocalLib.cfg<\/pre>\n
vim bin\/LocalLib.cfg\r\n\r\n$twikiLibPath = \"\/var\/www\/html\/twiki\/lib\";<\/pre>\n
cp misc\/twiki_httpd_conf.txt \/etc\/httpd\/conf.d\/twiki.conf<\/pre>\n
:%s_\/home\/httpd_\/var\/www\/html_g<\/pre>\n
cd data\/\r\nhtpasswd -c .htpasswd root\r\nNew password:\r\nRe-type new password:\r\nAdding password for user root<\/pre>\n
systemctl restart httpd<\/pre>\n
http:\/\/yourIPaddress\/twiki\/bin\/configure<\/code> and follow the instructions to continue with the web based installation<\/p>\n