Installing NginX as Frontend to Apache for ISPCP [Part 1]

Posted: พฤษภาคม 29, 2011 in ไม่มีหมวดหมู่

Part1 – Installing Nginx with upload modult from source

ในส่วนนี้เป็นการติดตั้ง nginx

1. just init script we need

apt-get install nginx
apt-get remove nginx

2. download upload-module from http://www.grid.net.ru/nginx/upload.en.html

wget http://www.grid.net.ru/nginx/download/nginx_upload_module-2.0.12.tar.gz
tar xvfz nginx_upload_module-2.0.12.tar.gz
mv nginx_upload_module-2.0.12 /usr/src/

3. download nginx

wget http://nginx.org/download/nginx-1.0.3.tar.gz
tar xvfz nginx-1.0.3.tar.gz
cd nginx-1.0.3

4. configure and install

./configure –sbin-path=/usr/sbin –conf-path=/etc/nginx/nginx.conf –with-http_gzip_static_module –group=www-data –user=www-data –pid-path=/var/run/nginx.pid –with-http_stub_status_module –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log

make -j8  (j = number of core)
make install

5. create nginx user

adduser –system –no-create-home –disabled-login –disabled-password –group nginx

Reference
http://www.punteney.com/writes/setting-django-slicehost-ubuntu-hardy-postgres-apa/

http://library.linode.com/web-servers/nginx/installation/ubuntu-9.10-karmic

Advertisements

ใส่ความเห็น

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / เปลี่ยนแปลง )

Twitter picture

You are commenting using your Twitter account. Log Out / เปลี่ยนแปลง )

Facebook photo

You are commenting using your Facebook account. Log Out / เปลี่ยนแปลง )

Google+ photo

You are commenting using your Google+ account. Log Out / เปลี่ยนแปลง )

Connecting to %s