Session Crash
| From: | Jim Thome | Date: | Wed, 24 Jul 2002 19:00:36 +0000 |
| Subject: | Session Crash | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-7893@lists.php.net to get a copy of this message | ||
Hi all,
I currently have PHP 4.0.6 running on our HPUX server as a DSO with Oracle 8.1.6. Although I have
been able to compile later versions of PHP, I always run into the same problem. When I have a page
that starts a PHP session, the page/script fails and I get a line similar to below in the Apache
error logs:
[notice] child pid 10913 exit signal Bad system call (12)
Has anyone else experienced this problem? My PHP configuration has not changed. Why can I only get
PHP 4.0.6 to work?
My PHP config line is (but everything builds ok):
./configure \
--with-apxs=/path/to/apache/bin/apxs \
--with-mysql=no \
--with-oci8 \
--with-zlib=/opt/zlib \
--with-zlib-dir=/opt/zlib \
--
Jim
>>> "Santosh Narayanan" <santosh_narayanan@msn.com> 07/18/02 03:28AM
>>> >>>
Hi all,
Thanks for the replies to my message regarding gd errors while compiling
PHP.
I finally managed to solve it using this method. Note that I am using a
Redhat Linux system to do the compile.
1) Compiled and installed libpng 1.2.4
wget www.libpng.org/pub/png/src/libpng-1.2.4.tar.gz
tar zxvf libpng-1.2.4.tar.gz
cd libpng-1.2.4
mv scripts/makefile.linux Makefile
make
make install
2) Compiled and installed libjpeg 6b
wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --enable-shared
make
make install
3) Compiled and installed GD 1.8.4
wget www.boutell.com/gd/http/gd-1.8.4.tar.gz
tar zxvf gd-1.8.4.tar.gz
cd gd-1.8.4
pico Makefile
-------
NOTE: On some systems gd refuses to compile unless you reverse the LIBS line
in the Makefile as follows,
LIBS=-lm -lz -lpng -lgd
(save the file using CTRL-X and Y)
-------
make
make install
4) Now configure, compile and install PHP 4.1.2 as follows,
./configure --prefix=/usr --with-config-file-path=/etc/httpd
--with-exec-dir=/usr/bin --with-libdir=/usr/lib --enable-bcmath
--enable-magic-quotes --enable-safe-mode --enable-mbstring
--enable-mbstr-enc-trans --enable-track-vars --enable-wddx=shared
--enable-mm=shared --enable-xml --enable-ftp --disable-debug
--with-apxs=/usr/sbin/apxs --with-zlib --with-ttf
--with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib
--with-gd=/usr/local --with-gettext=/usr --with-regex=system --with-db
--with-gdbm --with-interbase=shared --with-pgsql=shared --with-ldap
--with-imap --with-pdflib=/usr --with-mysql
-------
NOTE: The configure line will change depending on what you support you need
with PHP, but generally the above configure has support for many common
stuff used in PHP.
-------
make > /dev/null
make install
5) Now restart apache (the command to restart apache depends on your system)
/etc/rc.d/init.d/httpd restart
Thats about it. Now check using phpinfo if the newly compiled php works.
regards,
-- Santosh
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php