Grant Peel wrote:
Hi all,

I am getting 'segmentation faults' when using php (apache module) on a server
that recently had php 4 instlalled when php 5 was already there.

/var/log/httpd-error.log:

[Tue Jan 06 09:44:39 2009] [notice] child pid 8209 exit signal Segmentation 
fault (11)

Is there a way to completely remove all hints of php 5? Do you think this would 
stop the segmentation faults?

IANAE, but (and I don't intend a personal offense) this is a
very convoluted configuration.  Having PHP4 and PHP5 side by
side isn't something I'd try on one box; too much chance of
the extensions overlapping one another, and this would be a prime
cause of a segfault --- that is, PHP5, just as an example, might
be attempting to use an "extension.so" that was compiled against
PHP4, or vice-versa, and such a problem is the usual cause of
such errors.  My $0.02.

There is a good possibility that doing the following would help:

*Pick one version or the other, probably v 5, as v4 is EOL'ed.
*Uninstall both versions and Apache, and all php-extension ports.
*Reinstall the PHP$n port with Apache module enabled via OPTIONS.
*Reinstall the correct php-extension ports.

HTH,

Kevin Kinsey

PS > once again, a fitting .sig.  Is our randomizer
not random enough?  Or something more sinister?

Uname -a:

FreeBSD servername 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb 22 02:59:38 EST 
2007 ... i386

Output of pkg_info:

apache-2.2.3        Version 2.2 of Apache web server with prefork MPM.
apachetop-0.12.6    Apache RealTime log stats
autoconf-2.59_2     Automatically configure source code on many Un*x platforms
bind95-base-9.5.0.2 The BIND DNS suite with updated DNSSEC and threads
bsdpan-Archive-Tar-1.30 Archive::Tar - module for manipulations of tar archives
bsdpan-Authen-PAM-0.16 Authen::PAM - Perl interface to PAM library
bsdpan-CGI-SpeedyCGI-2.22 SpeedyCGI - Speed up perl scripts by running them 
persisten
bsdpan-Compress-Raw-Zlib-2.004 Compress::Raw::Zlib - Low-Level Interface to 
zlib compressi
bsdpan-Compress-Zlib-2.004 Compress::Zlib - Interface to zlib compression 
library
bsdpan-Crypt-CBC-2.14 Crypt::CBC - Encrypt Data with Cipher Block Chaining Mode
bsdpan-Crypt-CBC-2.22 Crypt::CBC - Encrypt Data with Cipher Block Chaining Mode
bsdpan-Crypt-DES-2.05 Crypt::DES - Perl DES encryption module
bsdpan-Crypt-SSLeay-0.53 Crypt::SSLeay - OpenSSL glue that provides LWP https 
suppor
bsdpan-Date-Calc-5.4 Unknown perl module
bsdpan-Date-Manip-5.44 Unknown perl module
bsdpan-Digest-1.15  Digest - Modules that calculate message digests
bsdpan-Digest-HMAC-1.01 Digest::HMAC - Keyed-Hashing for Message Authentication
bsdpan-Digest-MD5-2.36 Digest::MD5 - Perl interface to the MD5 Algorithm
bsdpan-Digest-Nilsimsa-0.06 Digest::Nilsimsa - Perl version of Nilsimsa code
bsdpan-Digest-SHA1-2.11 Digest::SHA1 - Perl interface to the SHA-1 algorithm
bsdpan-ExtUtils-CBuilder-0.18 ExtUtils::CBuilder - Compile and link C code for 
Perl modul
bsdpan-ExtUtils-ParseXS-2.18 ExtUtils::ParseXS - converts Perl XS code into C 
code
bsdpan-HTML-Parser-3.56 HTML::Parser - HTML parser class
bsdpan-HTML-Tagset-3.10 HTML::Tagset - data tables useful in parsing HTML
bsdpan-HTML-Template-2.9 HTML::Template - Perl module to use HTML Templates 
from CGI
bsdpan-IO-Compress-Base-2.004 IO::Compress::Base - Base Class for IO::Compress 
modules
bsdpan-IO-Compress-Zlib-2.004 IO::Compress::Gzip - Write RFC 1952 files/buffers
bsdpan-IO-Socket-INET6-2.51 IO::Socket::INET6 - Object interface for 
AF_INET|AF_INET6 d
bsdpan-IO-Socket-SSL-1.02 IO::Socket::SSL -- Nearly transparent SSL 
encapsulation for
bsdpan-IO-Tty-1.07  IO::Tty - Low-level allocate a pseudo-Tty, import constants
bsdpan-IO-Zlib-1.05 IO::Zlib - IO:: style interface to L<Compress::Zlib>
bsdpan-IO-stringy-2.110 IO-stringy - I/O on in-core objects like strings and 
arrays
bsdpan-Locale-gettext-1.01 gettext - message handling functions
bsdpan-MD5-2.03     MD5 - Perl interface to the MD5 Message-Digest Algorithm
bsdpan-MIME-Base64-3.07 MIME::Base64 - Encoding and decoding of base64 strings
bsdpan-MIME-tools-5.420 MIME-tools - modules for parsing (and creating!) MIME 
entit
bsdpan-Mail-SpamAssassin-3.001008 Mail::SpamAssassin - Spam detector and markup 
engine
bsdpan-MailTools-1.74 Mail::Cap - Parse mailcap files
bsdpan-Net-CIDR-Lite-0.20 Net::CIDR::Lite - Perl extension for merging IPv4 or 
IPv6 C
bsdpan-Net-DNS-0.59 Net::DNS - Perl interface to the DNS resolver
bsdpan-Net-IP-1.25  Net::IP - Perl extension for manipulating IPv4/IPv6 address
bsdpan-Net-Ident-1.20 Net::Ident - lookup the username on the remote end of a 
TCP
bsdpan-Net_SSLeay.pm-1.30 Net::SSLeay - Perl extension for using OpenSSL
bsdpan-Number-Format-1.52 Number::Format - Perl extension for formatting numbers
bsdpan-Parse-Syslog-1.09 Parse::Syslog - Parse Unix syslog files
bsdpan-Socket6-0.19 Socket6 - IPv6 related part of the C socket.h defines and s
bsdpan-Text-Iconv-1.4 Text::Iconv - Perl interface to iconv() codeset conversion
bsdpan-Unicode-String-2.09 Unicode::String - String of Unicode characters 
(UTF-16BE)
bsdpan-XML-Parser-2.34 XML::Parser - A perl module for parsing XML documents
bsdpan-libnet-1.20  Net::FTP - FTP Client class
bsdpan-libwww-perl-5.805 LWP - The World-Wide Web library for Perl
curl-7.15.5         Non-interactive tool to get files from FTP, GOPHER, HTTP(S)
db41-4.1.25_3       The Berkeley DB package, revision 4.1
exim-4.63           High performance MTA for Unix systems on the Internet
expat-2.0.0_1       XML 1.0 parser written in C
ezm3-1.2_1          Easier, more portable Modula-3 distribution for building CV
fontconfig-2.3.2_6,1 An XML-based font configuration API for X Windows
freetype2-2.2.1_1   A free and portable TrueType font rendering engine
fribidi-0.10.7      A Free Implementation of the Unicode Bidirectional Algorith
fuser-1142334561    POSIX fuser utility for FreeBSD
gd-2.0.33_4,1       A graphics library for fast creation of images
gettext-0.14.5_2    GNU gettext package
gmake-3.81_1        GNU version of 'make' utility
help2man-1.36.4_1   Automatically generating simple manual pages from program o
imake-6.9.0         Imake and other utilities from X.Org
ipa_ipfw-1.0.1      IPA accounting module for FreeBSD IP Firewall
ispell-3.2.06_15    An interactive spelling checker for multiple languages
jpeg-6b_4           IJG's jpeg compression utilities
libart_lgpl-2.3.17_1 Library for high-performance 2D graphics
libdrm-2.0.2        Userspace interface to kernel Direct Rendering Module servi
libiconv-1.9.2_2    A character set conversion library
libidn-0.6.7        Internationalized Domain Names command line tool
libltdl-1.5.22      System independent dlopen wrapper
libmcrypt-2.5.7_2   Multi-cipher cryptographic library (used in PHP)
libspf2-1.2.5_1     Sender Rewriting Scheme 2 C Implementation
libtool-1.5.22_2    Generic shared library support script
libxml2-2.6.26      XML parser library for GNOME
libxslt-1.1.17      The XSLT C library for GNOME
linux_base-fc-4_9   Base set of packages needed in Linux mode (for i386/amd64)
logrotate-3.7_4     Daemon to rotate, compress, remove and mail system log file
m4-1.4.4            GNU m4
mailman-2.1.9       A mailing list manager (MLM) with a user-friendly web front
mhash-0.9.7.1       An easy-to-use library for strong hashes such as MD5 and SH
mod_python-3.2.10   Apache module that embeds the Python interpreter within the
mpack-1.6_1         External MIME packer/unpacker
mysql-client-4.1.21 Multithreaded SQL database (client)
mysql-scripts-4.1.21 Multithreaded SQL database (scripts)
mysql-server-4.1.21 Multithreaded SQL database (server)
mytop-1.4_1         A top clone for MySQL
net-snmp-5.2.3_3    An extendable SNMP implementation
p5-Archive-Zip-1.16 Perl module to create, manipulate, read, and write Zip arch
p5-Array-Compare-1.13 Perl extension for comparing arrays
p5-Authen-SASL-2.10_1 Perl5 module for SASL authentication
p5-BerkeleyDB-0.30  Perl5 interface to the Berkeley DB package
p5-CGI-SpeedyCGI-2.22_3 Speed up perl CGI scripts by running them persistently
p5-CGI.pm-3.25,1    Simple Common Gateway Interface Class for Perl
p5-Compress-Zlib-1.42 Perl5 interface to zlib compression library
p5-Convert-ASN1-0.20 Perl5 module to encode and decode ASN.1 data structures
p5-Crypt-CipherSaber-1.00 Perl module providing an OO interface to CipherSaber 
encryp
p5-DBD-mysql41-3.0007 MySQL 4.1 driver for the Perl5 Database Interface (DBI)
p5-DBI-1.52         The perl5 Database Interface.  Required for DBD::* modules
p5-Digest-1.15      Modules that calculate message digests
p5-Digest-HMAC-1.01 Perl5 interface to HMAC Message-Digest Algorithms
p5-Digest-MD5-2.36  Perl5 interface to the MD5 algorithm
p5-Event-1.06       A Generic Perl Event Loop
p5-File-Temp-0.17_1 Perl5 module to generate temporary files or directories saf
p5-Filter-1.32      A number of source filters for perl5 programs
p5-GSSAPI-0.23      Perl extension providing access to the GSSAPIv2 library
p5-Locale-libintl-1.16 Internationalization library for Perl
p5-MIME-Base64-3.07 Perl5 module for Base64 and Quoted-Printable encodings
p5-Msgcat-1.03      Perl module for systems to support the XPG4 message catalog
p5-Net-LibIDN-0.09  This module provides access to the libidn library
p5-POE-0.3800       Multitasking and networking framework for perl
p5-POE-Component-RRDTool-0.18 POE interface to Round Robin Database Tools
p5-PathTools-3.21   A Perl module for portably manipulating file specifications
p5-Scalar-List-Utils-1.18,1 Perl subroutines that would be nice to have in the 
perl cor
p5-Storable-2.15    Persistency for perl data structures
p5-Sub-Uplevel-0.13 Sub::Uplevel - apparently run a function in a higher stack
p5-Term-ANSIColor-1.11 Color screen output using ANSI escape sequences
p5-Term-ReadKey-2.30 A perl5 module for simple terminal control
p5-Test-Exception-0.22 Test::Exception - test functions for exception based code
p5-Test-Harness-2.64 Run perl standard test scripts with statistics
p5-Test-Simple-0.64 Basic utilities for writing tests in perl
p5-Test-Warn-0.08_1 Perl extension to test methods for warnings
p5-Time-HiRes-1.91,1 A perl5 module implementing High resolution time, sleep, an
p5-Tree-DAG_Node-1.05 Super class for representing nodes in a tree
p5-URI-1.35         Perl5 interface to Uniform Resource Identifier (URI) refere
p5-XML-NamespaceSupport-1.09_1 A simple generic namespace support class
p5-XML-SAX-0.14     Simple API for XML
p5-gettext-1.05_1   Message handling functions
p5-perl-ldap-0.33   A Client interface to LDAP servers
pcre-6.7            Perl Compatible Regular Expressions library
pear-1.4.11         PEAR framework for PHP
pear-HTML_Common-1.2.2 PEAR::HTML_Common is a base class for other HTML classes
pear-HTML_QuickForm-3.2.6 Provide methods for creating, validating and 
processing HTM
pecl-PDO-1.0.3      PHP Data Objects Interface
pecl-fileinfo-1.0.3 A PECL extension to retrieve info about files
pecl-fribidi-1.0    A PECL extension for the unicode Bidi algorithm
perl-5.8.8          Practical Extraction and Report Language
php4-4.4.4_1        PHP Scripting Language (Apache Module and CLI)
php4-4.4.7_1        PHP Scripting Language (Apache Module and CLI)
php4-bz2-4.4.4_1    The bz2 shared extension for php
php4-ctype-4.4.4_1  The ctype shared extension for php
php4-curl-4.4.4_1   The curl shared extension for php
php4-domxml-4.4.4_1 The domxml shared extension for php
php4-extensions-1.0 A "meta-port" to install PHP extensions
php4-ftp-4.4.4_1    The ftp shared extension for php
php4-gd-4.4.4_1     The gd shared extension for php
php4-gettext-4.4.4_1 The gettext shared extension for php
php4-iconv-4.4.4_1  The iconv shared extension for php
php4-mcrypt-4.4.4_1 The mcrypt shared extension for php
php4-mysql-4.4.4_1  The mysql shared extension for php
php4-openssl-4.4.4_1 The openssl shared extension for php
php4-overload-4.4.4_1 The overload shared extension for php
php4-pcre-4.4.4_1   The pcre shared extension for php
php4-session-4.4.4_1 The session shared extension for php
php4-snmp-4.4.4_1   The snmp shared extension for php
php4-sockets-4.4.4_1 The sockets shared extension for php
php4-tokenizer-4.4.4_1 The tokenizer shared extension for php
php4-xml-4.4.4_1    The xml shared extension for php
php4-zlib-4.4.4_1   The zlib shared extension for php
php5-bz2-5.1.6_3    The bz2 shared extension for php
php5-calendar-5.1.6_3 The calendar shared extension for php
php5-ctype-5.1.6_3  The ctype shared extension for php
php5-curl-5.1.6_3   The curl shared extension for php
php5-dom-5.1.6_3    The dom shared extension for php
php5-extensions-1.0 A "meta-port" to install PHP extensions
php5-filepro-5.1.6_3 The filepro shared extension for php
php5-ftp-5.1.6_3    The ftp shared extension for php
php5-gd-5.1.6_3     The gd shared extension for php
php5-gettext-5.1.6_3 The gettext shared extension for php
php5-iconv-5.1.6_3  The iconv shared extension for php
php5-mbstring-5.1.6_3 The mbstring shared extension for php
php5-mcrypt-5.1.6_3 The mcrypt shared extension for php
php5-mhash-5.1.6_3  The mhash shared extension for php
php5-mysql-5.1.6_3  The mysql shared extension for php
php5-openssl-5.1.6_3 The openssl shared extension for php
php5-pcre-5.1.6_3   The pcre shared extension for php
php5-posix-5.1.6_3  The posix shared extension for php
php5-session-5.1.6_3 The session shared extension for php
php5-simplexml-5.1.6_3 The simplexml shared extension for php
php5-sqlite-5.1.6_3 The sqlite shared extension for php
php5-tokenizer-5.1.6_3 The tokenizer shared extension for php
php5-xml-5.1.6_3    The xml shared extension for php
php5-xmlreader-5.1.6_3 The xmlreader shared extension for php
php5-xmlwriter-5.1.6_3 The xmlwriter shared extension for php
php5-zlib-5.1.6_3   The zlib shared extension for php
pico-4.64           PIne's message COmposition editor
pkg-config-0.21     A utility to retrieve information about installed libraries
png-1.2.12_1        Library for manipulating PNG images
popt-1.7_1          A getopt(3) like library with a number of enhancements, fro
proftpd-1.3.0_2     Highly configurable ftp daemon
python24-2.4.3_3    An interpreted object-oriented programming language
python25-2.5_1      An interpreted object-oriented programming language
razor-agents-2.82   A distributed, collaborative, spam detection and filtering
rrdtool-1.2.15      Round Robin Database Tools
suphp-0.5.2_2       Securely execute PHP scripts
sympa-4.1.2_3       Sympa is an electronic mailing list manager
t1lib-5.1.0_1,1     A Type 1 Rasterizer Library for UNIX/X11
trafshow-5.2.3,1    Full screen visualization of network traffic
unzip-5.52_2        List, test and extract compressed files in a ZIP archive
vm-pop3d-1.1.6_1    A virtual POP3 server
webalizer-2.1.10_7  A web server log file analysis program
xorg-libraries-6.9.0 X11 libraries and headers from X.Org


Thanks,

-Grant
--
Most of your faults are not your fault.

_______________________________________________
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"

Reply via email to