Re: apache+mod_ssl + php4 crashes

2004-03-26 Thread Matthew Seaman
On Fri, Mar 26, 2004 at 02:11:26PM +0100, Heinrich Rebehn wrote:

> I experimented with PHP config options and found out:
> 
> make -DWITH_CTYPE -DWITH_OVERLOAD -DWITH_PCRE -DWITH_POSIX 
> -DWITH_SESSION -DWITH_TOKENIZER -DWITH_XML -DWITH_ZLIB ==> httpd runs
> 
> make -DWITH_CTYPE -DWITH_OVERLOAD -DWITH_PCRE -DWITH_POSIX 
> -DWITH_SESSION -DWITH_TOKENIZER -DWITH_XML -DWITH_ZLIB -DWITH_DOMXML ==> 
> httpd dumps core

Excellent work.  You should certainly report this to the port's
maintainer.
 
> So DOMXML seems to be the problem, but why??? What is it good for anyhow?

'DOM' is the Document Object Model: 

http://www.w3.org/DOM/ 
http://xml.coverpages.org/dom.html

As the -DWITH_DOMXML flag turns on linking against libxml2, but
-DWITH_XML turns on linking against expat2, I wonder if there could be
an incompatibility between those two libraries.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: apache+mod_ssl + php4 crashes

2004-03-26 Thread Heinrich Rebehn
Matthew Seaman wrote:
On Thu, Mar 25, 2004 at 02:27:02PM +0100, Heinrich Rebehn wrote:


I tried substituting libc_r with libkse (there is no libpthread on 
5.2.1-RELEASE-p3). Still no good. httpd dumps core. :-(


Yes.  I now have heard that the new threading libraries have been
deemed good enough to be made part of the system, so libc_r is the
place for all threaded programs to link against, and the libkse and
libpthread stuff is basically obsolete.
 

I did an lsof for the httpd process (with php4 commented out) and it 
shows no sign of any two modules using different threading libraries:


So the core dump is only happening when mod_php is enabled?  Do you
have the command line version of php installed (you get this with
lang/php4, but not www/mod_php4), and does the crash still happen with
that?  If so, try:
% /usr/local/bin/php << E_O_F
? 
? E_O_F
(The ? at the start of those lines is a shell prompt, which might
appear as > in some shell.  Either way, don't type that character.)
That should print out a large amount of information about your PHP setup.

Hmmm... Probably the next thing to try is simply rebuilding the
mod_php4 port.  I'm fairly certain there is some sort of shlib
conflict or missing shlib which is making everything fall over.  Try
only enabling the minimum number of options you can in the PHP config.
	Cheers,

	Matthew

I experimented with PHP config options and found out:

make -DWITH_CTYPE -DWITH_OVERLOAD -DWITH_PCRE -DWITH_POSIX 
-DWITH_SESSION -DWITH_TOKENIZER -DWITH_XML -DWITH_ZLIB ==> httpd runs

make -DWITH_CTYPE -DWITH_OVERLOAD -DWITH_PCRE -DWITH_POSIX 
-DWITH_SESSION -DWITH_TOKENIZER -DWITH_XML -DWITH_ZLIB -DWITH_DOMXML ==> 
httpd dumps core

So DOMXML seems to be the problem, but why??? What is it good for anyhow?

-- Heinrich

--

Heinrich Rebehn

University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -
Phone : +49/421/218-4664
Fax   :-3341
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-25 Thread Heinrich Rebehn
Matthew Seaman wrote:
On Thu, Mar 25, 2004 at 02:27:02PM +0100, Heinrich Rebehn wrote:


I tried substituting libc_r with libkse (there is no libpthread on 
5.2.1-RELEASE-p3). Still no good. httpd dumps core. :-(


Yes.  I now have heard that the new threading libraries have been
deemed good enough to be made part of the system, so libc_r is the
place for all threaded programs to link against, and the libkse and
libpthread stuff is basically obsolete.
 

I did an lsof for the httpd process (with php4 commented out) and it 
shows no sign of any two modules using different threading libraries:


So the core dump is only happening when mod_php is enabled?  Do you
have the command line version of php installed (you get this with
lang/php4, but not www/mod_php4), and does the crash still happen with
that?  If so, try:
% /usr/local/bin/php << E_O_F
? 
? E_O_F
(The ? at the start of those lines is a shell prompt, which might
appear as > in some shell.  Either way, don't type that character.)
That should print out a large amount of information about your PHP setup.
You can view it at http://www.ant.uni-bremen.de/~rebehn/php.log
Hmmm... Probably the next thing to try is simply rebuilding the
mod_php4 port.  I'm fairly certain there is some sort of shlib
conflict or missing shlib which is making everything fall over.  Try
only enabling the minimum number of options you can in the PHP config.
I will try that.
Thanks for your help,
Heinrich
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-25 Thread Matthew Seaman
On Thu, Mar 25, 2004 at 02:27:02PM +0100, Heinrich Rebehn wrote:

> I tried substituting libc_r with libkse (there is no libpthread on 
> 5.2.1-RELEASE-p3). Still no good. httpd dumps core. :-(

Yes.  I now have heard that the new threading libraries have been
deemed good enough to be made part of the system, so libc_r is the
place for all threaded programs to link against, and the libkse and
libpthread stuff is basically obsolete.
 
> I did an lsof for the httpd process (with php4 commented out) and it 
> shows no sign of any two modules using different threading libraries:

So the core dump is only happening when mod_php is enabled?  Do you
have the command line version of php installed (you get this with
lang/php4, but not www/mod_php4), and does the crash still happen with
that?  If so, try:

% /usr/local/bin/php << E_O_F
? 
? E_O_F

(The ? at the start of those lines is a shell prompt, which might
appear as > in some shell.  Either way, don't type that character.)

That should print out a large amount of information about your PHP setup.

Hmmm... Probably the next thing to try is simply rebuilding the
mod_php4 port.  I'm fairly certain there is some sort of shlib
conflict or missing shlib which is making everything fall over.  Try
only enabling the minimum number of options you can in the PHP config.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: apache+mod_ssl + php4 crashes

2004-03-25 Thread Heinrich Rebehn
Matthew Seaman wrote:
On Wed, Mar 17, 2004 at 02:20:34PM +0100, Heinrich Rebehn wrote:


this is the ldd output:

[EMAIL PROTECTED] [/usr/local/libexec/apache] # ldd ./libphp4.so
./libphp4.so:
[...]

   libc_r.so.5 => /usr/lib/libc_r.so.5 (0x287fd000)


H... Which OS version are you building this on?  If it's
5.2.1-RELEASE, I think that libc_r.so.5 should be replaced by
libpthread.so.N -- and one exceedingly annoying problem is that in a
dynamically linked program like Apache, parts of it can end up being
linked against libpthread, and other parts can be linked against
libc_r, which will cause the whole thing to crash.
One solution is to use /etc/libmap.conf to substiture libpthread for
libc_r during the dynamic link stage of program startup. See
libmap.conf(5).  /etc/libmap.conf should contain something like:
 libpthread.so.1 libpthread.so.1 # Everything uses 'libpthread'
 libpthread.so   libpthread.so
 libc_r.so.5 libpthread.so.1 # Everything that uses 'libc_r'
 libc_r.so   libpthread.so   # now uses 'libpthread'
Of course, the ultimate solution is to fix all of the ports and
recompile them so that they automatically link against the correct
threading library.
	Cheers,

	Matthew

Hi Matthew,

I tried substituting libc_r with libkse (there is no libpthread on 
5.2.1-RELEASE-p3). Still no good. httpd dumps core. :-(

I did an lsof for the httpd process (with php4 commented out) and it 
shows no sign of any two modules using different threading libraries:

# lsof|grep 76767|grep /lib|awk '{print $9}'
/libexec/ld-elf.so.1
/lib/libcrypt.so.2
/usr/local/lib/libmm.so.13
/lib/libc.so.5
/usr/local/libexec/apache/mod_mmap_static.so
/usr/local/libexec/apache/mod_vhost_alias.so
/usr/local/libexec/apache/mod_env.so
/usr/local/libexec/apache/mod_define.so
/usr/local/libexec/apache/mod_log_config.so
/usr/local/libexec/apache/mod_mime_magic.so
/usr/local/libexec/apache/mod_mime.so
/usr/local/libexec/apache/mod_negotiation.so
/usr/local/libexec/apache/mod_status.so
/usr/local/libexec/apache/mod_info.so
/usr/local/libexec/apache/mod_include.so
/usr/local/libexec/apache/mod_autoindex.so
/usr/local/libexec/apache/mod_dir.so
/usr/local/libexec/apache/mod_cgi.so
/usr/local/libexec/apache/mod_asis.so
/usr/local/libexec/apache/mod_imap.so
/usr/local/libexec/apache/mod_actions.so
/usr/local/libexec/apache/mod_speling.so
/usr/local/libexec/apache/mod_userdir.so
/usr/local/libexec/apache/mod_alias.so
/usr/local/libexec/apache/mod_rewrite.so
/usr/local/libexec/apache/mod_access.so
/usr/local/libexec/apache/mod_auth.so
/usr/local/libexec/apache/mod_auth_anon.so
/usr/local/libexec/apache/mod_auth_db.so
/usr/local/libexec/apache/mod_digest.so
/usr/local/libexec/apache/libproxy.so
/usr/local/libexec/apache/mod_cern_meta.so
/usr/local/libexec/apache/mod_expires.so
/usr/local/libexec/apache/mod_headers.so
/usr/local/libexec/apache/mod_usertrack.so
/usr/local/libexec/apache/mod_unique_id.so
/usr/local/libexec/apache/mod_setenvif.so
/usr/local/libexec/apache/mod_layout.so
/usr/local/libexec/apache/libssl.so
/usr/lib/libssl.so.3
/lib/libcrypto.so.3
# ldd /usr/local/libexec/apache/libphp4.so
/usr/local/libexec/apache/libphp4.so:
libcrypto.so.3 => /lib/libcrypto.so.3 (0x282fc000)
libssl.so.3 => /usr/lib/libssl.so.3 (0x2840a000)
libcrypt.so.2 => /lib/libcrypt.so.2 (0x2843c000)
libmcal.so => /usr/local/lib/libmcal.so (0x28455000)
libc-client4.so.8 => /usr/local/lib/libc-client4.so.8 (0x28464000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x2851d000)
libexpat.so.5 => /usr/local/lib/libexpat.so.5 (0x2860c000)
libpq.so.3 => /usr/local/lib/libpq.so.3 (0x2862c000)
libmysqlclient.so.12 => 
/usr/local/lib/mysql/libmysqlclient.so.12 (0x28647000)
libmcrypt.so.8 => /usr/local/lib/libmcrypt.so.8 (0x2866a000)
libltdl.so.4 => /usr/local/lib/libltdl.so.4 (0x2869d000)
libldap.so.2 => /usr/local/lib/libldap.so.2 (0x286a5000)
liblber.so.2 => /usr/local/lib/liblber.so.2 (0x286cd000)
libpam.so.2 => /usr/lib/libpam.so.2 (0x286d8000)
libintl.so.6 => /usr/local/lib/libintl.so.6 (0x286df000)
libz.so.2 => /lib/libz.so.2 (0x286e8000)
libm.so.2 => /lib/libm.so.2 (0x286f6000)
libxml2.so.5 => /usr/local/lib/libxml2.so.5 (0x2870f000)
libc_r.so.5 => /usr/lib/libkse.so.1 (0x28808000)

Any other clues??

-- Heinrich
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-18 Thread Heinrich Rebehn
Matthew Seaman wrote:
On Wed, Mar 17, 2004 at 02:20:34PM +0100, Heinrich Rebehn wrote:


this is the ldd output:

[EMAIL PROTECTED] [/usr/local/libexec/apache] # ldd ./libphp4.so
./libphp4.so:
[...]

   libc_r.so.5 => /usr/lib/libc_r.so.5 (0x287fd000)


H... Which OS version are you building this on?  If it's
5.2.1-RELEASE, I think that libc_r.so.5 should be replaced by
libpthread.so.N -- and one exceedingly annoying problem is that in a
dynamically linked program like Apache, parts of it can end up being
linked against libpthread, and other parts can be linked against
libc_r, which will cause the whole thing to crash.
One solution is to use /etc/libmap.conf to substiture libpthread for
libc_r during the dynamic link stage of program startup. See
libmap.conf(5).  /etc/libmap.conf should contain something like:
 libpthread.so.1 libpthread.so.1 # Everything uses 'libpthread'
 libpthread.so   libpthread.so
 libc_r.so.5 libpthread.so.1 # Everything that uses 'libc_r'
 libc_r.so   libpthread.so   # now uses 'libpthread'
Of course, the ultimate solution is to fix all of the ports and
recompile them so that they automatically link against the correct
threading library.
	Cheers,

	Matthew

Hi Matthew,

for some reason i do not have libpthread on my system:

[EMAIL PROTECTED] [~] # find /usr -name 'libpthread*'
/usr/src/lib/libpthread
/usr/compat/linux/lib/libpthread-0.9.so
/usr/compat/linux/lib/libpthread.so.0
[EMAIL PROTECTED] [~] # find /lib -name 'libpthread*'
[EMAIL PROTECTED] [~] #
This is strange, because /usr/src/lib/libpthread exists. Should i simply 
go there and do 'make install' ?

And yes, i use 5.2.1-RELEASE-p1.

Your other suggestion about editing /etc/make.conf unfortunately did not 
help.

Cheers,
Heinrich
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-17 Thread Matthew Seaman
On Wed, Mar 17, 2004 at 01:04:49PM -0700, Brent Wiese wrote:

> I've had trouble when cvsup'ing the ports because /lang/php4 has "apache13"
> as the port it looks at when in actuality, you want it looking at
> "apache13-modssl". I've done it enough times now that I instinctively go
> change it, but that annoyed for a long time because I'd forget and it'd go
> install normal apache and complain a lot when starting.

Put:

APACHE_PORT=www/apache13+modssl

into /etc/make.conf

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


RE: apache+mod_ssl + php4 crashes

2004-03-17 Thread Brent Wiese
> I have trouble running apache with php4.
> when i try to start httpd, it crashes with signal 11.
> If i remove php4 from httpd.conf, apache runs fine.
> Installed packages:
> 
> apache+mod_ssl-1.3.29+2.8.16_1 The Apache 1.3 webserver with SSL/TLS 
> functionality
> php4-4.3.4_7PHP Scripting Language (Apache Module and CLI)
> php4-horde-4.3.4_7  A default PHP configured for the Horde framework
> 
> Any ideas?

Did you install these as ports?

I've had trouble when cvsup'ing the ports because /lang/php4 has "apache13"
as the port it looks at when in actuality, you want it looking at
"apache13-modssl". I've done it enough times now that I instinctively go
change it, but that annoyed for a long time because I'd forget and it'd go
install normal apache and complain a lot when starting.

Brent


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-17 Thread Jerry McAllister
> 
> Jerry McAllister wrote:
> >>Jorn Argelo wrote:
> >>
> >>>Log files are your friends ... give us an output of
> >>>/var/log/httpd-error.log
> >>>
> >>>Cheers,
> >>>
> >>>Jorn
> >>>
> >>>On 3/18/2004, "Heinrich Rebehn" <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>
> Hi list,
> 
> I have trouble running apache with php4.
> when i try to start httpd, it crashes with signal 11.
> If i remove php4 from httpd.conf, apache runs fine.
> Installed packages:
> 
> apache+mod_ssl-1.3.29+2.8.16_1 The Apache 1.3 webserver with SSL/TLS
> functionality
> php4-4.3.4_7PHP Scripting Language (Apache Module and CLI)
> php4-horde-4.3.4_7  A default PHP configured for the Horde framework
> 
> Any ideas?
> >>
> >>
> >>Unfortunately, no log file is created. httpd dies immediately on startup 
> >>and creates a httpd.core file. But i have too little experience to 
> >>evaluate the core.
> > 
> > 
> > Did you also check /var/log/messages?  
> > An immediate total crash might log something there.
> > 
> > jerry
> 
> /var/log/messages:
> 
> Mar 17 14:15:58 antsrv1 kernel: pid 8209 (httpd), uid 0: exited on 
> signal 11 (core dumped)
> Mar 17 14:18:20 antsrv1 kernel: pid 8225 (httpd), uid 0: exited on 
> signal 11 (core dumped)

Hmmm.   Not too helpful.   
Well, I have about the same thing installed on 4.9 and after I
actually remembered to install the mod_php4, it seems to work fine
so, I don't know what else to suggest.

jerry

> 
>   Heinrich
> 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-17 Thread Matthew Seaman
On Wed, Mar 17, 2004 at 02:20:34PM +0100, Heinrich Rebehn wrote:

> this is the ldd output:
> 
> [EMAIL PROTECTED] [/usr/local/libexec/apache] # ldd ./libphp4.so
> ./libphp4.so:
[...]
> libc_r.so.5 => /usr/lib/libc_r.so.5 (0x287fd000)

H... Which OS version are you building this on?  If it's
5.2.1-RELEASE, I think that libc_r.so.5 should be replaced by
libpthread.so.N -- and one exceedingly annoying problem is that in a
dynamically linked program like Apache, parts of it can end up being
linked against libpthread, and other parts can be linked against
libc_r, which will cause the whole thing to crash.

One solution is to use /etc/libmap.conf to substiture libpthread for
libc_r during the dynamic link stage of program startup. See
libmap.conf(5).  /etc/libmap.conf should contain something like:

 libpthread.so.1 libpthread.so.1 # Everything uses 'libpthread'
 libpthread.so   libpthread.so

 libc_r.so.5 libpthread.so.1 # Everything that uses 'libc_r'
 libc_r.so   libpthread.so   # now uses 'libpthread'

Of course, the ultimate solution is to fix all of the ports and
recompile them so that they automatically link against the correct
threading library.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: apache+mod_ssl + php4 crashes

2004-03-17 Thread Heinrich Rebehn
Jerry McAllister wrote:
Jorn Argelo wrote:

Log files are your friends ... give us an output of
/var/log/httpd-error.log
Cheers,

Jorn

On 3/18/2004, "Heinrich Rebehn" <[EMAIL PROTECTED]> wrote:



Hi list,

I have trouble running apache with php4.
when i try to start httpd, it crashes with signal 11.
If i remove php4 from httpd.conf, apache runs fine.
Installed packages:
apache+mod_ssl-1.3.29+2.8.16_1 The Apache 1.3 webserver with SSL/TLS
functionality
php4-4.3.4_7PHP Scripting Language (Apache Module and CLI)
php4-horde-4.3.4_7  A default PHP configured for the Horde framework
Any ideas?


Unfortunately, no log file is created. httpd dies immediately on startup 
and creates a httpd.core file. But i have too little experience to 
evaluate the core.


Did you also check /var/log/messages?  
An immediate total crash might log something there.

jerry
/var/log/messages:

Mar 17 14:15:58 antsrv1 kernel: pid 8209 (httpd), uid 0: exited on 
signal 11 (core dumped)
Mar 17 14:18:20 antsrv1 kernel: pid 8225 (httpd), uid 0: exited on 
signal 11 (core dumped)

Heinrich
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-17 Thread Jerry McAllister
> 
> Jorn Argelo wrote:
> > Log files are your friends ... give us an output of
> > /var/log/httpd-error.log
> > 
> > Cheers,
> > 
> > Jorn
> > 
> > On 3/18/2004, "Heinrich Rebehn" <[EMAIL PROTECTED]> wrote:
> > 
> > 
> >>Hi list,
> >>
> >>I have trouble running apache with php4.
> >>when i try to start httpd, it crashes with signal 11.
> >>If i remove php4 from httpd.conf, apache runs fine.
> >>Installed packages:
> >>
> >>apache+mod_ssl-1.3.29+2.8.16_1 The Apache 1.3 webserver with SSL/TLS
> >>functionality
> >>php4-4.3.4_7PHP Scripting Language (Apache Module and CLI)
> >>php4-horde-4.3.4_7  A default PHP configured for the Horde framework
> >>
> >>Any ideas?
> 
> 
> Unfortunately, no log file is created. httpd dies immediately on startup 
> and creates a httpd.core file. But i have too little experience to 
> evaluate the core.

Did you also check /var/log/messages?  
An immediate total crash might log something there.

jerry

> 
> BTW, i forgot: i am running 5.2.1-RELEASE-p1
> 
>   -- Heinrich
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-17 Thread Heinrich Rebehn
Matthew Seaman wrote:
On Wed, Mar 17, 2004 at 11:11:05AM +0100, Heinrich Rebehn wrote:

Hi list,

I have trouble running apache with php4.
when i try to start httpd, it crashes with signal 11.
If i remove php4 from httpd.conf, apache runs fine.
Installed packages:
apache+mod_ssl-1.3.29+2.8.16_1 The Apache 1.3 webserver with SSL/TLS 
functionality
php4-4.3.4_7PHP Scripting Language (Apache Module and CLI)
php4-horde-4.3.4_7  A default PHP configured for the Horde framework

Any ideas?


This often comes about because one of the 3rd party apache loadable
modules you're using is looking for a shared library which it cannot
find.
Try this:

# cd /usr/local/libexec/apache
ldd ./libphp4.so
If there are any shared libraries 'not found' then you need to either
install them, or use 'ldconfig -m dirname' to add the correct
directories to the systems list of places to find shared libraries.
To make that persist across reboots, ad the directories to the end of
the list given for the 'ldconfig_paths' variable in /etc/rc.conf (take
care when doing that, as if you screw up ldconfig, then virtually
nothing will work on your system).
Hmmm... looking at the port Makefiles, I don't think you should be
able to install both lang/php4 and lang/php4-horde simultaneously.
However, so long as you compile php4 with at least the settings:
WITH_DOMXML=yes
WITH_GETTEXT=   yes
WITH_SESSION=   yes
WITH_MCRYPT=yes
WITH_MYSQL= yes
WITH_OPENLDAP=  yes
WITH_IMAP=  yes
WITH_MCAL=  yes
WITH_FTP=   yes
then you can use either one of those ports.

	Cheers,

	Matthew

Hi Matthew,

this is the ldd output:

[EMAIL PROTECTED] [/usr/local/libexec/apache] # ldd ./libphp4.so
./libphp4.so:
libcrypto.so.3 => /lib/libcrypto.so.3 (0x282f2000)
libssl.so.3 => /usr/lib/libssl.so.3 (0x2840)
libcrypt.so.2 => /lib/libcrypt.so.2 (0x28432000)
libmcal.so => /usr/local/lib/libmcal.so (0x2844b000)
libc-client4.so.8 => /usr/local/lib/libc-client4.so.8 (0x2845a000)
libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x28513000)
libexpat.so.5 => /usr/local/lib/libexpat.so.5 (0x28602000)
libpq.so.3 => /usr/local/lib/libpq.so.3 (0x28622000)
libmysqlclient.so.12 => 
/usr/local/lib/mysql/libmysqlclient.so.12 (0x2863d000)
libmcrypt.so.8 => /usr/local/lib/libmcrypt.so.8 (0x2866)
libltdl.so.4 => /usr/local/lib/libltdl.so.4 (0x28693000)
libldap.so.2 => /usr/local/lib/libldap.so.2 (0x2869b000)
liblber.so.2 => /usr/local/lib/liblber.so.2 (0x286c3000)
libpam.so.2 => /usr/lib/libpam.so.2 (0x286ce000)
libintl.so.6 => /usr/local/lib/libintl.so.6 (0x286d5000)
libz.so.2 => /lib/libz.so.2 (0x286de000)
libm.so.2 => /lib/libm.so.2 (0x286ec000)
libxml2.so.5 => /usr/local/lib/libxml2.so.5 (0x28705000)
libc_r.so.5 => /usr/lib/libc_r.so.5 (0x287fd000)

I have also deinstalled php4 and php4-horde and then reinstalled php4.
Still no luck :-( httpd still crashes with signal 11
This whole setup used to work once, but since some portupgrade or 4.9 -> 
5.2.1 httpd crashes.

	Heinrich

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-17 Thread Matthew Seaman
On Wed, Mar 17, 2004 at 11:11:05AM +0100, Heinrich Rebehn wrote:
> Hi list,
> 
> I have trouble running apache with php4.
> when i try to start httpd, it crashes with signal 11.
> If i remove php4 from httpd.conf, apache runs fine.
> Installed packages:
> 
> apache+mod_ssl-1.3.29+2.8.16_1 The Apache 1.3 webserver with SSL/TLS 
> functionality
> php4-4.3.4_7PHP Scripting Language (Apache Module and CLI)
> php4-horde-4.3.4_7  A default PHP configured for the Horde framework
> 
> Any ideas?

This often comes about because one of the 3rd party apache loadable
modules you're using is looking for a shared library which it cannot
find.

Try this:

# cd /usr/local/libexec/apache
ldd ./libphp4.so

If there are any shared libraries 'not found' then you need to either
install them, or use 'ldconfig -m dirname' to add the correct
directories to the systems list of places to find shared libraries.
To make that persist across reboots, ad the directories to the end of
the list given for the 'ldconfig_paths' variable in /etc/rc.conf (take
care when doing that, as if you screw up ldconfig, then virtually
nothing will work on your system).

Hmmm... looking at the port Makefiles, I don't think you should be
able to install both lang/php4 and lang/php4-horde simultaneously.
However, so long as you compile php4 with at least the settings:

WITH_DOMXML=yes
WITH_GETTEXT=   yes
WITH_SESSION=   yes
WITH_MCRYPT=yes
WITH_MYSQL= yes
WITH_OPENLDAP=  yes
WITH_IMAP=  yes
WITH_MCAL=  yes
WITH_FTP=   yes

then you can use either one of those ports.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: apache+mod_ssl + php4 crashes

2004-03-17 Thread Heinrich Rebehn
Jorn Argelo wrote:
Log files are your friends ... give us an output of
/var/log/httpd-error.log
Cheers,

Jorn

On 3/18/2004, "Heinrich Rebehn" <[EMAIL PROTECTED]> wrote:


Hi list,

I have trouble running apache with php4.
when i try to start httpd, it crashes with signal 11.
If i remove php4 from httpd.conf, apache runs fine.
Installed packages:
apache+mod_ssl-1.3.29+2.8.16_1 The Apache 1.3 webserver with SSL/TLS
functionality
php4-4.3.4_7PHP Scripting Language (Apache Module and CLI)
php4-horde-4.3.4_7  A default PHP configured for the Horde framework
Any ideas?


Unfortunately, no log file is created. httpd dies immediately on startup 
and creates a httpd.core file. But i have too little experience to 
evaluate the core.

BTW, i forgot: i am running 5.2.1-RELEASE-p1

-- Heinrich
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: apache+mod_ssl + php4 crashes

2004-03-17 Thread Jorn Argelo

Log files are your friends ... give us an output of
/var/log/httpd-error.log

Cheers,

Jorn

On 3/18/2004, "Heinrich Rebehn" <[EMAIL PROTECTED]> wrote:

>Hi list,
>
>I have trouble running apache with php4.
>when i try to start httpd, it crashes with signal 11.
>If i remove php4 from httpd.conf, apache runs fine.
>Installed packages:
>
>apache+mod_ssl-1.3.29+2.8.16_1 The Apache 1.3 webserver with SSL/TLS
>functionality
>php4-4.3.4_7PHP Scripting Language (Apache Module and CLI)
>php4-horde-4.3.4_7  A default PHP configured for the Horde framework
>
>Any ideas?
>
>--
>
>Heinrich Rebehn
>
>University of Bremen
>Physics / Electrical and Electronics Engineering
>- Department of Telecommunications -
>
>Phone : +49/421/218-4664
>Fax   :-3341
>___
>[EMAIL PROTECTED] mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


apache+mod_ssl + php4 crashes

2004-03-17 Thread Heinrich Rebehn
Hi list,

I have trouble running apache with php4.
when i try to start httpd, it crashes with signal 11.
If i remove php4 from httpd.conf, apache runs fine.
Installed packages:
apache+mod_ssl-1.3.29+2.8.16_1 The Apache 1.3 webserver with SSL/TLS 
functionality
php4-4.3.4_7PHP Scripting Language (Apache Module and CLI)
php4-horde-4.3.4_7  A default PHP configured for the Horde framework

Any ideas?

--

Heinrich Rebehn

University of Bremen
Physics / Electrical and Electronics Engineering
- Department of Telecommunications -
Phone : +49/421/218-4664
Fax   :-3341
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"