LAMP is a powerful bash script for the installation of Apache + PHP + MySQL/MariaDB and so on. You can install Apache + PHP + MySQL/MariaDB in a smaller memory VPS by yum command, Just need to input numbers to choose what you want to install before installation. And all things will be done in a few minutes.
yum -y install wget unzip
wget --no-check-certificate -O lamp-yum.zip https://github.com/teddysun/lamp-yum/archive/master.zip
unzip lamp-yum.zip
cd lamp-yum-master
chmod +x *.sh
./lamp.sh 2>&1 | tee lamp.log
yum -y update
./update_phpmyadmin.sh
./lamp.sh uninstall
Apache Location | Path |
---|---|
Web root location | /data/www/default |
Main Configuration File | /etc/httpd/conf/httpd.conf |
MySQL Location | Path |
---|---|
Data Location | /var/lib/mysql |
my.cnf Configuration File | /etc/my.cnf |
Process | Command |
---|---|
Apache | /etc/init.d/httpd (start|stop|status|restart) |
MySQL | /etc/init.d/mysqld (start|stop|status|restart) |
MariaDB | /etc/init.d/mysqld (start|stop|status|restart) |
Copyright (C) 2014 - 2018 Teddysun
Licensed under the GPLv3 License.