OneinStack (LNMP) one-click installation package (PHP7 supported)

Source: Internet
Author: User
Tags fpm ftp hhvm memcached redis nginx host phpmyadmin

I believe you are familiar with LNMP of Chinese host panel AMH, WDCP, and June, but recently we found a new one-click installation package called OneinStack, which is very powerful, you can select LAMP, LNMP, LNAMP, and LNMT (tomcat) during installation. The most important thing is that PHP7 is already supported, which is extremely convenient for people who like it.
Lnmp


Installation steps

Yum-y install wget screen python # for CentOS/Redhat
# Apt-get-y install wget screen python # for Debian/Ubuntu
Wget http://aliyun-oss.linuxeye.com/lnmp-full.tar.gz # Alibaba Cloud intranet download
Wget http://mirrors.linuxeye.com/lnmp-full.tar.gz # contains source code, can be downloaded at home and abroad
Wget http://mirrors.linuxeye.com/lnmp.tar.gz # does not contain source code, it is recommended to download only foreign hosts
Tar xzf lnmp-full.tar.gz
# Tar xzf lnmp.tar.gz
Cd lnmp # to modify the Directory (installation, data storage, and Nginx logs), modify the options. conf file.
Screen-S lnmp # if the network is interrupted, run the 'screen-r lnmp' command to reconnect to the installation window.
./Install. sh # do not execute sh install. sh or bash install. sh.

How to add a VM?
./Vhost. sh

How do I delete a VM?
./Vhost. sh del

How to manage ftp accounts?
./Pureftpd_vhost.sh

Data Backup
Cd ~ /Lnmp # it must be executed in the lnmp Directory
./Backup_setup.sh # backup parameter settings
./Backup. sh # perform backup now
Crontab-e # can be added to a scheduled task, such as automatic backup at every day
0 1 *** cd ~ /Lnmp;./backup. sh>/dev/null 2> & 1 &
The backup parameter settings are as follows:

How to manage services?
Nginx/Tengine:
Service nginx {start | stop | status | restart | reload | configtest}
MySQL/MariaDB/Percona:
Service mysqld {start | stop | restart | reload | status}
PHP:
Service php-fpm {start | stop | restart | reload | status}
Apache:
Service httpd {start | restart | stop}
HHVM:
Service supervisord {start | stop | status | restart | reload}
Note: The hhvm process is handed over to supervisord for management. For more information, see Supervisor hhvm process management.
Pure-Ftpd:
Service pureftpd {start | stop | restart | status}
Redis:
Service redis-server {start | stop | status | restart | reload}
Memcached:
Service memcached {start | stop | status | restart | reload}
How to update a version?
./Upgrade. sh
Cross-major version upgrade (such as php): http://oneinstack.com/question/oneinstack-downgrade-if-php-version/
How to uninstall it?
./Uninstall. sh

How to reinstall it?

./Uninstall. sh # Please back up the data before uninstalling it. The loss of data is not responsible.
./Install. sh # install again

 

The author updated quickly and provided a Q & A community for consultation. The author mainly introduced related configuration files and services for ease of use.

Related configuration files

Apache host configuration file:/usr/local/apache/conf/vhost
Nginx host configuration file:/usr/local/nginx/conf/vhost
Related commands


./Vhost. sh # Add host
./Vhost. sh del # delete host
./Pureftpd_vhost.sh # Add FTP
PHPmyadmin: http: // IP/phpMyAdmin/
Service nginx {start | stop | status | restart | reload | configtest}
Service mysqld {start | stop | restart | reload | status}
Service php-fpm {start | stop | restart | reload | status}
Service httpd {start | restart | stop}
Service supervisord {start | stop | status | restart | reload}
Service pureftpd {start | stop | restart | status}
Service redis-server {start | stop | status | restart | reload}
Service memcached {start | stop | status | restart | reload}
./Upgrade. sh # Update version
./Uninstall. sh # uninstall
Reinstallation:
./Uninstall. sh # Please back up the data before uninstalling it. The loss of data is not responsible.
./Install. sh # install again

PHP7 can be installed in the latest version, and little z can be installed and tried on Vultr. It is obvious that PHP7 performance has been improved by multiple times, and the testing speed of wordpress running is also amazing. If you like to toss your shoes, try OneinStack.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.