1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Nginx Autoinstaller lnmp

Discussion in 'Nginx' started by webmastersb, Mar 2, 2013.

  1. #1
    Hi ,
    i think this is best script to run nginx on a vps ...

    Nginx 1.0.10
    PHP 5.2.17
    Mysql 5.1.60
    PHPMyAdmin
    Eaccelerator (optional 1 click install)
    VsFTPd, PureFTPd (Optional 1 click install)
    PHP Suhousin Patch
    Memcached (optional)
    Zend Optimizer
    install Instructions-



    You can use debian/ubuntu/centos 32bit or 64bit. So login via SSH and issue these commands (you must be root user to install LNMP )-
    1. Download the installer package-
    wget -c http://www.ruchirablog.com/lnmp0.9-full.tar.gz
    2. Decompress the install package-.

    tar zxvf lnmp0.9-full.tar.gz
    3. Go to install directory-

    cd lnmp0.9-full
    4. Start installing-

    For ubuntu - sh ubuntu.sh
    For Centos - sh centos.sh
    For Debian - sh debian.sh
    It will ask some questions like your domain name , mysql root password ( Use your root password if you are newbie) just answer to them promptly.

    It will take at least 30 minutes to fully install and then you will see a massage saying install completed. So then you can try navigating to your ip address to see it working.
    After installation -
    PHPMyAdmin will be located on : ip/phpmyadmin
    Navigate to your url or ip and it will display a test page
    1, install eAccelerator, execute the following command. / eaccelerator.sh , follow the prompts to select the version, press Enter, it will automatically install and restart the web service.

    2, the installation of ionCube, execute the following command / ionCube.sh Enter to confirm, it will automatically install and restart the web service.
    3, the installation imageMagick, execute the following command / imageMagick.sh Enter to confirm, it will automatically install and restart the web service.
    4, install memcached, execute the following command / memcached.sh Enter to confirm, it will automatically install and restart the web service.
    AND A ADVANTAGE OF THE NEW INSTALLER IS YOU CAN UPGRADE NGINX OR PHP WITH JUST ONE SHELL COMMAND.
    To upgrade the nginx execute the following command:. / upgrade_nginx.sh It will prompt a thing which you need to enter the nginx version number. Its simply asking which version that you want to upgrade. So head over to http://nginx.org/en/download.html and find whats the newest nginx version and enter the number correctly on the shell prompt. For ex- 1.0.10 and press enter. its just easy!
    PHP upgrade, execute the following command:. / upgrade_php.sh prompted, enter your php version number, such as 5.3.6.
    You can manage the LNMP by issuing these commands-

    /root/lnmp {start | stop | reload | restart | kill | status}
    For example if you want to restart lnmp issue /root/lnmp restart
    LNMP files will be located on
    mysql: /usr/local/mysql
    php: /usr/local/php
    nginx: /usr/local/nginx
    Site Directory: /home/wwwroot

    How to add more domains (Virtual hosts) for this setup?
    You can add more domains to your setup with easy steps. You just need to open your SSH client and type
    ./vhost.sh
     
    webmastersb, Mar 2, 2013 IP
  2. thanhmuoi

    thanhmuoi Greenhorn

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #2
    You can try L2MP Stack (http://wiki.l2mp.ml) It support htaccess and Litespeed 6x Faster than Apache
     
    thanhmuoi, Sep 7, 2015 IP