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

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

tar xvfz nginx_upload_module-2.0.12.tar.gz
mv nginx_upload_module-2.0.12 /usr/src/

3. download nginx

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/ –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




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

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

Google+ photo

You are commenting using your Google+ 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 /  เปลี่ยนแปลง )


Connecting to %s