Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Jul 2000 16:13:46 -0500
From:      David Vondrasek <david@davidv.net>
To:        freebsd-questions@freebsd.org
Subject:   APACHE + PHP3 & PHP4
Message-ID:  <200007092114.QAA95706@ns1.davidv.net>

next in thread | raw e-mail | index | archive | help
I have the following installed and works flawless:

Apache/1.3.12 (Unix) mod_perl/1.21 PHP/3.0.16 mod_ssl/2.6.4 OpenSSL/0.9.4 

Apache Version: Apache/1.3.12
apache+mod_ssl-1.3.12+2.6.2
mod_perl
mod_php3 : MySQL 3.22.32
mod_ssl
 
Settings as:
Configure command: ./configure '--with-apache' '--with-openssl'
'--with-pgsql' '--with-mysql=/usr/local/mysql/'
'--with-apxs=/usr/local/sbin/apxs' '--enable-versioning' php3.ini file path
is set to: /usr/local/lib

I am trying to add mod_php4 from /usr/ports/www/mod_php4
It all makes just fine. Does the compile and install.

But on restarting the server I get this error

root@ns1:/home/david : /usr/local/etc/rc.d/apache.sh
Syntax error on line 243 of /usr/local/etc/apache/apache.conf:
Cannot load /usr/local/libexec/apache/libphp4.so into server:
/usr/local/libexec/apache/libphp4.so: Undefined symbol "msqlErrMsg"

In apache.conf I have this when it errors:

LoadModule ssl_module         libexec/apache/libssl.so
LoadModule php3_module        libexec/apache/libphp3.so
LoadModule php4_module        libexec/apache/libphp4.so
LoadModule perl_module        libexec/apache/libperl.so

AddModule mod_ssl.c
AddModule mod_php3.c
AddModule mod_php4.c
AddModule mod_perl.c

AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3 .php
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php 
AddType application/x-httpd-php-source .phps 

If I comment out 
AddType application/x-httpd-php .php 
AddType application/x-httpd-php-source .phps 
AddModule mod_php4.c
LoadModule php4_module        libexec/apache/libphp4.so

I can get the server to load just fine with PHP3.
I know you can run PHP3 & 4 at the same time.

Any idea what's causing the error ?












David Vondrasek

http://www.davidv.net



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007092114.QAA95706>