On Tue, Jul 11, 2000 at 11:15:20AM +0200, Lionel Mace wrote:
> I've installed  Apache + mod_ssl/OpenSSL + PHP3/MySQL by following
> INSTALL.SSL file. It works well.
> 
> I've tried to install to do the same thing with the new release of php :
> PHP4
> I've made the following modifications in the file INSTALL.SSL
> ...
>     #   configure PHP4 and apply it to the Apache source tree
>     $ cd ../php-4.0.1pl2
>     $ CFLAGS='-O2 -I/path/to/openssl/include' \
>       ./configure \
>           --prefix=/path/to/php \
>           --with-apache=../apache_1.3.12 \
>           --with-mysql=/path/to/mysql \
>           --enable-memory-limit=yes \
>           --enable-debug=no
>     $ gmake
>     $ gmake install
>     $ cd ..
> 
>     #   build/install Apache with mod_ssl and PHP4
>     $ cd apache_1.3.12
>     $ SSL_BASE=/path/to/openssl \
>       ./configure \
>           --prefix=/path/to/apache \
>           --enable-module=ssl \
>           --activate-module=src/modules/php4/libmodphp4.a \
>           --enable-module=modphp4
>     $ make
> 
> 
> But it doesn't work. I get the following message with the make in apache
> :
Looks very much as if the trouble is with php4 and not with mod_ssl.
In the above example, -DEAPI seems to be missing from the CFLAGS and you should
also make sure that mod_ssl is applied before php (you're probably already
doing this, and just cut out that part :)
Another and usually much easier way would be to build php as an shared module:

$ cd mod_ssl

$ ./configure \                                                    
       --with-apache=../apache_1.3.x \                            
       --with-ssl=../openssl-0.9.x \                             
       --enable-shared=ssl
$ cd ../apache_1.3.x
$ make
$ make install
$ cd ../php-x
$ ./configure \
       --with-apxs=/path/to/apache/bin/apxs
$ make
$ make install

vh

Mads Toftum
-- 
`Darn it, who spiked my coffee with water?!' - lwall

______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to