This script applies to the environment:
About this script:
will be installed:
How to install:
The first step is to download, unzip, and assign Execute permissions:
wget--no-check-certificate Https://github.com/teddysun/lamp-yum/archive/master.zip-O Lamp-yum.zipunzip LAMP-YUM.ZIPCD Lamp-yum-master/chmod +x *.sh
Step two, install the lamp one-click installation package
Enter the following command in the terminal:
./lamp.sh 2>&1 | Tee Lamp.log
Tips for use:
Lamp Add (del,list): Create (delete, list) the virtual host.
Lamp Uninstall: Delete lamp with one click (Remember to back up the data before deleting it!) ）
MySQL or MariaDB database directory:/var/lib/mysql
Default Web site root directory:/data/www/default
List of commands:
MySQL or MariaDB command:
/etc/init.d/mysqld (start|stop|restart|reload|status) service mysqld (Start|stop|restart|reload|status)
For more information or to download the installation package please refer to the Project homepage: Https://github.com/teddysun/lamp-yum
A description of this script:
1, Apache is the default version of the system, MySQL, MariaDB and PHP is the latest version of Atomic repository.
2, if your VPS memory ≥256m, it is recommended to compile the installation LAMP, see: Here
3, Upgrade PhpMyAdmin command:./update_phpmyadmin.sh
Update (June 25, 2014): Added MariaDB installation options and added a one-click Script update_phpmyadmin.sh to upgrade phpMyAdmin.
Update (June 10, 2014): Install the LAMP production environment with Yum one-click installation package, First edition.
CentOS Next lamp One click Yum installation script