Add
{code} {code} == == * * _ _ [] * #

virtual memory exhausted: Cannot allocate memory

2012-10-24 00:59:06
virtual memory exhausted: Cannot allocate memory
export CFLAGS="-O0"
export MAKEOPTS="-j1"
export CXXFLAGS=$CFLAGS
./configure
make
Partially solved.
/bin/sh /usr/src/php-5.4.8/libtool --silent --preserve-dup-deps --mode=compile cc  -IZend/ -I/usr/src/php-5.4.8/Zend/ -DPHP_ATOM_INC -I/usr/src/php-5.4.8/include -I/usr/src/php-5.4.8/main -I/usr/src/php-5.4.8 -I/usr/src/php-5.4.8/ext/date/lib -I/usr/src/php-5.4.8/ext/ereg/regex -I/usr/local/include -I/usr/src/php-5.4.8/TSRM -I/usr/src/php-5.4.8/Zend    -I/usr/local/include -O0 -fvisibility=hidden  -c /usr/src/php-5.4.8/Zend/zend_execute.c -o Zend/zend_execute.lo

virtual memory exhausted: Cannot allocate memory

/usr/src/php-5.4.8/libtool: Cannot fork: Cannot allocate memory

*** Error code 2

Stop in /usr/src/php-5.4.8.

export CFLAGS='--param ggc-min-expand=0 --param ggc-min-heapsize=8192'
via http://www.lowendtalk.com/discussion/1300/php-fpm-on-vds6.net-freebsd Solved memory exhausting on VDS

FreeBSD kernel

2012-10-14 12:07:10

Zend_Config_Yaml bug

2012-09-11 13:46:25
http://framework.zend.com/issues/browse/ZF-12277
root@ika /usr/local/lib/php# diff -u Zend/Config/Yaml.php.old Zend/Config/Yaml.php
--- Zend/Config/Yaml.php.old	2012-09-11 17:45:05.000000000 +0400
+++ Zend/Config/Yaml.php	2012-09-11 17:43:40.000000000 +0400
@@ -375,6 +375,8 @@
             $value = true;
         } elseif (preg_match('/^(f(alse)?|off|n(o)?)$/i', $value)) {
             $value = false;
+        } elseif (strcasecmp('null', $value) == 0) {
+            $value = null;
         } elseif (!self::$_ignoreConstants) {
             // test for constants
             $value = self::_replaceConstants($value);

Mac OS X php problem

2012-09-11 09:47:31
Build php
php-5.4.5$ php -v
PHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 21 2012 15:30:55) 

php-5.4.5 $ sudo mv /usr/bin/php /usr/bin/php.bak
php-5.4.5 $ sudo mv /usr/bin/php-config /usr/bin/php-config.bak
php-5.4.5 $ sudo mv /usr/bin/phpize /usr/bin/phpize.bak

rehash path or relogin...

~$ php -v
PHP 5.4.5 (cli) (built: Sep 11 2012 13:37:19)

nginx build problem

2012-09-11 09:45:29
nginx$ make
ended with 
Undefined symbols for architecture x86_64: 
"_pcre_free_study", referenced from: 
_ngx_pcre_free_studies in ngx_regex.o 
ld: symbol(s) not found for architecture x86_64 

due to /usr/lib/libpcre.dylib is wrong version and linked before installed /usr/local/lib/libpcre.dylib 

pcre-8.31$ sudo make uninstall 

pcre-8.31$ ./configure --prefix=/usr

DHCP problem

2012-09-11 09:44:36
isc-dhcpd refuses to offer address configured as hostname if unable to resolve that zone, named died for unknown reason; reconfigured dhcpd, named revived, miracle!

Hosting

2012-08-28 10:31:13

ZF tool

2012-07-23 19:58:20
curl http://framework.zend.com/svn/framework/standard/trunk/bin/zf.php -o /usr/local/bin/zf
chmod a+x zf
vi zf
i#!/usr/local/bin/php<esc>:wq

FreeBSD Trim

2012-07-22 20:39:32
1. Boot into Single user mode
2. # tunefs -p /dev/ada0
3. # tunefs -t enable /dev/ada0
4. # exit

Git and sshd

2012-07-22 08:59:30
/etc/ssh/sshd_config:108:UseDNS no
git diff -cached
21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1