Lamp CentOS Next button installation

Source: Internet
Author: User
Tags percona percona server

System Requirements

    • System support: CentOS 6+/debian 7+/ubuntu 12+
    • Memory Requirements: ≥512MB
    • HDD requirements: At least 5GB or more of the remaining space
    • The server must be configured with a software source and can be connected to the extranet.
    • Must have system root permissions
    • It is highly recommended to use a new system to install

Support Components

    • Support for PHP with almost all components
    • Supports MySQL, MariaDB, Percona server databases
    • Support for Redis (optional installation)
    • Support XCache (optional installation)
    • Support Swoole (optional installation)
    • Support Memcached (optional installation)
    • Support ImageMagick (optional installation)
    • Support GraphicsMagick (optional installation)
    • Support for Ioncube Loader (optional installation)
    • Self-upgrade Apache,php,phpmyadmin,mysql/mariadb/percona server to the latest version
    • Command line new virtual host (using lamp command), easy to operate
    • Support for one-click uninstallation

Installation steps

    1. Pre-Preparation (install wget, screen, unzip, create screen session)

Note: Double slash//after content do not copy input

install wget screen git      // for CentOSapt-get -y install wget screen git  // for Debian/Ubuntu
    1. git clone and give script execution permissions
git clone https://github.com/teddysun/lamp.gitcd lampchmod +x *.sh
    1. Start installation
screen -S lamp./lamp.sh

Component Installation

All the components supported by this script can be installed in the script interaction.

Tips for using

lamp add      Create virtual host lamp del delete virtual host lamp list list virtual host

How to upgrade

Note: Double slash//after content do not copy input

git pull 
 // Get latest version./upgrade.sh Select one to upgrade./upgrade.sh apache
 // Upgrade Apache./upgrade.sh db
 // Upgrade MySQL/MariaDB/Percona./upgrade.sh php
 // Upgrade PHP./upgrade.sh phpmyadmin\
 // Upgrade phpMyAdmin

How to Uninstall

Program Directory

    • MySQL installation directory:/usr/local/mysql
    • MySQL Database directory:/usr/local/mysql/data (default, path can be changed during installation)
    • MariaDB installation directory:/USR/LOCAL/MARIADB
    • MariaDB Database directory:/usr/local/mariadb/data (default, path can be changed during installation)
    • Percona installation directory:/usr/local/percona
    • Percona Database directory:/usr/local/percona/data (default, path can be changed during installation)
    • PHP installation directory:/usr/local/php
    • Apache installation directory:/usr/local/apache

Command List

    • MySQL or MariaDB or Percona command
/etc/init.d/mysqld (start|stop|restart|status)
    • Apache command
/etc/init.d/httpd (start|stop|restart|status)
    • Memcached command (optional installation)
/etc/init.d/memcached (start|stop|restart|status)
    • Redis commands (optional installation)
/etc/init.d/redis-server (start|stop|restart|status)

Site root directory

Default Web site root directory:/data/www/default

Lamp CentOS Next button installation

Related Article

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.