PDA

View Full Version : Segmentation fault whilst installing PHP


Mr Blek
26th June 2006, 20:33
Hi,

I've tried to install ISPConfig several times on SUSE 10.0, but at each point I get the following error:


eval make -f unix/Makefile zips `cat flags`
make[1]: Entering directory `/tmp/install/install_ispconfig/compile_aps/zip-2.3'
cc -o zip -s zip.o zipfile.o zipup.o fileio.o util.o globals.o crypt.o ttyio.o unix.o crc32.o crctab.o deflate.o trees.o match.o crc_i386.o
fileio.o: In function `tempname':
fileio.c:(.text+0x79e): warning: the use of `mktemp' is dangerous, better use `mkstemp'
make[1]: Leaving directory `/tmp/install/install_ispconfig/compile_aps/zip-2.3'
cc -o unzip unzip.o crc32.o crctab.o crypt.o envargs.o explode.o extract.o fileio.o globals.o inflate.o list.o match.o process.o ttyio.o unreduce.o unshrink.o zipinfo.o unix.o -s
mv: cannot overwrite directory `ispconfig/tools/spamassassin/spamassassin'
mv: cannot overwrite directory `ispconfig/tools/uudeview/uudeview'
mv: cannot overwrite directory `ispconfig/tools/clamav/clamav'
./setup2: line 794: 13278 Segmentation fault ispconfig_tmp/php/bin/php -n -q check.php
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!


I've even tried rebooting the system. As anyone any ideas what could be wrong?

Cheers

Mr Blek

falko
27th June 2006, 13:22
Did you try to install more than once from the same directory? This doesn't work. If an installation attempt fails, delete the current install_ispconfig directory and unpack the ISPConfig tar.gz again.

Mr Blek
27th June 2006, 14:16
Did you try to install more than once from the same directory? This doesn't work. If an installation attempt fails, delete the current install_ispconfig directory and unpack the ISPConfig tar.gz again.

Each time I installed I deleted the install_ispconfig dir and unpacked ISPConfig.tar.gz again

I also deleted the isp dir under /home

Mr Blek
27th June 2006, 14:38
Each time I installed I deleted the install_ispconfig dir and unpacked ISPConfig.tar.gz again

I also deleted the isp dir under /home


OK, maybe I wasn't clearing the directories properly. I just did a delete of all directories and a shutdown -r now

I still get the same problem:


cc -c -O -I. -DSFX globals_.c
rm -f globals_.c
ln inflate.c inflate_.c
cc -c -O -I. -DSFX inflate_.c
rm -f inflate_.c
ln match.c match_.c
cc -c -O -I. -DSFX match_.c
rm -f match_.c
ln process.c process_.c
cc -c -O -I. -DSFX process_.c
rm -f process_.c
ln ttyio.c ttyio_.c
cc -c -O -I. -DSFX ttyio_.c
rm -f ttyio_.c
ln unix/unix.c unix_.c
cc -c -O -I. -DSFX unix_.c
rm -f unix_.c
cc -o unzipsfx unzipsfx.o crc32.o crctab_.o crypt_.o extract_.o fileio_.o globals_.o inflate_.o match_.o process_.o ttyio_.o unix_.o -s
./setup2: line 794: 21548 Segmentation fault ispconfig_tmp/php/bin/php -n -q check.php
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!

falko
28th June 2006, 11:03
Which ISPConfig version is it?
What's the output of uname -m?

Mr Blek
28th June 2006, 14:53
It's ISPConfig v 2.2.3

The output of uname -m is i686

Mr Blek
28th June 2006, 22:10
I just installed php 5.1.4 and ran the command on line 794 from the setup2 script:


php -n -q check.php


It created the php_check file fine.

So why would the compile under ISPConfig cause a segmentation fault and the other work fine?

Cheers

Mr Blek
29th June 2006, 12:53
I upgraded to SUSE 10.1 and the same happens. Any ideas anyone?

falko
29th June 2006, 14:00
You could try to update zlib to the latest version before you install ISPConfig. But I'm not sure if this is related to your problem... :confused: