On Thursday, June 27, 2002, at 03:14  AM, René Moonen wrote:

> Compiling and installing Expat and Sablotron works fine (so it seems) 
> but after that I get errors compiling PHP with XSLT options. Compiling 
> without the XSLT options works just fine. These are the PHP options I 
> use:
>
>    --prefix=/usr/local/php
>    --with-config-file-path=/usr/local/php
>    --with-apxs=/usr/sbin/apxs
>    --enable-track-vars
>    --enable-magic-quotes
>    --enable-debugger
>    --enable-xslt
>    --with-xslt-sablot
>
> The last two are the ones that I have added to allow for XSLT
>
>
> Am I missing something?

This is a command history from when I added XSLT to my dist.  It's older 
(PHP 4.1.2) but it should still work with newer PHP distributions:


2002-03-11 XSLT upgrade log for PHP

At this time, the /usr/local/src directory has the following directories 
(all expanded from tarballs):
apache_1.3.22/
expat-1.95.2/
mysql-3.23.46-pc-linux-gnu-i686/
php-4.1.2/
Sablot-0.90/
tarballs/

/usr/local/apache/bin/apachectl stop
/usr/local/mysql/bin/mysqladmin -u root -p shutdown
(shuts down the daemons so we can work on them)

cd /usr/local/src/
(this is where we start)

pushd expat-1.95.2/ (enter the expat source directory)
less README
./configure --help
./configure
make
make install
popd (back to /usr/local/src)
(always good economy to read the docs and see what ./configure options 
there are, though none were actually chosen)

pushd Sablot-0.90/ (enter the Sablotron source directory)
less README
./configure --help
./configure
make
make install
popd (back to /usr/local/src)
(same as for expat)

pushd apache_1.3.22/ (enter the Apache source directory)
rm config.cache
make clean
pushd ./src/modules/php4/ (enter the php4 module source directory within 
the Apache source directory)
rm config.cache
make clean
popd (return to the Apache source directory)
(the rm and make clean commands were probably not necessary, but I 
wanted to be sure not to use any old data)

./configure --prefix=/usr/local/apache
(execute the ./configure script to show Apache where to be installed, 
but do not make yet)

pushd ../php-4.1.2/ (jump out of the Apache source directory to 
/usr/local/src/php-4.1.2)
rm config.cache
make clean
(clean up the php-4.1.2 source directory)
./configure --with-apache=/usr/local/src/apache_1.3.22/ \
--with-mysql=/usr/local/mysql/ \
--enable-sockets \
--with-zlib \
--with-xmlrpc \
--enable-xslt \
--with-xslt-sablot

make
make install
popd (back to the Apache source directory [/usr/local/src/apache_1.3.22])
(create the PHP binary with the ./configure options for using MySQL 
[requires zlib on RH 7.2], socket functions, XML-RPC, and XSLT with 
Sablotron, and then install the binary into the "modules" source 
directory in the Apache source directory)

./configure --activate-module=src/modules/php4/libphp4.a \
--enable-module=so \
--enable-shared=max

(run the Apache ./configure script again, this time specifying that PHP 
is to be installed as a static module and that Apache should be compiled 
to accept later dynamic shared object modules [no, the libphp4.a file 
does not exist yet but ./configure it anyway])
pushd ./src/modules/php4/
make
(compile the PHP module into Apache, no 'make install' necessary)
popd (back to the Apache source directory, /usr/local/src/apache_1.3.22)
make
make install
(final compile and install of Apache with the now-embedded PHP module)
popd (back to /usr/local/src)
cd /usr/local/mysql/
./bin/safe_mysqld --user=mysqladm &
(start mysql daemon, safe_mysqld can only be executed from 
/usr/local/mysql)
/usr/local/apache/bin/apachectl start
(start Apache)

Then test to make sure that MySQL and Apache are working by requesting a 
phpinfo() page or MySQL-generated page.




----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to