#1  
Old 4th January 2007, 20:08
Babazoid Babazoid is offline
Junior Member
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Installing on a VPS...

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 by Babazoid; 4th January 2007 at 23:11.
Reply With Quote
Sponsored Links
  #2  
Old 4th January 2007, 20:11
mlz mlz is offline
Senior Member
 
Join Date: Dec 2006
Posts: 189
Thanks: 16
Thanked 9 Times in 9 Posts
Default

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...
Reply With Quote
  #3  
Old 4th January 2007, 20:22
Babazoid Babazoid is offline
Junior Member
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mlz
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...
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
Reply With Quote
  #4  
Old 5th January 2007, 16:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

You could shrink your existing partition(s) and then create a swap partition. I'll publish a tutorial about this topic on Sunday.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interface for installing SSL Intermediate Certificate LumpyOne Feature Requests 3 20th November 2006 20:28
errors on the end of the installing process tom Installation/Configuration 1 8th April 2006 01:56
Problem occurs after installing postfix into a VPS Guido64 Server Operation 3 27th March 2006 12:47
Lost all access to vps after install Median Installation/Configuration 6 22nd January 2006 10:37
error while installing..... securitywonks Installation/Configuration 1 23rd December 2005 12:07


All times are GMT +2. The time now is 12:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.