ERROR: The PHP binary coming with ISPConfig does not work properly on your system!

Discussion in 'Installation/Configuration' started by asyadiqin, Jul 29, 2006.

  1. asyadiqin

    asyadiqin New Member

    I received the following error while installing ISPConfig.

    Code:
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x57): In function `my_compress_alloc':
    : undefined reference to `compress'
    /usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x143): In function `my_uncompress':
    : undefined reference to `uncompress'
    collect2: ld returned 1 exit status
    make: *** [sapi/cli/php] Error 1
    ERROR: Could not make PHP
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': No such file or directory
    tar: spamassassin.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `spamassassin': No such file or directory
    tar: uudeview.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `uudeview': No such file or directory
    tar: clamav.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `clamav': No such file or directory
    tar: aps.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    ./setup2: line 816: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
    
    What went wrong? Anyone help is appreciated.

    FYI, I am installing ISPConfig on a freshly installed CentOS 4.3.
     
    Last edited: Jul 29, 2006
  2. falko

    falko Super Moderator Howtoforge Staff

  3. asyadiqin

    asyadiqin New Member

    I've managed to sort it out. FYI, I did follow the tutorial.

    However, instead of using the installed MySQL, ie. ver. 4.XX, I installed MySQL server and MySQL-Max 5.0.22, as well as a newer version of PHP. The errors that I posted was apparently due to some missing header, though I did not know whether its MySQL or PHP.

    Once I managed to start Apache2 without any errors, and able to view MySQL info in phpinfo page, the ISPConfig installation works like clockwork without any errors.

    Currently, I am trying to find out how or where ISPConfig keep the templates for creating the VirtualHost for vhost_ispconfig.conf, as I need to modify it to add some cronolog and awstats, as well as skel for domains added using ISPConfig.

    Any ideas? BTW, thanks for replying to my post.

    Regards,

    A. Syadiqin
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    ISPConfig uses already cronolog to write the logfiles and split them for every website nightly. Cronolog in the vhosts makes your system scale very badly.

    The vohost file is written by the script /root/ispconfig/scripts/lib/config.lib.php, the function is named make_vhost
     
  5. exide

    exide New Member

    I have the same problem. I'm running fedoracore 5 and i installed it with the tutorial.

    how do i fix this?
     
  6. asyadiqin

    asyadiqin New Member

    Exide, what is the problem that you have? Try post the error so that someone can help you.
     
  7. rmarini

    rmarini New Member

    In relation to this, I have encountered the same error during my installation.
    Code:
    make[1]: Leaving directory `/home/rmarini/install_ispconfig/compile_aps/zip-2.3'
    cc -c -O -I.  unzip.c
    cc -c -O -I.  crc32.c
    cc -c -O -I.  crctab.c
    cc -c -O -I.  crypt.c
    cc -c -O -I.  envargs.c
    cc -c -O -I.  explode.c
    cc -c -O -I.  extract.c
    cc -c -O -I.  fileio.c
    cc -c -O -I.  globals.c
    cc -c -O -I.  inflate.c
    cc -c -O -I.  list.c
    cc -c -O -I.  match.c
    cc -c -O -I.  process.c
    cc -c -O -I.  ttyio.c
    cc -c -O -I.  unreduce.c
    cc -c -O -I.  unshrink.c
    cc -c -O -I.  zipinfo.c
    cc -c -O -I.  unix/unix.c
    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
    cc -c -O -I.  funzip.c
    ln crypt.c cryptf.c
    cc -c -O -I.  -DFUNZIP cryptf.c
    rm -f cryptf.c
    ln globals.c globalsf.c
    cc -c -O -I.  -DFUNZIP globalsf.c
    rm -f globalsf.c
    ln inflate.c inflatef.c
    cc -c -O -I.  -DFUNZIP inflatef.c
    rm -f inflatef.c
    ln ttyio.c ttyiof.c
    cc -c -O -I.  -DFUNZIP ttyiof.c
    rm -f ttyiof.c
    cc -o funzip funzip.o crc32.o cryptf.o globalsf.o inflatef.o ttyiof.o -s
    ln unzip.c unzipsfx.c
    cc -c -O -I.  -DSFX unzipsfx.c
    rm -f unzipsfx.c
    ln crctab.c crctab_.c
    cc -c -O -I.  -DSFX crctab_.c
    rm -f crctab_.c
    ln crypt.c crypt_.c
    cc -c -O -I.  -DSFX crypt_.c
    rm -f crypt_.c
    ln extract.c extract_.c
    cc -c -O -I.  -DSFX extract_.c
    rm -f extract_.c
    ln fileio.c fileio_.c
    cc -c -O -I.  -DSFX fileio_.c
    rm -f fileio_.c
    ln globals.c globals_.c
    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 816: 23463 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!
    
     
  8. exide

    exide New Member

    Code:
    creating cache ./config.cache
    checking for Cygwin environment... no
    checking for mingw32 environment... no
    checking for egrep... grep -E
    checking for a sed that does not truncate output... /bin/sed
    checking host system type... i686-pc-linux-gnu
    checking target system type... i686-pc-linux-gnu
    checking for gcc... gcc
    checking whether the C compiler (gcc  ) works... yes
    checking whether the C compiler (gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether gcc accepts -g... yes
    checking whether gcc and cc understand -c and -o together... yes
    checking how to run the C preprocessor... gcc -E
    checking for AIX... no
    checking whether ln -s works... yes
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking for re2c... re2c
    checking for re2c version... 0.10.3 (ok)
    checking for gawk... gawk
    checking for bison... no
    checking for byacc... no
    checking for bison version... invalid
    configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 (found: none).
    checking for flex... lex
    checking for yywrap in -ll... no
    checking lex output file root... ./configure: line 3246: lex: command not found
    configure: error: cannot find output from lex; giving up
    ERROR: Could not configure PHP
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': No such file or directory
    tar: spamassassin.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `spamassassin': No such file or directory
    tar: uudeview.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `uudeview': No such file or directory
    tar: clamav.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `clamav': No such file or directory
    tar: aps.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    ./setup2: line 816: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
    [root@server2 install_ispconfig]#
    
     
    Last edited: Aug 5, 2006
  9. rmarini

    rmarini New Member

    I have uploaded a complete log of my ispconfig install process and any errors that it may have generated as a consequence to

    http://www.starbase98.com/ispconfiglog.txt

    Any assistance in figuring out what is going on would be very much appreciated. I followed the how-to for the perfect set up quite closely, the only package that caused a problem for me was php4-imap which seems to have a broken dependancy - I don't think that could be the cause of this, however.
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Flex is missing on your system. I guess you didn't make the correct package selection when you followed the tutorial. Install it like this:
    Code:
    yum install flex
     
  11. falko

    falko Super Moderator Howtoforge Staff

    You have a segmentation fault there. This could indicate a problem with your hardware. Which distribution do you use?
     
  12. rmarini

    rmarini New Member

    Its debian sarge - amd athlon 2200, 1gb ram, 80gb hd. The box is hosted by serverbeach.
     
  13. exide

    exide New Member

    Ok, it worked, bud now ive got a second error:

    Code:
    Configuring extensions
    checking whether to enable LIBXML support... no
    checking libxml2 install dir... no
    checking for OpenSSL support... yes
    checking for Kerberos support... no
    checking for pkg-config... /usr/bin/pkg-config
    checking for OpenSSL version... >= 0.9.6
    checking for CRYPTO_free in -lcrypto... yes
    checking for SSL_CTX_set_ssl_version in -lssl... yes
    checking for PCRE support... yes
    checking for ZLIB support... no
    checking if the location of ZLIB install directory is defined... no
    checking whether to enable bc style precision math functions... no
    checking for BZip2 support... no
    checking whether to enable calendar conversion support... no
    checking whether to enable ctype functions... yes
    checking for CURL support... no
    checking if we should use CURL for url streams... no
    checking size of long... (cached) 4
    checking size of int... (cached) 4
    checking for int32_t... yes
    checking for uint32_t... yes
    checking for sys/types.h... (cached) yes
    checking for inttypes.h... (cached) yes
    checking for stdint.h... (cached) yes
    checking for string.h... (cached) yes
    checking for stdlib.h... (cached) yes
    checking for strtoll... yes
    checking for atoll... yes
    checking for strftime... (cached) yes
    checking whether to enable DBA... no
    checking for QDBM support... no
    checking for GDBM support... no
    checking for NDBM support... no
    checking for Berkeley DB4 support... no
    checking for Berkeley DB3 support... no
    checking for Berkeley DB2 support... no
    checking for DB1 support... no
    checking for DBM support... no
    checking for CDB support... no
    checking for INI File support... no
    checking for FlatFile support... no
    checking whether to enable DBA interface... no
    checking whether to enable dbase support... no
    checking whether to enable DOM support... no
    checking whether to enable EXIF (metadata from images) support... no
    checking for FrontBase SQL92 (fbsql) support... no
    checking for FDF support... no
    checking whether to enable the bundled filePro support... no
    checking whether to enable FTP support... yes
    checking OpenSSL dir for FTP... no
    checking for OpenSSL version... >= 0.9.6
    checking for CRYPTO_free in -lcrypto... (cached) yes
    checking for SSL_CTX_set_ssl_version in -lssl... (cached) yes
    checking for GD support... no
    checking for the location of libjpeg... no
    checking for the location of libpng... no
    checking for the location of libXpm... no
    checking for FreeType 1.x support... no
    checking for FreeType 2... no
    checking for T1lib support... no
    checking whether to enable truetype string function in GD... no
    checking whether to enable JIS-mapped Japanese font support in GD... no
    checking for GNU gettext support... no
    checking for GNU MP support... no
    checking whether to enable hash support... yes
    checking whether byte ordering is bigendian... (cached) no
    checking size of short... 2
    checking size of int... (cached) 4
    checking size of long... (cached) 4
    checking size of long long... (cached) 8
    checking for hwapi support... no
    checking for iconv support... yes
    checking for iconv... yes
    checking if iconv is glibc's... yes
    checking if iconv supports errno... yes
    checking if your cpp allows macro usage in include lines... yes
    checking for IMAP support... no
    checking for IMAP Kerberos support... no
    checking for IMAP SSL support... no
    checking for Informix support... no
    checking for InterBase support... no
    checking for LDAP support... no
    checking for LDAP Cyrus SASL support... no
    checking whether to enable multibyte string support... yes
    checking whether to enable multibyte regex support... yes
    checking for external libmbfl... no
    checking for variable length prototypes and stdarg.h... yes
    checking for stdlib.h... (cached) yes
    checking for string.h... (cached) yes
    checking for strings.h... yes
    checking for unistd.h... (cached) yes
    checking for sys/time.h... (cached) yes
    checking for sys/times.h... yes
    checking size of int... (cached) 4
    checking size of short... (cached) 2
    checking size of long... (cached) 4
    checking for working const... (cached) yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for working alloca.h... (cached) yes
    checking for alloca... (cached) yes
    checking for 8-bit clean memcmp... yes
    checking for mcrypt support... no
    checking for mhash support... no
    checking whether to include mime_magic support... no
    checking for MING support... no
    checking for mSQL support... no
    checking for MSSQL support via FreeTDS... no
    checking for MySQL support... yes
    checking for specified location of the MySQL UNIX socket... no
    checking for MySQL UNIX socket location... no
    configure: error: Cannot find MySQL header files under /usr.
    Note that the MySQL client library is not bundled anymore!
    ERROR: Could not configure PHP
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': No such file or directory
    tar: spamassassin.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `spamassassin': No such file or directory
    tar: uudeview.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `uudeview': No such file or directory
    tar: clamav.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `clamav': No such file or directory
    tar: aps.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    ./setup2: line 816: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
    [root@server2 install_ispconfig]#
    
     
  14. rmarini

    rmarini New Member

    Have you installed all necessary build tools (flex, make, gcc)? I think the build-essentials package installs everything you need, i've not used it on anything but ubuntu though.
     
  15. asyadiqin

    asyadiqin New Member

    From what I can see, you are missing some MySQL headers as well. Have you installed mysql-server, mysql-devel, etc... From my past experience in similar installation problem, it was merely missing some MySQL header, which was resolved when I install/re-installed the MySQL package, ie. yum install mysql, mysql-server, mysql-devel

    Refer to your distro installation guide for reference -> http://www.howtoforge.com/book/print/118

    Hope that helps.
     
    Last edited: Aug 6, 2006
  16. exide

    exide New Member

    Now installing mysql-devil & mysql-server
     
    Last edited: Aug 6, 2006
  17. asyadiqin

    asyadiqin New Member

    Hi,

    As in my installation, everything was working fine as well, eg. apache2, mysql, php, etc.... but still ISPConfig installation failed.

    The problem here is could be simply because of the missing headers, ISPConfig could not compile apache, php, etc... which is why I think you might want to double-check your mysql files, eg. mysql-devel.

    There could be other possible reasons but in my case, re-installing the mysql package solved the issues.

    Hope that helps.
     
  18. rmarini

    rmarini New Member

    that had no effect on mine :(
     
  19. rmarini

    rmarini New Member

    after running a memtest on the machine, i discovered that the problem did indeed result from a hardware issue. with the ram replaced ispconfig is now installed.

    thanks :-D
     
  20. exide

    exide New Member

    i will try this first ;)
     

Share This Page