XHProf: Facebook’s PHP profiler – ERROR: ‘phpize’ failed
pecl install xhprof
downloading xhprof-0.9.2.tgz ...
Starting to download xhprof-0.9.2.tgz (931,660 bytes)
......................................done: 931,660 bytes
11 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module
ERROR: `phpize' failed
Solution: use tarball source install -> http://pecl.php.net/package/xhprof
/tmp/pecl/xhprof-0.9.2/extension/#
phpize
./configure --with-php-config=./configure --with-php-config=/usr/local/bin/php-config
make
make install
Tíz technológia amit mindenképp ismerned kell
1, OOP PHP
2, FreeBSD
3, SQL (MySQL, Postgresql)
4, Memcached
5, ZFS
6, HTTP (apache, lightthpd)
7, Smarty
9, PEAR
10, SVN, (git, cvs)
CPU does not support long mode freebsd install error
error: CPU does not support long mode
solution: use 32bit install kit.
Failed system call was shmget postgresql freebsd
DETAIL: Failed system call was shmget(key=xxx, size=xxx, xxx).
HINT: This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently xxxxxx bytes), reduce PostgreSQL's shared_buffers parameter (currently xxxxx) and/or its max_connections parameter (currently xxx).
If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for.
The PostgreSQL documentation contains more information about shared memory configuration.
solution: raise semaphores number
$ sysctl -w kern.ipc.shmall=32768 $ sysctl -w kern.ipc.shmmax=134217728 $ sysctl -w kern.ipc.semmap=256
more info
edit sysctl.conf:kernel.shmall = xxxx kernel.shmmax = xxxx
how to start memcached?
/usr/local/bin/memcached -l 127.0.0.1 -m 200 -p 11211 -u nobody &
- m 200 = 200MB
- l 127.0.0.1 = memcached server on localhost.
-l xxx.xxx.xxx.xxx = memcached server on xxx.xxx.xxx.xxx ip address, like 192.168.0.100
colored bash prompt
.bash_profile-> export PS1="[[e[31;1m]u[e[0m]@[e[32;1m]h[e[0m]:[e[37;1m]w/[e[0m]]# [e[0m]"