Jun 162011
 
text

Here is a quick howto for setting up nginx and php-fpm on a Debian 6 VPS. We will be using the dotdeb repository for this so a big thanks goes to the dotdeb guys for building such reliable Debian packages. This has been tested on a Debian 6 OpenVZ minimal template: First add the dotdeb repo to your sources.list file:

nano /etc/apt/sources.list

add this to the bottom of the file:

deb http://packages.dotdeb.org stable all

Next, add the GnuPG key to your distribution:

wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | sudo apt-key add -
rm dotdeb.gpg

Update APT:

apt-get update

Continue reading »

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 »