PHPlus - Quick Installation


Section 1. -- Preparing the environment

PHPlus framework is targeted for php 5. Therefore you first need to install Apache 2.0.47 or higher and php 5. (php 5 requires the latest version of Apache)

compile Apache 2.0.47

1. cd httpd-2.0.47   (after extraction of the .gz file)
2. ./configure --enable-so
3. make
4. make install
5. edit /usr/local/apache2/conf/httpd.conf and set the following;
-> AddType application/x-httpd-php .php .phtml
-> AddType application/x-httpd-php-source .phps

- it will install in /usr/local/apache2

- config file -> /usr/local/apache2/conf/httpd.conf

- control -> /usr/local/apache2/bin/apachectl start|stop|restart

(note: in case it complains of missing modules, copy all .so files from
source dir to /usr/local/apache2/modules/)

now compile PHP 5 as a module of Apache with ODBC support

(note: you need the latest libxml2 2.5.10 or later)

1. cd php-5.0.0b2   (after extraction of the .gz file)
2. ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-zlib --with-unixODBC=shared
3. make
4. make install
5. cp php.ini-dist /usr/local/lib/php.ini
6. cp ./modules/ /usr/local/lib/php/extensions/
7. edit /usr/local/lib/php.ini and set the following;
-> extension_dir = "/usr/local/lib/php/extensions/"
-> extension =
8. /usr/local/apache2/bin/apachectl restart (as root)

(note: ODBC support is optonal. you can leave them out if you don't need to use them.)



Section 2. -- Installing PHPlus framework

Note: throughout the rest of the this guide we'll assume the following:

your php 5 home is:         /usr/local/lib/php
your apache home is:       /usr/local/apache2
your web root is:           /usr/local/apache2/htdocs

now we are ready to start setting up the PHPlus framework...
as root do the following.

# tar xvjf phplus-framework-1.0.1.tar.bz2
# cp -r phplus-framework-1.0.1/PHPLUS /usr/local/lib/php/

now install the xmlcplus parser

# cp phplus-framework-1.0.1/parser/xmlcplus /usr/bin/
# chmod a+x /usr/bin/xmlcplus

now install the examples and the sample welcome project by copying 'examples' and 'welcome' directories to the apache web root (eg. /usr/local/apache2/htdocs/welcome )

that's it! phplus framework is ready to be used. Wasn't that easy? :)