Ubuntu 6.06
From KnowledgeTree Community
WARNING: This page was written by a php neophyte and these instructions may result in a less-than-secure installation
First, there seems to be no issue with the 64-bit architecture if you use the source release. However, Ubuntu 6.06 ships with php5 and KT does not support that, so there is a bit of extra configuration needed.
- Download the source release of php 4 from http://php.net. You can (and should) do this in a user account.
- Untar the source release, change into the appropriate directory and configure with a custom prefix ./configure --prefix=/home/php4 and then make, make test, and sudo make install
- copy the php.ini-recommended file from the php distribution to /home/php4/lib/php.ini and customize it as appropriate
- Configure your webserver as follows....
ScriptAlias /php4-cgi /home/php4/bin/php AddHandler php4-cgi .php4 Alias /dms /home/dms/knowledgeTree <Directory /home/dms/knowledgeTree> Options Indexes FollowSymLinks MultiViews AddHandler php4-cgi .php Action php4-cgi /php4-cgi AllowOverride All </Directory>
At this point, you should be able to follow the rest of the normal instructions
and, at a minimum, get up and running. It is quite possible that this approach will permit users to bypass normal .htaccess files and leave your system a bit vulnerable. Make sure you investigate this if it matters to you.
Using PHP4 from Ubuntu
Instead of using PHP4 from source, why not use php4-cgi as provided by Ubuntu in the Universe repository?
$ sudo aptitude install php4-cgi
Then use the following in your Apache configuration (I use this in a virtual host config specific to KnowledgeTree):
DocumentRoot /var/www/ktdms
ScriptAlias /php4-cgi /usr/lib/cgi-bin/php4
AddHandler php4-cgi .php4
<Directory /var/www/ktdms/>
Options -Indexes FollowSymLinks MultiViews
AddHandler php4-cgi .php
Action php4-cgi /php4-cgi
AllowOverride All
</Directory>
del.icio.us
reddit

