Activity Stream
48,167 MEMBERS
6760 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1.     
    #1
    Member

    Default [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
    Secure /tmp

    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
    Install NT
    Code: 
     yum -y install ntp
            chkconfig --levels 235 ntpd on
            ntpdate pool.ntp.org
            /etc/init.d/ntpd star
    Now We install Nginx.
    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
    Install PHP

    Code: 
    Yum install php
    Install MYSQL

    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
    Install SendMail

    Code: 
    yum -y install sendmail mailx
        chkconfig --levels 235 sendmail on
        /etc/init.d/sendmail start
    And Done! , 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

  2.   Sponsored Links

  3.     
    #2
    Member
    Website's:
    newrapidleech.com blog.newrapidleech.com
    Thanks mate

    ---------------------------------

    I think you gotta put your nginx.conf configuration to see how to run php file.

  4.     
    #3
    Member
    Website's:
    ExploringPC.com DedicatedSeedboxHosting.com
    Hi, can you tell me hoe to avoid the Error 404 page in nGinx?

    Its really bothering me mate.

  5.     
    #4
    Member
    What do you mean avoid ? ... You should be typing in the right URL

  6.     
    #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..
    Code: 
    wget http://freevps.us/downloads/nginx-centos.sh
    bash nginx-centos.sh
    source
    https://freevps.us/thread-528.html
    Bots 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.

  7.     
    #6
    Member
    thanks for that mRAza , people may find it easier to use a bash script

  8.     
    #7
    Banned
    after done install how to access web panel, example if apache cPanel http://www.domain.com:2082 or /cpanel, for nginx how?

  9.     
    #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
    Code: 
    wget http://download.lxlabs.com/download/kloxo/production/kloxo-install-master.sh
    sh ./kloxo-install-master.sh
    note* it will install apache not nginx.
    Bots 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.

  10.     
    #9
    Member
    You could always install ISPmanager




    wget "http://download.ispsystem.com/install.sh"
    sh install.sh





    ================================================== ====





    Code: 
    yum makecache /usr/local/ispmgr/sbin/pkgctl cache
    Code: 
    /etc/init.d/nginx/restart

  11.     
    #10
    Member
    Website's:
    unicef.org
    this is hard steps for me

    but thank you maybe i'll use it in the future

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Are you using Cpanel? Install nginx Today and Boost up your server
    By rohan123 in forum Tutorials and Guides
    Replies: 1
    Last Post: 18th May 2012, 06:39 AM
  2. Howto: Install PHP on Windows 2003 Web Edition
    By Albert.Nawaro in forum Server Management
    Replies: 0
    Last Post: 14th Feb 2012, 07:48 AM
  3. How to: Install Nginx on cPanel
    By Raptile in forum Technical and Security Tutorials
    Replies: 3
    Last Post: 22nd Nov 2011, 12:31 AM
  4. How to Install Nginx On Centos
    By ifirstdoz in forum Technical Help Desk Support
    Replies: 5
    Last Post: 19th Nov 2011, 04:16 PM
  5. How to install nginx
    By Nickk96 in forum Server Management
    Replies: 11
    Last Post: 29th Sep 2011, 07:48 PM

Tags for this Thread

BE SOCIAL