You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Andreas Gietl <gi...@gietl.com> on 2000/11/07 22:04:54 UTC

conflicts between mod_perl and php4

Hi,

i also posted this on the mysql-list and on the phpdb-list!

i've got the following configuration:
apache_1.3.12 with php and mod_perl statically linked. Php has
compiled-in mysql-support and mod_perl of course uses DBI.

When i use a mod_perl-script that uses the DBI-Interface i get a
segfault, because php somehow blocks the connection.

I also tried to compile php with with-mysql=/path/to/mysql and that did
not solve my problem.
The only thing that helped me was compiling php w/o mysql, but that is
an incomplete configuration for me.

Do you have any suggestions?

thx

andreas
-- 
andreas gietl
gietl internet services
fon +49 9402 2551
fax +49 9402 2604
mobile +49 171 60 70 008
gietl@gietl.com

############################################
# Das Handbuch sagt, das Programm benötige #
#  Windows 95 oder besser. Also habe ich   #
#          Linux installiert!              # 
############################################

Re: conflicts between mod_perl and php4

Posted by martin langhoff <ma...@scim.net>.
Andreas,

	compile PHP *without* mysql support. Read the PHP docs, it's there...
don't worry, it'll still be able to use mysql connections...

Andreas Gietl wrote:
> i've got the following configuration:
> apache_1.3.12 with php and mod_perl statically linked. Php has
> compiled-in mysql-support and mod_perl of course uses DBI.

RE: conflicts between mod_perl and php4

Posted by "George A. Fitch III" <ge...@orgella.com>.
Hmmm, maybe they're fighting over the named pipe. Maybe
you can get around it with your DBI $dsn. Try specifying
the mysql server with the network path (as opposed to
nothing or 'localhost') so it uses a tcp connection
instead of the named pipe.  It'll be slower if it works,
but that's better than nothing.

Gaf

-----Original Message-----
From: Andreas Gietl [mailto:gietl@gietl.com]
Sent: Tuesday, November 07, 2000 4:05 PM
To: modperl@apache.org
Subject: conflicts between mod_perl and php4


Hi,

i also posted this on the mysql-list and on the phpdb-list!

i've got the following configuration:
apache_1.3.12 with php and mod_perl statically linked. Php has
compiled-in mysql-support and mod_perl of course uses DBI.

When i use a mod_perl-script that uses the DBI-Interface i get a
segfault, because php somehow blocks the connection.

I also tried to compile php with with-mysql=/path/to/mysql and that did
not solve my problem.
The only thing that helped me was compiling php w/o mysql, but that is
an incomplete configuration for me.

Do you have any suggestions?

thx

andreas
--
andreas gietl
gietl internet services
fon +49 9402 2551
fax +49 9402 2604
mobile +49 171 60 70 008
gietl@gietl.com

############################################
# Das Handbuch sagt, das Programm benötige #
#  Windows 95 oder besser. Also habe ich   #
#          Linux installiert!              #
############################################