Skip to content
In CentOS / Red Hat Debian and Ubuntu is a complete automation LTMH / LNMH / LNMP / LTMP installation script
Branch: master
Clone or download
ielnehc update
update
Latest commit 3941431 Mar 20, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
backup update Jul 30, 2014
conf update Oct 8, 2014
init update Nov 8, 2014
shell update Mar 20, 2015
tools update Nov 7, 2014
.gitignore Initial commit Jul 26, 2014
LICENSE Initial commit Jul 26, 2014
README.md update Oct 24, 2014
install_lnmp.sh update Oct 9, 2014
install_ltmh.sh update Nov 7, 2014
options.conf update Nov 7, 2014
uninstall.sh update Nov 7, 2014
up_php.sh update Jul 30, 2014
up_phpmyadmin.sh update Nov 10, 2014
up_redis.sh update Jul 30, 2014
up_web_ser.sh update Oct 9, 2014
vhost.sh update Nov 7, 2014
vhost_hhvm.sh update Oct 9, 2014

README.md

ltmh

In CentOS / Red Hat Debian and Ubuntu is a complete automation LTMH / LNMH / LNMP / LTMP installation script This script is free collection of shell scripts for rapid deployment of LTMH/LNMH/LTMP/ LNMP stacks (Linux, Tengine/Nginx, MySQL/MariaDB/PHP/ hhvm) for CentOS/Redhat Debian and Ubuntu.

Script features:

  • Constant updates

  • Source compiler installation, most source code is the latest stable version, and downloaded from the official website

  • Fixes some security issues

  • You can freely choose to install database version (MySQL-5.6, MySQL-5.5, MariaDB-10.0, MariaDB-5.5)

  • You can freely choose to install PHP version (php-5.5, php-5.4, php-5.3)

  • You can freely choose to install hhvm version (hhvm3.1.0,hhvm3.3.0)

  • You can freely choose to install Tengine or Nginx

  • According to their needs can to install ngx_pagespeed

  • According to their needs can to install ZendOPcache, xcache, APCU, eAccelerator, ionCube and ZendGuardLoader (php-5.4, php-5.3)

  • According to their needs can to install Pureftpd, phpMyAdmin

  • According to their needs can to install memcached, redis

  • According to their needs can to optimize Nginx and Tengine with jemalloc or tcmalloc

    Tengien default has been compiled ngx_lua_waf (Web Firewall), dynamically loaded modules as needed

  • You can open ngx_lua_waf the necessary functions to : Prevent sql injection, local contain, some overflow, fuzzing test, xss, SSRF and other web attacks Prevent svn / backup class file leak ApacheBench prevent attacks like stress testing tool Shielding common hacking tools to scan, the scanner Abnormal network requests shield Shielding Pictures directory php execute permissions Accessories Upload prevent webshell

  • A key to add a virtual host

  • Nginx/Tengine, PHP,HHVM, Redis, phpMyAdmin upgrade script provided

  • A key backup support,Automatic qiniu.com cloud storage space

How to use :

##LTMH / LNMH only supports 64-bit operating system (Ubuntu 14.04, Debian7.X,Centos6.x)

   yum -y install wget screen # for CentOS/Redhat
   #apt-get -y install wget screen # for Debian/Ubuntu 
   wget -c http://soft.hhvmc.com/dl/latest/ltmh.tar.gz
   tar xzf ltmh.tar.gz
   cd ltmh
   chmod 777 install_lnmp.sh install_ltmh.sh 
   ##You can choose to install:Tengine+Mysql+HHVM,Nginx+Mysql+HHVM (Execute scripts ./install_ltmh.sh )
   ###You can choose to install:Nginx+Mysql+php,Tengine+Mysql+Php (Execute scripts ./install_lnmp.sh )
   ##Prevent interrupt the installation process. If the network is down, you can execute commands `screen -r ltmh` network reconnect the installation window.
   screen -S ltmh
   ./install_lnmp.sh or ./install_ltmh.sh 

How to add a virtual host

   ./vhost.sh
   ./vhost_hhvm.sh

Hown to backup

   ./backup.sh ##Backup Initialization 

How to manage service

Nginx/Tengine:

   service nginx {start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}
   ##tengine:/usr/local/nginx/sbin/nginx -t ,-v ,-m , -V
   ##tengine:/usr/local/nginx/sbin/dso_tool --add-module=......

MySQL/MariaDB/Percona:

   service mysqld {start|stop|restart|reload|force-reload|status}

PHP:

   service php-fpm {start|stop|force-quit|restart|reload|status}

HHVM:

   service hhvm {start|stop|restart|reload|status}

Pure-Ftpd:

   service pureftpd {start|stop|restart|condrestart|status}

Redis:

   service redis-server {start|stop|status|restart|condrestart|try-restart|reload|force-reload}

Memcached:

   service memcached {start|stop|status|restart|reload|force-reload}

How to upgrade

   ./up_php.sh # upgrade PHP
   ./up_web_ser.sh # upgrade Nginx/Tengine
   ./up_redis.sh # upgrade Redis 
   ./up_phpmyadmin.sh # upgrade phpMyAdmin 

How to uninstall

   ./uninstall.sh

For feedback, questions, and to follow the progress of the project:
LTMH the latest source install script:http://www.hhvmc.com/thread-17-1-1.html
Thank you very much http://blog.linuxeye.com of yeho, learn a lot, learned a lot of things, thanks again!

You can’t perform that action at this time.