#################### TWIKI SETUP ####################
yum install httpd gdal-perl perl-CGI perl-CGI-Session perl-HTML-Tree perl-Error perl-FreezeThaw gd
yum install httpd gdal-perl perl-CGI perl-CGI-Session perl-HTML-Tree perl-Error perl-FreezeThaw gd
yum install perl*
yum install http*
yum install mysql*
yum install gcc*
yum install perl
yum install rcs
yum install zip
yum install https
yum install https
yum install httpd
yum install make
yum install gcc
yum install gd
yum install gd-devel
yum install gd*
yum install php* --skip-broken
yum install wget
vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
/etc/init.d/iptables restart
chkconfig --level 2345 httpd on
3. Install Perl modules for TWiki
First some modules with yum
yum install perl-CPAN
yum install perl-CGI
yum install perl-YAML
yum install perl-IPC-Cmd
yum install perl-Module-CoreList
yum install perl-ExtUtils-CBuilder
yum install perl-Module-Build
cd /srv/www/ducklington.org/twiki
#perl -MCPAN -e shell
Then from CPAN to get the latest and the rest
#perl -MCPAN -e shell
install Term::ReadKey
install Bundle::CPAN
reload cpan
install Encode
install Error
install HTML::Parser
install Text::Diff
install Time::Local
install Authen::SASL
install CGI::Session
install Digest::SHA1
install Locale::Maketext::Lexicon
install URI
install FreezeThaw
install GD
install HTML::Tree
install Time::Timezone
cd /opt/
wget http://downloads.sourceforge.net/project/twiki/TWiki%20for%20all%20Platforms/TWiki-5.0.1/TWiki-5.0.1.tgz
tar -zxvf TWiki-5.0.1.tgz
chmod -R 777 /var/www/html/twiki/
mkdir -p /srv/www/ducklington.org/
ll
mv /opt/twiki /srv/www/ducklington.org/twiki
chown -R apache /srv/www/ducklington.org/twiki
cp /srv/www/ducklington.org/twiki/bin/LocalLib.cfg.txt /srv/www/ducklington.org/twiki/bin/LocalLib.cfg
vi /etc/httpd/conf.d/twiki.conf
mkdir -p /srv/www/ducklington.org/public_html
mkdir -p /srv/www/ducklington.org/logs
chown -R apache:apache twiki
cp twiki/bin/LocalLib.cfg.txt twiki/bin/LocalLib.cfg
chown apache:apache twiki/bin/LocalLib.cfg
chmod 777 /srv/www/ducklington.org/logs/error.log
vi /srv/www/ducklington.org/twiki/bin/LocalLib.cfg
cd /var/www/html
#cp twiki/twiki_httpd_conf.txt /etc/httpd/conf.d/twiki_httpd.conf
#cd twiki/data/
#htpasswd -c .htpasswd root
#### Edit Twiki Apache Config File & Change the Following ####
#vi /etc/httpd/conf.d/twiki_httpd.conf
######################################################################
#### Change the _second_ path to match your local installation
ScriptAlias /twiki/bin "/var/www/html/twiki/bin"
######################################################################
#### Change the path to match your local installation
Alias /twiki/pub "/var/www/html/twiki/pub"
##############################################################################
#### Change the path to match your local installation
<Directory "/var/www/html/twiki/bin/configure">
AllowOverride None
Order Allow,Deny
Allow from all
Deny from env=blockAccess
##############################################################################
### Password file for TWiki users
AuthUserFile /var/www/html/twiki/data/.htpasswd
AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith)'
AuthType Basic
##############################################################################
##############################################################################
<FilesMatch "^configure.*">
SetHandler cgi-script
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 172.16.16.245
Require user root
Satisfy Any
</FilesMatch>
#############################################################################
#### Change the path to match your local installation
<Directory "/var/www/html/twiki/pub">
#############################################################################
# /etc/init.d/httpd restart
Continue with web based configuration as per documentation
http://172.16.16.247/twiki/bin/configure
#################### TWIKI SETUP ####################
No comments:
Post a Comment