.oO  |  List directory  |  History  |  Similar  |  Print version
Home 
Main 
   Databases 
   qmail 
   Old Braindump Pages 
Linux 
FreeBSD 

Main > coWiki installation

 
rw-rw-r--   ian   wheel

coWiki installation

I wanted to install coWiki for BrainDump which requires PHP 5, but the current server only had PHP4 available.

Upgrading the whole server to PHP 5 was not suitable because there are other developers and websites on the system - I couldn't risk breaking anything.

I decided instead to run PHP 5 as a CGI, while PHP 4 would stay as a compiled module.

Compile PHP5 from source

'./configure' \
'--prefix=/usr/local/php5' \
'--with-openssl' \
'--enable-force-cgi-redirect' \
'--with-zlib' \
'--enable-bcmath' \
'--with-bz2' \
'--with-curl' \
'--enable-exif' \
'--with-gd=/usr' \
'--with-ttf' \
'--with-freetype-dir' \
'--enable-gd-native-ttf' \
'--with-gettext' \
'--with-gmp' \
'--with-imap' \
'--with-imap-ssl' \
'--with-ldap' \
'--with-mhash' \
'--with-mysql=/usr' \
'--with-pgsql=/usr' \
'--enable-memory-limit' \
'--enable-mbstring' \
'--with-mcrypt'

make -j6 && make install

Set up a new php.ini file

/usr/local/php5/bin/php-cgi.ini:

include_path = ".:/usr/local/php5/lib/php:/export/home/ian/braindump/cowiki/includes/cowiki"

Reconfigure Apache

        DocumentRoot /export/home/ian/braindump/cowiki/htdocs/
        ScriptAlias /cgi-php/ /usr/local/php5/bin/
        RemoveHandler .php
        AddType application/cgi-php php html htm
        Action application/cgi-php /cgi-php/php
    <Directory /usr/local/php5/bin/>
      <Files ~ "^php$">
        Order allow,deny
        Allow from all
      </Files>
    </Directory>

Download the CVS version of coWiki from http://www.cowiki.org/

cvs -d:pserver:cvsread@cvs.develnet.org:/repository login
(Password: cvsread)
cvs -z3 -d:pserver:cvsread@cvs.develnet.org:/repository checkout cowiki


Reference http://braindump.mrzesty.net/Main/CoWikiInstallation

Comments: 0 New comment

  OpenSSL Certificates Next


Home | Main | Linux | FreeBSD