Apache segmentation fault

2012-01-11 Thread Robert Fitzpatrick
Upgraded php52 to php53 by pkg_delete of php5 and porinstall php52. Then
I had to manually resort back to php52 by pkg_delete and then
portinstall and now getting a seg fault when restarting apache22 on this
FreeBSD 8.1 server. I narrowed it down to not the php module, but the
two ldap modules I have in apache...

mail# cat httpd.conf|grep ldap
#LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so
#LoadModule ldap_module libexec/apache22/mod_ldap.so

With these two lines commented out, apache restarts without the seg
fault. Tried to force pkg_delete on apache and then portinstall to
rebuild these modules, but same issue afterward. The php module loads
without error, but getting download prompts when trying to access php
pages. Not getting any help from messages or httpd-error logs and all
was working before I messed it up.

My question is what I should try next to try and fix this issue. Should
I force pkg_delete and rebuild all php packages or ldap packages? Or
some other approach?

Thanks for any help, Robert

--
Robert rob...@webtent.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Apache segmentation fault

2012-01-11 Thread Waitman Gobble
On Jan 11, 2012 12:39 PM, Robert Fitzpatrick rob...@webtent.org wrote:

 Upgraded php52 to php53 by pkg_delete of php5 and porinstall php52. Then
 I had to manually resort back to php52 by pkg_delete and then
 portinstall and now getting a seg fault when restarting apache22 on this
 FreeBSD 8.1 server. I narrowed it down to not the php module, but the
 two ldap modules I have in apache...

 mail# cat httpd.conf|grep ldap
 #LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so
 #LoadModule ldap_module libexec/apache22/mod_ldap.so

 With these two lines commented out, apache restarts without the seg
 fault. Tried to force pkg_delete on apache and then portinstall to
 rebuild these modules, but same issue afterward. The php module loads
 without error, but getting download prompts when trying to access php
 pages. Not getting any help from messages or httpd-error logs and all
 was working before I messed it up.

 My question is what I should try next to try and fix this issue. Should
 I force pkg_delete and rebuild all php packages or ldap packages? Or
 some other approach?

 Thanks for any help, Robert

 --
 Robert rob...@webtent.org
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org

hi, you probably need to replace php.ini ... 5.3 barfs with a 5.2  config
file... not sure if the pkg thingy would wipe your config.

waitman
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Apache segmentation fault

2012-01-11 Thread Waitman Gobble
On Jan 11, 2012 12:54 PM, Waitman Gobble gobble...@gmail.com wrote:


 On Jan 11, 2012 12:39 PM, Robert Fitzpatrick rob...@webtent.org wrote:
 
  Upgraded php52 to php53 by pkg_delete of php5 and porinstall php52. Then
  I had to manually resort back to php52 by pkg_delete and then
  portinstall and now getting a seg fault when restarting apache22 on this
  FreeBSD 8.1 server. I narrowed it down to not the php module, but the
  two ldap modules I have in apache...
 
  mail# cat httpd.conf|grep ldap
  #LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so
  #LoadModule ldap_module libexec/apache22/mod_ldap.so
 
  With these two lines commented out, apache restarts without the seg
  fault. Tried to force pkg_delete on apache and then portinstall to
  rebuild these modules, but same issue afterward. The php module loads
  without error, but getting download prompts when trying to access php
  pages. Not getting any help from messages or httpd-error logs and all
  was working before I messed it up.
 
  My question is what I should try next to try and fix this issue. Should
  I force pkg_delete and rebuild all php packages or ldap packages? Or
  some other approach?
 
  Thanks for any help, Robert
 
  --
  Robert rob...@webtent.org
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org

 hi, you probably need to replace php.ini ... 5.3 barfs with a 5.2  config
file... not sure if the pkg thingy would wipe your config.

 waitman

sorry, somehow i missed that paragraph about commenting out the other
modules... hope i didn't send you on a wild goose chase for nothing. but
the behavior you describe sounds like what happens running with a
mismatched php.ini... i once tried to narrow down but decided it more
productive to start with a fresh ini file. i believe the problem has to do
with the session config lines. that and the way it handles cgi variables
(see the EPGS section) are the two biggest changes i noticed.   anyway you
might check if thats the issue easily by renaming php.ini.. it should run
without it. (at least 5.2 would havent tried 5.3)
if it runs without php.ini then that  could be the problem.
by the way you are restarting apache after the changes right? also verify
that the modules listed in httpd.conf exist in the paths specified...

hope that helps!

waitman
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Apache segmentation fault

2012-01-11 Thread Robert Fitzpatrick
On 1/11/2012 4:39 PM, Waitman Gobble wrote:
 sorry, somehow i missed that paragraph about commenting out the other
 modules... hope i didn't send you on a wild goose chase for nothing. but
 the behavior you describe sounds like what happens running with a
 mismatched php.ini... i once tried to narrow down but decided it more
 productive to start with a fresh ini file. i believe the problem has to
 do with the session config lines. that and the way it handles cgi
 variables (see the EPGS section) are the two biggest changes i
 noticed.   anyway you might check if thats the issue easily by renaming
 php.ini.. it should run without it. (at least 5.2 would havent tried 5.3)
 if it runs without php.ini then that  could be the problem.
 by the way you are restarting apache after the changes right? also
 verify that the modules listed in httpd.conf exist in the paths specified...
 
 hope that helps!
 
 waitman
 

Thanks for that, found my php.ini was symlink'd to php.ini-recommended,
which is now missing. PHP working now, but still no help with the
segmentation fault. I have tested my ldap client pkgs and perl-LDAP to
work fine, but when I uncomment those modules, I get the fault when
restarting apache

 mail# pwd
 /usr/local/etc
 mail# cat apache22/httpd.conf|grep ldap
 LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so
 LoadModule ldap_module libexec/apache22/mod_ldap.so
 mail# cat apache22/httpd.conf | grep ServerRoot
 ServerRoot /usr/local
 mail# cat apache22/httpd.conf | grep ldap
 LoadModule authnz_ldap_module libexec/apache22/mod_authnz_ldap.so
 LoadModule ldap_module libexec/apache22/mod_ldap.so
 mail# ls -lah /usr/local/libexec/apache22/*ldap*
 -rwxr-xr-x  1 root  wheel54K Jan 11 12:29 
 /usr/local/libexec/apache22/mod_authnz_ldap.so
 -rwxr-xr-x  1 root  wheel   115K Jan 11 12:29 
 /usr/local/libexec/apache22/mod_ldap.so
 mail# rc.d/apache22 restart
 Performing sanity check on apache22 configuration:
 Syntax OK
 Segmentation fault (core dumped)

If I comment out the two modules shown, it restarts without issue.
--
Robert rob...@webtent.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


apache segmentation fault

2003-08-26 Thread admin
OS:  FreeBSD 4.8 Stable
Server: Apache/1.3.28 (Unix) mod_perl/1.27 PHP/4.3.3RC2 PHP/3.0.18
mod_ssl/2.8.15 OpenSSL/0.9.7a mod_fastcgi/2.4.0 

Hi,

well didnt get a response to the first post.  I think I am asking the proper
questions.  please let me know if I am not and let me know what I need to
include to get this situation expressed properly.

I keep coming upon a segmentation fault with apache.  I dont know what is
causing it.  I think I have a core file lying around on the machine when this
happens.  what is a good course of action to figure out what is going on here?
  how can I analyze the core file to figure out what is going on.

from the apache logs 
[Mon Aug 25 10:02:04 2003] [notice] child pid 2266 exit signal Segmentation faul
t (11)

a core file search - nothing found 
shell# find / -name httpd\.core

so how can I generate a core file when apache has a segmentatino fault?   

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