View Full Version : I get this error every time I try to build matching php
grniyce
03-26-2009, 11:57 PM
cc1: out of memory allocating 2036 bytes after a total of 70115328 bytes
make: *** [ext/date/lib/parse_date.lo] Error 1
**ERROR** Could not compile PHP
grniyce
03-27-2009, 10:28 AM
can someone please answer this for me? I cannot get litespeed installed and operational unless someone helps to define why it's not allowing me to build matching php.
I have since uninstalled litespeed completely, removed all files, and can start from scratch again.
mistwang
03-27-2009, 10:44 AM
try the following:
vi /usr/local/cpanel/whostmgr/docroot/cgi/lsws/php_build.template
:27
o
ulimit -m unlimited
ulimit -v unlimited
:wq
try build PHP again.
grniyce
03-27-2009, 10:56 AM
so i just login to ssh thru putty and paste each line one by one and then close the window? i'm not sure if that took. i'm sorry, i'm rather new to this. all i know is litespeed works a LOT better than crap-ache, and I'd like to be able to use it.
mistwang
03-27-2009, 12:54 PM
Yes, just copy paste. it should increase the memory limit.
grniyce
03-27-2009, 01:09 PM
I pasted the whole thing in putty thru ssh ya know, and then I went back in to WHM and selected to build matching php and got the exact same error... I pasted below a few details...
Main >> LiteSpeed Web Server Plugin for WHM
Build PHP Using Apache Configuration with LSAPI
Progress: Stopped due to Error
==============================================
Start building PHP 5.2.9 with LSAPI
==============================================
Fri Mar 27 15:06:01 CDT 2009
Changing to build directory /home/cpeasyapache/ls.src
Detected php build directory for cPanel /home/cpeasyapache/src/php-5.2.9
Same source code will be copied over
Query lastest LSAPI version: 4.9
php-litespeed-4.9.tgz already downloaded, use the saved copy
Extracting LSAPI archive: tar -xzf php-litespeed-4.9.tgz
Finished gathering all the source code
Generating configuration script
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
Running cvsclean for you.
To avoid this, install autoconf-2.13.
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.
aclocal.m4:2147: PHP_PROG_LEX is expanded from...
Configuring PHP build (2-3 minutes)
loading cache ./config.cache
cc1: out of memory allocating 2036 bytes after a total of 70225920 bytes
make: *** [ext/date/lib/parse_date.lo] Error 1
**ERROR** Could not compile PHP
Go back
mistwang
03-27-2009, 01:23 PM
PM me a temp root login, I can take a look.
grniyce
03-27-2009, 01:39 PM
ok I sent you the info, thanks for whatever you can do
mistwang
03-27-2009, 02:12 PM
It works now.
grniyce
03-27-2009, 02:38 PM
Excellent, it does work now. One last question... ---> Do you have any idea what these errors mean? They don't go away, and only show in LSWS Admin.
Found last 10 warning/error messages in the log: More
Time Level Message
2009-03-27 16:35:26.150 ERROR [config] \: pre-mature end of line.
2009-03-27 16:35:26.150 ERROR [config] rewrite: unknown server variable while parsing: XML:/*
2009-03-27 16:35:26.150 ERROR [config] rewrite: unknown server variable while parsing: XML:/*
2009-03-27 16:35:26.150 ERROR [config] \: pre-mature end of line.
2009-03-27 16:35:26.150 ERROR [config] rewrite: unknown server variable while parsing: XML:/*
2009-03-27 16:35:26.150 ERROR [config] \: pre-mature end of line.
2009-03-27 16:35:26.150 ERROR [config] rewrite: unknown server variable while parsing: XML:/*
2009-03-27 16:35:26.150 ERROR [config] rewrite: unknown server variable while parsing: XML:/*
2009-03-27 16:35:26.150 ERROR [config] \: pre-mature end of line.
2009-03-27 16:35:26.150 ERROR [config] rewrite: unknown server variable while parsing: XML:/*