Results 1 to 10 of 17
Threaded View
-
20th May 2011, 10:45 PM #1OPMember
[TUT]How to install Nginx Web Server ~ Domenic Edition
Update any Pre-Installed Sofware :
Code: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 /tmp
Code:rm -rf /var/tmp ln -s /tmp /var/tmp
Code: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
Code: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
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 off
Code:http://nginx.org/download/nginx-1.0.2.tar.gz
Code:tar xvfz nginx-1.0.2.tar.gz cd nginx-1.02 ./configure --sbin-path=/usr/local/sbin --with-http_ssl_module make make install
Code: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
Code: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 start
Code:mysql_secure_installation
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
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
themaCreator - create posts from...
Version 3.47 released. Open older version (or...