Hi all

I've recently installed Fedora Core 2 on my laptop to act as a kind of
sandbox development system. The install of Fedora gave me Apache
2.0.49 and PHP 4.3.6 as a default. I upgraded these via up2date to
2.0.50 and 4.3.8 respectively.
Wanting to investigate the new XML offerings in PHP5, I decide to
configure and install 5.01 with the extensions I required.

*this is my first effort at installing PHP from source* :D -
previously have done this only with Win32 binary

Here is the ./configure line I initially used... I put this together
from the output of ./configure --help piped into less and the
phpinfo() result of 4.3.8

'./configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../config.cache'
'--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d'
'--enable-inline-optimization' '--with-libxml-dir=/usr/' '--with-bz2'
'--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin'
'--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf'
'--without-gdbm' '--with-gettext''--with-ncurses' '--with-gmp'
'--with-iconv' '--with-jpeg-dir=/usr' '--with-tiff-dir=/usr'
'--with-openssl' '--with-png' '--with-regex=system' '--with-xml'
'--with-expat-dir=/usr' '--with-dom=shared,/usr'
'--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared'
'--with-pcre-regex=/usr/local' '--with-zlib' '--with-layout=GNU'
'--enable-bcmath' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-safe-mode' '--disable-short-tags'
'--enable-sockets' '--enable-soap' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-wddx'
'--with-pear=/usr/share/pear' '--with-tidy' '--with-xsl=/usr'
'--with-imap' '--with-imap-ssl=/usr' '--with-kerberos'
'--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared'
'--enable-memory-limit' '--enable-bcmath' '--enable-shmop'
'--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal'
'--enable-mbstring=shared' '--enable-mbstr-enc-trans'
'--enable-mbregex' '--with-apxs2=/usr/sbin/apxs'


This configured ok once I had sourced all the libraries. i ran make
then make install which installed the mysql.so and pgsql.so (and
others) files to /usr/lib/20040412/

I updated the PHP5-recommended ini file(and copied to /etc/) to point
at the above as my extensions_dir. Then did an apachectl restart.
Restarted ok... loaded up a static page ok, but when running a PHP
script my apache error log showed:
[Thu Aug 19 23:45:59 2004] [notice] child pid 2028 exit signal
Segmentation fault (11)

This was the only error I could see, obviously my PHP5 install is
broken somewhere. I went back to square one and did another
./configure and install using:
'./configure' '--with-apxs2=/usr/sbin/apxs' '--with-mysql=shared'

with the same seg fault 11 error as a result

This is my first effort at installing PHP from source and obviously
something has gone wrong! If someone has any help based on the above
info then please reply.

I'm thinking it may be that I haven't installed Apache from source?

Thanks!

James

Reply via email to