Store Session with Memcached in Magento
app/etc/local.xml : [codesyntax lang="xml"] <config> <global> <session_save><![CDATA[memcache]]></session_save> <session_save_path><![CDATA[tcp://127.0.0.1:11211?persistent=1&weight=2&timeout=10&retry… Continue reading
Linux C hello world
1. vi functions.c [codesyntax lang="c"] #include <stdio.h> void hello_world(void) { printf("hello world!!\n"); } [/codesyntax] 2. vi hello.c [codesyntax lang="c"] #include <stdio.h> #include <stdlib.h… Continue reading
My Linux files/dirs Distribution
Here is my linux files/dirs distribution. Main purpose is to easily centralized data maintenance. Company abc's directory /data/abc/ All web applications /data/abc/vhosts/ All the packages and depende… Continue reading
Install Webbench
1. Install [codesyntax lang="bash"] $ wget http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz $ mkdir /usr/local/man $ tar zxvf webbench-1.5.tar.gz $ cd webbench-1.5 $ make && make install… Continue reading
Encode PHP by ionCube
1. Environment : PHP 5.2.14 PHP-FPM 0.5.14 2. Encode with ionCube : Download(purchase or try free trial) ionCube encoder from http://www.ioncube.com/ [codesyntax lang="bash"] $ cd /data/soft_misc/ $ t… Continue reading
Sync Up the Repository by Rsync
rsync server : 192.168.0.132 rsync client : 192.168.0.133 1. Check and Install rsync : [codesyntax lang="bash"] $ rpm -q rsync $ yum install rsync [/codesyntax] or download and install from http://rsy… Continue reading
Install yum on RHEL5
1. Delete the default yum : [codesyntax lang="bash" lines="no" container="pre" tab_width="4"] $ rpm -aq | grep yum | xargs rpm -e --nodeps [/codesyntax] 2. Install yum of from http://mirrors.163.com/c… Continue reading
Install eAccelerator for PHP
1. Environment : PHP 5.2.14 : /usr/local/webserver/php PHP-FPM 0.5.14 : /usr/local/webserver/php/etc/php-fpm.conf eAccelerator 0.9.6.1 : /data/soft_misc/eaccelerator-0.9.6.1.tar.bz2 2. Install eAccele… Continue reading
Mini Login Form in Magento Home Page
1. Find and modify cms_index_index tag within /layout/cms.xml : [codesyntax lang="xml" lines="no" container="pre" tab_width="4"] <cms_index_index translate="label"> <label>CMS Home Page</label> <refer… Continue reading
Use SMTP with Telnet
Test local SMTP : [codesyntax lang="bash" lines="no" container="pre" tab_width="4"] $ telnet localhost 25 $ helo localhost $ mail from:xx@abc.com $ rcpt to:xqpmjh@gmail.com $ data $ subject:and i love… Continue reading
Subversion Post Commit Hook
1. Create post-commit hook [codesyntax lang="bash" lines="no" container="pre" tab_width="4"] $ cd /data/svndata/hooks $ cp post-commit.tmpl post-commit $ chown kim:kim post-commit $ chmod a+x post-com… Continue reading