Installing on a VPS...

Discussion in 'Installation/Configuration' started by Babazoid, Jan 4, 2007.

  1. Babazoid

    Babazoid New Member

    Hey guys, I have a VPS that has only 256MB of ram allocated to it.

    I want to do some testing with ISPConfig just for my own personal use, but I can't get it to install because the PHP compile keeps dying due to a shortage of memory (there is no swap on my VPS).

    I decided to use distcc to compile it and it almost works... I've opened the /compile_aps/compile file and added CC=distcc in front of the ./configure statement for PHP. It works fine, takes a while -- but seems to work, and then near the end of the compile it dies again, I'm guessing trying to compile something on the localhost.

    I'll get up the error text ASAP, but I thought someone that has tried this might be able to give me some advice in the meantime.

    This is the last thing my remote distcc box says before the compile craps out...
    Code:
    Jan  4 13:48:37 skybox distccd[8270]: cc /root/install_ispconfig/compile_aps/php-5.2.0/Zend/zend_execute.c on localhost completed ok
    Jan  4 13:48:37 skybox distccd[8270]: job complete
    
    Here is what the compile spits out when it dies:
    Code:
    /bin/sh /root/install_ispconfig/compile_aps/php-5.2.0/libtool --silent --preserve-dup-deps --mode=link distcc -export-dynamic -I/usr/include -g -O2  -L/root/ispconfig/openssl/lib  -R /root/ispconfig/openssl/lib ext/openssl/openssl.lo ext/openssl/xp_ssl.lo ext/pcre/pcrelib/pcre_chartables.lo ext/pcre/pcrelib/pcre_ucp_searchfuncs.lo ext/pcre/pcrelib/pcre_compile.lo ext/pcre/pcrelib/pcre_config.lo ext/pcre/pcrelib/pcre_exec.lo ext/pcre/pcrelib/pcre_fullinfo.lo ext/pcre/pcrelib/pcre_get.lo ext/pcre/pcrelib/pcre_globals.lo ext/pcre/pcrelib/pcre_info.lo ext/pcre/pcrelib/pcre_maketables.lo ext/pcre/pcrelib/pcre_ord2utf8.lo ext/pcre/pcrelib/pcre_refcount.lo ext/pcre/pcrelib/pcre_study.lo ext/pcre/pcrelib/pcre_tables.lo ext/pcre/pcrelib/pcre_try_flipped.lo ext/pcre/pcrelib/pcre_valid_utf8.lo ext/pcre/pcrelib/pcre_version.lo ext/pcre/pcrelib/pcre_xclass.lo ext/pcre/php_pcre.lo ext/ctype/ctype.lo ext/date/php_date.lo ext/date/lib/astro.lo ext/date/lib/dow.lo ext/date/lib/p... TONS MORE..
     Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_ts_hash.lo Zend/zend_stream.lo Zend/zend_iterators.lo Zend/zend_interfaces.lo Zend/zend_exceptions.lo Zend/zend_strtod.lo Zend/zend_objects.lo Zend/zend_object_handlers.lo Zend/zend_objects_API.lo Zend/zend_mm.lo Zend/zend_default_classes.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/php_cli_readline.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lcrypt -lcrypt -lrt -lmysqlclient -lssl -lcrypto -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcrypt -lcrypt  -o sapi/cli/php
    ext/pdo_sqlite/sqlite/src/.libs/date.o: file not recognized: Memory exhausted
    collect2: ld returned 1 exit status
    distcc[32714] ERROR: compile (null) on localhost failed
    make: *** [sapi/cli/php] Error 1
    make: *** Waiting for unfinished jobs....
    /usr/bin/ld: failed to set dynamic section sizes: Memory exhausted
    collect2: ld returned 1 exit status
    distcc[32668] ERROR: compile (null) on localhost failed
    make: *** [libphp5.la] Error 1
    ERROR: Could not make PHP
    
    Thanks
     
    Last edited: Jan 4, 2007
  2. mlz

    mlz Member

    Just a thought, setup a swap file (rather then partition) and use that for now. Not nearly as good as a swap partition but should work. Remember, that sucker is going to be dog slow with only 256mb memory...
     
  3. Babazoid

    Babazoid New Member

    They don't allow it, something about hogging resources on the box... It's an OpenVZ system... I have really just started experimenting with VPSs so I'm a bit of a n00b.

    thanks
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You could shrink your existing partition(s) and then create a swap partition. I'll publish a tutorial about this topic on Sunday.
     

Share This Page