[ISPconfig Install] Cannot allocate memory

Discussion in 'Installation/Configuration' started by Cordoban, Aug 24, 2006.

  1. Cordoban

    Cordoban New Member

    Hello.

    I tried to install ISPconfig on a vserver today.
    First i installed a minimum base system, then i followed the Perfect Setup Howto for a Debian 3.1 system.
    All okay till here.

    Now i tried to setup ISPconfig. At compilation of PHP 5 i got following error:

    Code:
    /bin/sh /root/install_ispconfig/compile_aps/php-5.1.4/libtool --silent --preserve-dup-deps --mode=compile gcc  -IZend/ -I/root/install_ispconfig/compile_aps/php-5.1.4/Zend/ -DPHP_ATOM_INC -I/root/install_ispconfig/compile_aps/php-5.1.4/include -I/root/install_ispconfig/compile_aps/php-5.1.4/main -I/root/install_ispconfig/compile_aps/php-5.1.4 -I/root/ispconfig/openssl/include -I/root/install_ispconfig/compile_aps/php-5.1.4/ext/date/lib -I/root/install_ispconfig/compile_aps/php-5.1.4/ext/mbstring/oniguruma -I/root/install_ispconfig/compile_aps/php-5.1.4/ext/mbstring/libmbfl -I/root/install_ispconfig/compile_aps/php-5.1.4/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/root/install_ispconfig/compile_aps/php-5.1.4/TSRM -I/root/install_ispconfig/compile_aps/php-5.1.4/Zend    -I/usr/include -g -O2  -prefer-non-pic -c /root/install_ispconfig/compile_aps/php-5.1.4/Zend/zend_execute.c -o Zend/zend_execute.lo
    virtual memory exhausted: Cannot allocate memory
    make: *** [Zend/zend_execute.lo] Error 1
    ERROR: Could not make PHP
    cd: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    cd: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/unzip': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: 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
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `spamassassin': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: 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
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `uudeview': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: 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
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `clamav': No such file or directory
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: 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
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    ERROR: Das mitgelieferte PHP-Binary funktioniert auf Ihrem System nicht! Die Installation bricht hier ab!
    job-working-directory: could not get current directory: getcwd: cannot access parent directories: No such file or directory
    
    OS : Debian 3.1
    Kernel : 2.6.8-022stab078.9-enterprise
    Machine : i686

    I tried to find a solution with google. One solution was to create an extra swap file but this fails with an error "swapon: /tmp/swapfile: Operation not permitted".
    Other suggestion was to chance the compile script, so that php is compiled with --with-low-memory option. Even not successful.

    Maybe some other hints? Or are there precompiled packages for debian?
     
  2. Weekend

    Weekend New Member

    i have this problem too.

    PHP:
    virtual memory exhaustedCannot allocate memory
    make
    : *** [ext/date/lib/parse_date.loError 1
    ERROR
    Could not make PHP
    cd
    error retrieving current directorygetcwdcannot 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.gzCannot openNo such file or directory
    tar
    Error is not recoverableexiting 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.gzCannot openNo such file or directory
    tar
    Error is not recoverableexiting now
    tar
    Child returned status 2
    tar
    Error exit delayed from previous errors
    ./setup2line 816ispconfig_tmp/php/bin/phpNo such file or directory
    ERROR
    The PHP binary coming with ISPConfig does not work properly on your syste
    m
    The installation routine stops here!
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    It seems that your vserver does not allow you to allocate enough memory to compile PHP. You have to talk with your hosting provider if they can set your memory limit to a higher value.
     
  4. Cordoban

    Cordoban New Member

    Just resolved my Problem.

    For all others with the same problem, try to stop all daemons except the ssh (so you can administrate your server) and recompile.

    In my case that was the solution.

    Now i am on my way to the ISPConfig Community *grin*
     

Share This Page