Results 1 to 10 of 17
-
20th May 2011, 10:45 PM #1
OPMember
[TUT]How to install Nginx Web Server ~ Domenic Edition
Update any Pre-Installed Sofware :
Secure /tmpCode:yum clean all yum -y update glibc\* yum -y update yum\* rpm\* python\* yum clean all yum -y update
Code:rm -rf /tmp mkdir /tmp mount -t tmpfs -o rw,noexec,nosuid tmpfs /tmp chmod 1777 /tmpCode:rm -rf /var/tmp ln -s /tmp /var/tmpCode:Install NSD==============================Code:wget http://www.nlnetlabs.nl/downloads/nsd/nsd-3.2.8.tar.gz tar xzvf nsd-3.2.8.tar.gz cd nsd-3.2.8 ./configure make make install
=============================Code:groupadd nsd useradd -g nsd -s /sbin/nologin -M nsd
Install NTCode:mkdir /var/run/nsd chown -R nsd:nsd /var/run/nsd/ chown -R nsd:nsd /var/db/nsd/ mkdir /etc/nsd/master mkdir /etc/nsd/slave chown -R nsd:nsd /etc/nsd/ cp -R $CUR_DIR/config/nsd/* /etc/nsd/ cd /etc/sysconfig/ mv $CUR_DIR/sysconfig/nsd nsd cd /etc/init.d/ mv $CUR_DIR/init/nsd nsd chmod +x /etc/init.d/nsd chkconfig --levels 235 nsd on /etc/init.d/nsd start
Now We install Nginx.Code:yum -y install ntp chkconfig --levels 235 ntpd on ntpdate pool.ntp.org /etc/init.d/ntpd star
Code:/sbin/service httpd stop chkconfig httpd offCode:http://nginx.org/download/nginx-1.0.2.tar.gzCode:tar xvfz nginx-1.0.2.tar.gz cd nginx-1.02 ./configure --sbin-path=/usr/local/sbin --with-http_ssl_module make make installInstall PHPCode:groupadd nginx useradd -g nginx -d /home/nginx -s /sbin/nologin nginx mkdir /home/nginx/domains mkdir -p /home/nginx/domains/demo.com/{public,private,log,backup} cp -R $CUR_DIR/htdocs/demo.com/* /home/nginx/domains/demo.com/public chown -R nginx:nginx /home/nginx cp -R $CUR_DIR/htdocs/default/* /usr/local/nginx/html rm -rf $CUR_DIR/htdocs mkdir /usr/local/nginx/conf/conf.d/ cp -R $CUR_DIR/config/nginx/* /usr/local/nginx/conf/ cd /etc/init.d/ mv $CUR_DIR/init/nginx nginx chmod +x nginx ./nginx start chkconfig --levels 235 nginx on
Install MYSQLCode:Yum install php
Code:yum -y install mysql mysql-devel mysql-server mv $CUR_DIR/config/mysql/my.cnf /etc/my.cnf chkconfig --levels 235 mysqld on /etc/init.d/mysqld startInstall SendMailCode:mysql_secure_installation
And Done!Code:yum -y install sendmail mailx chkconfig --levels 235 sendmail on /etc/init.d/sendmail start
, You have now install a nice little Nginx WebServer
Dom Reviewed by Dom on . [TUT]How to install Nginx Web Server ~ Domenic Edition Update any Pre-Installed Sofware : yum clean all yum -y update glibc\* yum -y update yum\* rpm\* python\* yum clean all yum -y updateSecure /tmp rm -rf /tmp mkdir /tmp Rating: 5
-
21st May 2011, 12:18 AM #2
MemberWebsite's:
newrapidleech.com blog.newrapidleech.comThanks mate

---------------------------------
I think you gotta put your nginx.conf configuration to see how to run php file.
-
28th May 2011, 07:01 AM #3
MemberWebsite's:
ExploringPC.com DedicatedSeedboxHosting.comHi, can you tell me hoe to avoid the Error 404 page in nGinx?
Its really bothering me mate.
-
28th May 2011, 07:05 AM #4
OPMemberWhat do you mean avoid ? ... You should be typing in the right URL
-
28th May 2011, 07:52 AM #5
Respected Developer
If you dont like to bother with all above commands and using centos, here is an alternative script which will download everything and install for you with only couple of commands..
sourceCode:wget http://freevps.us/downloads/nginx-centos.sh bash nginx-centos.sh
https://freevps.us/thread-528.htmlBots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
-
28th May 2011, 07:57 AM #6
OPMemberthanks for that mRAza , people may find it easier to use a bash script
-
28th May 2011, 08:10 AM #7
Bannedafter done install how to access web panel, example if apache cPanel http://www.domain.com:2082 or /cpanel, for nginx how?
-
28th May 2011, 08:27 AM #8
Respected Developer
There is no panel installed, you need to manage through SSH, if you are looking for a free panel like cpanel you can install kloxo or webmin.
to install kloxo here are commands, make sure its a fresh install
note* it will install apache not nginx.Code:wget http://download.lxlabs.com/download/kloxo/production/kloxo-install-master.sh sh ./kloxo-install-master.shBots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
-
28th May 2011, 08:31 AM #9
OPMemberYou could always install ISPmanager
wget "http://download.ispsystem.com/install.sh"
sh install.sh
================================================== ====
Code:rpm -ihv http://centos.alt*****repository/cen...5-3.noarch.rpmCode:rpm -ihv http://centos.alt*****repository/cen...5-3.noarch.rpmCode:yum makecache /usr/local/ispmgr/sbin/pkgctl cacheCode:/etc/init.d/nginx/restart
-
1st Jul 2011, 06:38 PM #10
MemberWebsite's:
unicef.orgthis is hard steps for me
but thank you maybe i'll use it in the future
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Are you using Cpanel? Install nginx Today and Boost up your server
By rohan123 in forum Tutorials and GuidesReplies: 1Last Post: 18th May 2012, 06:39 AM -
Howto: Install PHP on Windows 2003 Web Edition
By Albert.Nawaro in forum Server ManagementReplies: 0Last Post: 14th Feb 2012, 07:48 AM -
How to: Install Nginx on cPanel
By Raptile in forum Technical and Security TutorialsReplies: 3Last Post: 22nd Nov 2011, 12:31 AM -
How to Install Nginx On Centos
By ifirstdoz in forum Technical Help Desk SupportReplies: 5Last Post: 19th Nov 2011, 04:16 PM -
How to install nginx
By Nickk96 in forum Server ManagementReplies: 11Last Post: 29th Sep 2011, 07:48 PM








Register To Reply

Staff Online
themaCreator - create posts from...
Version 3.55 released. Open older version (or...