May 202011
 
text

ขั้นตอนการทำให้ Directadim ของเราทำตามแนวคิดที่ว่ามานี้ ก่อนอื่นเรามาเพิ่มประสิทธิภาพของ Apache กับ PHP ด้วย Fcgi กันก่อน ไปที่ blog คุณ Icez ตาม link นี้ http://www.icez.net/…gid-php-fastcgi (หากไม่ใช้ fcgi ก็ไม่ต้องติดตั้งก็ได้ครับ) เอาหละถ้าใครทำเสร็จแล้วเราก็มาต่อกันเลย (อันนี้ผมทำใน Debian นะครับพอดีผมไม่ได้เล่น centos ใครใช้ centos วิธีการคงไม่ต่างกันมาก) ก่อนอื่นสั่งติดตั้ง NGINX ก่อนด้วย

aptitude install nginx

centos ใช้

yum install nginx

จากนั้นแก้ไขไฟล์ config nano /etc/nginx/nginx.conf

 

Continue reading »

May 172011
 
text

1.Install autoconf:

apt-get install autoconf

2.Install APC using PECL:

pecl install apc

3.After install process we have messages like this:

Build process completed successfully
Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/apc.so'
install ok: channel://pecl.php.net/APC-3.0.19
configuration option "php_ini" is not set to php.ini location
You should add "extension=apc.so" to php.ini

Continue reading »

May 162011
 
text

Since there are alot of people asking for it, here is my HowTo about mod_ruid2 This is based on my Debian server with Apache 2.x. Installing this module its no longer needed to chmod config files to 666 or upload/attachments directories to 777. Since with this module enabled everything @ HTTP will run under the user itself and not 'apache' anymore. ** If you are using mod_ruid instead of mod_ruid2, first of all remove the mod_ruid line from '/etc/httpd/conf/httpd.conf' First, we are going to install libcap-devel
For Debian

apt-get nstall libcap-dev

For CentOS

yum -y install libcap-devel

After this is done we are going to download and install mod_ruid2

wget http://dave.t0xic.nl/tars/mod_ruid2-0.9.3.tar.bz2
tar xjf mod_ruid2-0.9.3.tar.bz2
cd mod_ruid2-0.9.3
apxs -a -i -l cap -c mod_ruid2.c

Continue reading »