Informational Website publish

Blog

News about our company, tutorials about IT and much more you will find in this page.

How to Install LNMP | Nginx Autoinstaller

Janeiro 30th, 2018

What does the installer include:

Nginx 1.2.9 ( Upgrade to the latest after the installation ) 
PHP 5.2.17 ( Upgrade to the latest after the installation ) 
Mysql 5.1.60 
PHPMyAdmin 
Eaccelerator (optional 1 click install) 
VsFTPd, PureFTPd (Optional 1 click install) 
PHP Suhousin Patch 
Memcached (optional) 
Zend Optimizer

1. Download the installer package

  • wget -c http://www.ruchirablog.com/downloads/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 | Ubuntu

  • sh ubuntu.sh

4. Start installing | CentOS

  • sh centos.sh

4. Start installing | 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.

1. install eAccelerator, execute the following command.

  • eaccelerator.sh

2. the installation of ionCube, execute the following command

  • ionCube.sh

3. the installation imageMagick, execute the following command

  • imageMagick.sh

4. install memcached, execute the following command

  • memcached.sh

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

PHP upgrade, execute the following command:.

  • upgrade_php.sh

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