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
- 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
- git clone and give script execution permissions
git clone https://github.com/teddysun/lamp.gitcd lampchmod +x *.sh
- 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)
/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