Code Monkey home page Code Monkey logo

lcmp's Introduction

Description

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

You can install Caddy2 + PHP + 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.

Supported System

  • Enterprise Linux 7 (CentOS 7, RHEL 7)
  • Enterprise Linux 8 (CentOS 8, RHEL 8, Rocky Linux 8, AlmaLinux 8)
  • Enterprise Linux 9 (CentOS 9, RHEL 9, Rocky Linux 9, AlmaLinux 9)

System requirements

  • Hard disk space: 5GB
  • RAM: 512MB
  • An internet connection is required
  • Correct repository
  • User: root

Supported Software

  • Caddy 2
  • MariaDB 10.11
  • PHP-7.4, PHP-8.0, PHP-8.1, PHP-8.2

Installation

yum -y install wget git
git clone https://github.com/teddysun/lcmp.git
cd lcmp
chmod 755 *.sh
./lcmp.sh 2>&1 | tee lcmp.log

Upgrade

yum update -y caddy
yum update -y MariaDB-*
yum update -y php-*
# Change PHP directory's group for Caddy again
chown root.caddy /var/lib/php/session
chown root.caddy /var/lib/php/wsdlcache
chown root.caddy /var/lib/php/opcache

Uninstall

yum remove -y caddy
yum remove -y MariaDB-*
yum remove -y php-*

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 Configuration File /etc/my.cnf
PHP Location Path
php-fpm Configuration File /etc/php-fpm.d/www.conf
php.ini Configuration File /etc/php.ini

Process Management

Process Command
PHP systemctl [start|stop|status|restart] php-fpm
Caddy systemctl [start|stop|status|restart] caddy
MariaDB systemctl [start|stop|status|restart] mariadb

License

Copyright (C) 2023 Teddysun

Licensed under the GPLv3 License.

lcmp's People

Contributors

teddysun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.