Tue 12 Jul 2005
Build apache2:
export CPPFLAGS=-I/usr/kerberos/include
>./configure –enable-mod-shared=all –enable-ssl
>make all
>make CPPFLAGS=-I/usr/kerberos/include
>make install
All installed in /usr/local/apache2
Build mod_php:
http://www.php.net/downloads.php
>export CPPFLAGS=-I/usr/kerberos/include
>./configure –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql –prefix=/usr/local/apache2/php –with-config-file-path=/usr/local/apache2/php –enable-force-cgi-redirect –disable-cgi –with-zlib –with-gettext –with-gdbm –with-openssl
>make
>make install
Edit httpd.conf and add:
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
DirectoryIndex index.php
Build Python:
wget http://www.python.org/ftp/python/2.4.1/Python-2.4.1.tgz
>./configure –prefix=/usr/local
>make
>make install
Build mod_python:
>./configure –prefix=/usr/local/apache2/mod_python –with-python=/usr/local/bin/python2.4 –with-apxs=/usr/local/apache2/bin/apxs
>make
>make install
Edit httpd.conf and add:
LoadModule python_module modules/mod_python.so
Setup MoinMoin:
>python -v setup.py –quiet install –record=install.log
>export PREFIX=/usr
>export SHARE=$PREFIX/share/moin
>export WIKILOCATION=/var/www/moin/mywiki
>export INSTANCE=mywiki
>export USER=apache
>export GROUP=apache
>cd $WIKILOCATION
>mkdir $INSTANCE
>cp -R $SHARE/data $INSTANCE
>cp -R $SHARE/underlay $INSTANCE
>cp $SHARE/config/wikiconfig.py $INSTANCE
>chown -R $USER.$GROUP $INSTANCE
>chmod -R ug+rwX $INSTANCE
>chmod -R o-rwx $INSTANCE
>cd $WIKILOCATION/$INSTANCE
>mkdir cgi-bin
>cp $SHARE/server/moin.cgi cgi-bin
>chown -R $USER.$GROUP cgi-bin
>chmod -R ug+rx cgi-bin
>chmod -R o-rwx cgi-bin
>moin.cgi - sys.path.insert(0, ‘/var/www/moin/mywiki’)
Run wikiconfig.py - specify fullpath for data and instance
data_dir = ‘/var/www/moin/mywiki/data/’
data_underlay_dir = ‘/var/www/moin/mywiki/underlay/’
url_prefix = ‘/wiki’
acl_rights_default = u”All:read”
acl_rights_before = u”AumberBhatti:read,write,delete,revert,admin”
Edit httpd.conf:
Options ExecCGI
Alias /wiki/ “/usr/local/share/moin/htdocs/”
#ScriptAlias / “/var/www/moin/mywiki/cgi-bin/moin.cgi”
RewriteEngine on
RewriteRule ^/wiki/ - [last]
RewriteRule ^/robots.txt - [last]
RewriteRule ^/favicon.ico - [last]
RewriteRule ^/?(.*) /var/www/moin/mywiki/cgi-bin/moin.cgi/$1 [last,type=application/x-httpd-cgi]
del.icio.us
digg it


