Home

Awesome

<div align="center"> <a href="https://lamp.sh/" target="_blank"> <img alt="LAMP" src="https://github.com/teddysun/lamp/blob/master/conf/lamp.png"> </a> </div>

Description

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 an very easy way, just need to choose what you want to install before installation. And all things will be done in few minutes.

Supported System

Supported Software

Software Version

Apache & Additional ModulesVersion
httpd2.4.62
apr1.7.5
apr-util1.6.3
openssl1.1.1w
mod_wsgi4.9.4
mod_security22.9.6
mod_jk1.2.50
DatabaseVersion
MySQL5.7.44, 8.0.40
MariaDB10.5.27, 10.6.20, 10.11.10
PHP & Additional extensionsVersion
PHP7.4.33, 8.0.30, 8.1.30, 8.2.25
ionCube Loader13.3.1
PDFlib10.0.0
APCu extension5.1.21
gRPC extension1.58.0
ImageMagick7.1.1-38
imagick extension3.7.0
libsodium1.0.19
libsodium extension2.0.23
memcached1.6.6
libmemcached1.0.18
memcached extension3.1.5
re2c3.0
redis5.0.14
redis extension5.3.7
mongodb extension1.16.2
swoole extension4.8.12
yaf extension3.3.5
yar extension2.3.2
msgpack extension2.1.2
psr extension1.2.0
phalcon extension5.3.1
xdebug extension3.1.6
Database Management ToolsVersion
phpMyAdmin5.2.1
Adminer4.8.1
File Managerment ToolVersion
KodExplorer4.52

Installation

yum -y install wget git
git clone https://github.com/teddysun/lamp.git
cd lamp
chmod 755 *.sh
./lamp.sh
apt-get -y install wget git
git clone https://github.com/teddysun/lamp.git
cd lamp
chmod 755 *.sh
./lamp.sh
./lamp.sh -h
./lamp.sh --apache_option 1 --apache_modules mod_wsgi,mod_security --db_option 1 --db_root_pwd teddysun.com --php_option 1 --php_extensions apcu,ioncube,imagick,redis,mongodb,libsodium,swoole --db_manage_modules phpmyadmin,adminer --kodexplorer_option 1

Upgrade

cd ~/lamp
git reset --hard         // Resets the index and working tree
git pull                 // Get latest version first
chmod 755 *.sh

./upgrade.sh             // Select one to upgrade
./upgrade.sh apache      // Upgrade Apache
./upgrade.sh db          // Upgrade MySQL or MariaDB
./upgrade.sh php         // Upgrade PHP
./upgrade.sh phpmyadmin  // Upgrade phpMyAdmin
./upgrade.sh adminer     // Upgrade Adminer

Backup

./backup.sh

Uninstall

./uninstall.sh

Default Installation Location

Apache LocationPath
Install prefix/usr/local/apache
Web root location/data/www/default
Main configuration File/usr/local/apache/conf/httpd.conf
Default virtual host conf/usr/local/apache/conf/vhost/default.conf
Virtual host conf/usr/local/apache/conf/vhost/your_virtual_host.conf
Virtual host SSL location/usr/local/apache/conf/ssl/your_virtual_host
Virtual host location/data/www/your_virtual_host_names
Virtual host log location/data/wwwlog/your_virtual_host_names
phpMyAdmin LocationPath
Installation location/data/www/default/phpmyadmin
Adminer LocationPath
Installation location/data/www/default/adminer.php
KodExplorer LocationPath
Installation location/data/www/default/kod
PHP LocationPath
Install prefix/usr/local/php
Configuration file/usr/local/php/etc/php.ini
ini additional location/usr/local/php/php.d
MySQL LocationPath
Install prefix/usr/local/mysql
Default data location/usr/local/mysql/data
my.cnf configuration File/etc/my.cnf
MariaDB LocationPath
Install prefix/usr/local/mariadb
Default data location/usr/local/mariadb/data
my.cnf configuration file/etc/my.cnf

Process Management

ProcessCommand
Apache/etc/init.d/httpd (start|stop|status|restart)
MySQL/MariaDB/etc/init.d/mysqld (start|stop|status|restart)
Memcached/etc/init.d/memcached (start|stop|restart)
Redis-Server/etc/init.d/redis-server (start|stop|restart)

lamp Command

CommandDescription
lamp addCreate a new Apache virtual host
lamp delDelete a Apache virtual host
lamp listList all of Apache virtual hosts
lamp versionPrint version and exit

Bugs & Issues

Please feel free to report any bugs or issues to us, email to: i@teddysun.com or open issues on Github.

Support(Chinese only): https://lamp.sh/support.html

License

Copyright (C) 2013 - 2024 Teddysun

Licensed under the GPLv3 License.