teddysun / lcmp

Install LCMP (Linux + Caddy + MariaDB + PHP) for AlmaLinux/RockyLinux/CentOS/Debian/Ubuntu
https://teddysun.com/700.html
GNU General Public License v3.0
207 stars 174 forks source link
almalinux caddy caddy2 centos debian lcmp liunx mariadb php rockylinux ubuntu
LCMP

Description

LCMP (Linux + Caddy + MariaDB + PHP) is a powerful bash script for the installation of Caddy2 + MariaDB + PHP and so on.

You can install Caddy2 + MariaDB + PHP in a smaller memory VPS by yum(dnf) or apt-get 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.

Supported System

System requirements

Supported Software

※Explanation

Installation

Upgrade

Uninstall

Default Location

Caddy Location Path
Web root location /data/www/default
Main Configuration File /etc/caddy/Caddyfile
Sites Configuration Folder /etc/caddy/conf.d/
MariaDB Location Path
Data Location /var/lib/mysql
my.cnf File (rpm) /etc/my.cnf
my.cnf File (deb) /etc/mysql/my.cnf
PHP Location Path
php-fpm File (rpm) /etc/php-fpm.d/www.conf
php-fpm File (deb) /etc/php/${php_ver}/fpm/pool.d/www.conf
php.ini File (rpm) /etc/php.ini
php.ini File (deb) /etc/php/${php_ver}/fpm/php.ini

Process Management

Process Command
PHP (rpm) systemctl [start|stop|status|restart] php-fpm
PHP (deb) systemctl [start|stop|status|restart] php${php_ver}-fpm
Caddy systemctl [start|stop|status|restart] caddy
MariaDB systemctl [start|stop|status|restart] mariadb

lcmp Command

Command Description
lcmp start Start all of LCMP services
lcmp stop Stop all of LCMP services
lcmp restart Restart all of LCMP services
lcmp status Check all of LCMP services status
lcmp version Print all of LCMP software version
lcmp vhost add Create a new Caddy virtual host
lcmp vhost list List all of Caddy virtual hosts
lcmp vhost del Delete a Caddy virtual host
lcmp db add Create a MariaDB database and a user with same name
lcmp db list List all of MariaDB databases
lcmp db del Delete a MariaDB database and a user with same name
lcmp db edit Update a MariaDB database username's password

Bugs & Issues

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

License

Copyright (C) 2023 - 2024 Teddysun

Licensed under the GPLv3 License.