PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : آموزش نصب Nginx بر روی Cpanel



reeza
March 31st, 2012, 14:58
روش اول


Nginx Admin version 1.8 (Stable) released.
The Nginx Admin WHM plugin v1.8 stable is released.

Change Log:
1- Added /tmp cleanup function in whm interface.

Please do the following to install!

Install instruction:
cd /usr/local/src
wget http://nginxcp.com/nginxadmin1.8-stable.tar
tar xf nginxadmin1.8-stable.tar
cd publicnginx
./nginxinstaller install

Note: This is mirror version so no need to uninstall old version for upgrade. Follow the below upgrade instructions.

Upgrade instruction is given below,

cd /usr/local/src
wget http://nginxcp.com/nginxadmin1.8-stable.tar
tar xf nginxadmin1.8-stable.tar
cd publicnginx
./cpwhm-install


-------

Nginx Admin (development version) v1.7 released
The Nginx Admin WHM plugin v1.7 (development Version) is released.

Change Log:
1- Based on latest Nginx development Version 0.9.3 (see http://nginx.org/en/CHANGES).

Please do the following to install!

Install instruction:
cd /usr/local/src
wget http://nginxcp.com/nginxadmin1.7-development.tar
tar xf nginxadmin1.7-development.tar
cd publicnginx
./nginxinstaller install

Note:If you have previously installed the any version of the nginx, please uninstall and then perform the installation. This development version not stable version.

Uninstall instruction is given below,

cd /usr/local/src
wget http://nginxcp.com/nginxadmin1.7-development.tar
tar xf nginxadmin1.7-development.tar
cd publicnginx
./nginxinstaller uninstall

-------

Nginx Admin version 1.7 (Stable) released.
The Nginx Admin WHM plugin v1.7 stable is released.

Change Log:
1- Based on Nginx v0.8.54 (see http://nginx.org/en/CHANGES-0.8).

Please do the following to install!

Install instruction:
cd /usr/local/src
wget http://nginxcp.com/nginxadmin1.7-stable.tar
tar xf nginxadmin1.7-stable.tar
cd publicnginx
./nginxinstaller install

Note:If you have previously installed the any version of the nginx, please uninstall and then perform the installation.

Uninstall instruction is given below,

cd /usr/local/src
wget http://nginxcp.com/nginxadmin1.7-stable.tar
tar xf nginxadmin1.7-stable.tar
cd publicnginx
./nginxinstaller uninstall










دوستان لطفا به هیچ وجه تاپیک نزنید آموزش ادامه داره ....ممنون

nesta
March 31st, 2012, 17:39
We are pleased to announce the release of Nginx Admin (Stable Version) v3.3.



cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./pythonfix


After that you can run installer as per bellow,
./nginxinstaller install

cd /usr/local/src/publicnginx
./nginxinstaller uninstall

reeza
March 31st, 2012, 21:43
روشی دیگر برای نصب

ابتدا با استفاده از دستور زیر httpd را Stop می کنیم .


service httpd stop

با دستور زیر یه صفایی به سرور بدید تا موارد مورد نیاز آپدیت بشه .

yum update

حالا کامپایلر gcc رو نصب کنید تا هنگان استفاده از configure به مشکل نخورید

yum install gcc
yum install gcc-c++


حالا با دستور زیر package های httpd-devel pcre perl pcre-devel zlib zlib-devel GeoIP GeoIP-devel را نصب میکنیم .


yum install -y httpd-devel pcre perl pcre-devel zlib zlib-devel GeoIP GeoIP-devel


نکته : قبل از اینکه بریم سراغ دانلود بقیه پکیج ها حتما با دستور cd وارد فولدر root/ بشید .
حالا در این مرحله3 تا پکیج pcre - zlib - openssl رو دانلود میکنیم .




wget ftp://ftp.csx.cam.ac.uk/pub/software...re-8.10.tar.gz
wget http://zlib.net/zlib-1.2.5.tar.gz
wget ftp://ftp.openssl.org/source/openssl-0.9.8o.tar.gz



حالا با دستور زیر extract میکنیم .



tar -xvf zlib-1.2.5.tar.gz
tar -xvf pcre-8.10.tar.gz
tar -xvf openssl-0.9.8o.tar.gz



حالا با دستورهای زیر هم nginx رو دانلود هم extract و هم وارد فولدر nginx می شویم .

wget http://nginx.org/download/nginx-0.7.67.tar.gz
tar -xvf nginx-0.7.67.tar.gz
cd nginx-0.7.67


حالا دستور زیر را کاملا وارد کنید و enter بزنید .


./configure --user=nginx --group=nginx --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-*****-temp-path=/var/lib/nginx/tmp/***** --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_stub_status_module --with-http_perl_module --with-mail --with-mail_ssl_module --with-cc-opt='-m32 -march=i386' --with-openssl=/root/openssl-0.9.8o --with-pcre --with-pcre=/root/pcre-8.10 --with-zlib=/root/zlib-1.2.5


حالا میتونید دستور make رو بزنید .


make



مرحله آخر دستور make install


make install




nginx رو start کنید .


service nginx start


هنوز ادامه داره لطفا تاپیک نزنید

reeza
April 1st, 2012, 01:58
نصب توسط Yum


کد:

# rpm -Uvh http://download.fedora.redhat.com/pu...5-4.noarch.rpm


کد:

yum install nginx



حالا نصب PHP5 و ماژول ها :


کد:

# yum install php-pear-Net-Socket php-pear php-common php-gd php-devel php php-mbstring php-pear-Mail php-cli php-imap php-snmp php-pdo php-xml php-pear-Auth-SASL php-ldap php-pear-Net-SMTP php-mysql



FAST Cgi


کد:

yum install spawn-fcgi




کد:

# wget http://malc0der.com/php_cgi.sh

# mv php_cgi.sh /etc/init.d/php_cgi

# chmod +x /etc/init.d/php_cgi



Start PHP :


کد:

# /etc/init.d/php_cgi start



Start Nginx:


کد:

# service nginx start



فایل کانفیگ NGINX:
/etc/nginx/nginx.conf

و کانفیگ SSL :

/etc/nginx/conf.d/ssl.conf

reeza
April 1st, 2012, 22:21
حذف Nginx


sh /etc/cpnginx/uninstall.sh

---
April 1st, 2012, 22:53
سلام در صورتی که توانایی تحلیل ان جین اکس رو دارید لطفا directive های فایل پیکربندی رو به صورت کامل توضیح بدید


با تشکر

reeza
April 2nd, 2012, 12:40
2 سایت اموزشی در این مورد
http://www.cyberciti.biz/faq/rhel-fedora...ginx-php5/ (http://www.cyberciti.biz/faq/rhel-fedora-install-configure-nginx-php5/)
http://www.howtoforge.com/installing-ngi...dora-13-p2 (http://www.howtoforge.com/installing-nginx-with-php5-and-mysql-support-on-fedora-13-p2)


حذف nginx



cd /usr/local/src
wget http://nginxcp.com/nginxadmin1.8-stable.tar
tar xf nginxadmin1.8-stable.tar
cd publicnginx
./nginxinstaller uninstall


رفع مشکل اپدیت پایتون



cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./pythonfix
After that you can run installer as per bellow,
./nginxinstaller install

mr.ahmad
May 3rd, 2013, 11:04
سلام خدمت اساتید گرامی من انجینیکس نصب کردم با اموزشی که شما گذاشتید الان تمام سایت هام اینظوری شدن اگر میشه راهنمای کنید

502 Bad Gatewaynginx

beniii
May 5th, 2013, 19:43
Install cPanel Nginx — Cpnginx 6.0 documentation (http://docs.cpnginx.com/install/)
cPnginx : cPanel Nginx plugin - Turbo boost your cPanel server with high stability (http://cpnginx.com/)

msmhost.net
May 7th, 2013, 12:56
با سلام ممنونم از آموزشتون اقا reeza (http://www.webhostingtalk.ir/member/22960/) خیلی به من کمک کرد

barbod
May 16th, 2013, 23:49
دستور سوييچ nginx به آپاچي و بلعكس چيه؟

---
May 17th, 2013, 02:14
دستور سوييچ nginx به آپاچي و بلعكس چيه؟
اگر از انجین ایکس به عنوان وب سرور استفاده میکنید آپاچی رو میتونید کامل پاک کنید و روی پورت 80 انجین ایکس ران کنید .
برای تبدیل ویرچوآل هاست ها یه سری اسکریپت هست باید سرچ کنید