Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP binary causes Segmentation fault

Status
Not open for further replies.

dluvsu

Programmer
Jan 18, 2004
11
ZA
HI there,

I am trying to install php 4.3.6 on a Redhat 7.0 system. I downloaded
the source, unpacked and ran this configure command:

./configure --prefix=/usr/local/ --with-config-file-path=/usr/local/lib/
--with-gd --with-jpeg-dir --with-png-dir --with-tiff-dir --with-ttf
--enable-force-cgi-redirect --enable-safe-mode --with-zlib --enable-ftp
--enable-versioning --enable-url-includes --enable-gd-native-ttf
--enable-trans-sid --enable-dbase --with-db2 --with-ldap --enable-bcmath
--enable-calendar --enable-discard-path --enable-memory-limit
--with-imap --with-mcal --with-bz2 --with-mod-dav --enable-sockets
--with-kerberos/--with-imap-ssl --enable-gd-imgstrttf
--with-freetype-dir --with-curl --with-apxs --with-mysql --with-mhash
--with-gdbm --with-pgsql --with-gettext --with-xml --with-mcrypt

Everything looks fine. I then make and make install with no errors. If I restart apache and check phpinfo everything is fine and php is updated to new version. The only problem is when I try to use the php binary I get "Segmentation fault (core dumped)". I managed to work out that if I remove --with-gdbm --with-pgsql from my configure, the binary executes with no problems. I still have a problem because I do need these options enabled.

I was trying out different releases and found that this issue with the binary occurs with versions 4.3.2 and up. 4.3.1 is the version of my cgi php at the moment.

Any help would be much appreciated, I am not sure where to look.

Thanks,
Darren
 
I can't see anything specific, but here's a few comments:

The PHP online manual states the configuration directive "--with-mod-dav" is for PHP3 only.

"--enable-force-cgi-redirect" may not be necessary as you are compiling PHP to be an Apache module.

Unless you intend to run multiple PHP versions concurrently, you don't need "--enable-versioning"



Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top