{"id":16365948,"url":"https://github.com/teddysun/lcmp","last_synced_at":"2025-05-16T14:06:43.762Z","repository":{"id":17794132,"uuid":"20673362","full_name":"teddysun/lcmp","owner":"teddysun","description":"Install LCMP (Linux + Caddy + MariaDB + PHP) for AlmaLinux/RockyLinux/CentOS/Debian/Ubuntu","archived":false,"fork":false,"pushed_at":"2025-05-10T12:20:13.000Z","size":215,"stargazers_count":230,"open_issues_count":0,"forks_count":183,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-10T13:29:12.327Z","etag":null,"topics":["almalinux","caddy","caddy2","centos","debian","lcmp","liunx","mariadb","php","rockylinux","ubuntu"],"latest_commit_sha":null,"homepage":"https://teddysun.com/700.html","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teddysun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-06-10T05:21:10.000Z","updated_at":"2025-05-10T12:20:16.000Z","dependencies_parsed_at":"2023-10-14T02:39:29.934Z","dependency_job_id":"79bebd52-638c-461b-b250-57cb99d8bd0d","html_url":"https://github.com/teddysun/lcmp","commit_stats":null,"previous_names":["teddysun/lcmp","teddysun/lamp-yum"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddysun%2Flcmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddysun%2Flcmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddysun%2Flcmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teddysun%2Flcmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teddysun","download_url":"https://codeload.github.com/teddysun/lcmp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544146,"owners_count":22088807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["almalinux","caddy","caddy2","centos","debian","lcmp","liunx","mariadb","php","rockylinux","ubuntu"],"created_at":"2024-10-11T02:44:53.129Z","updated_at":"2025-05-16T14:06:43.757Z","avatar_url":"https://github.com/teddysun.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\r\n    \u003ca href=\"https://teddysun.com/700.html\" target=\"_blank\"\u003e\r\n        \u003cimg alt=\"LCMP\" src=\"https://github.com/teddysun/lcmp/raw/master/conf/lcmp.png\"\u003e\r\n    \u003c/a\u003e\r\n\u003c/div\u003e\r\n\r\n## Description\r\n\r\nLCMP (Linux + Caddy + MariaDB + PHP) is a powerful bash script for the installation of Caddy2 + MariaDB + PHP and so on.\r\n\r\nYou can install Caddy2 + MariaDB + PHP in a smaller memory VPS by `dnf` or `apt-get` command, Just need to input numbers to choose what you want to install before installation.\r\n\r\nAnd all things will be done in a few minutes.\r\n\r\n- [Supported System](#supported-system)\r\n- [System requirements](#system-requirements)\r\n- [Supported Software](#supported-software)\r\n- [Supported Architecture](#supported-architecture)\r\n- [Installation](#installation)\r\n- [Upgrade](#upgrade)\r\n- [Uninstall](#uninstall)\r\n- [Default Location](#default-location)\r\n- [Process Management](#process-management)\r\n- [lcmp command](#lcmp-command)\r\n- [Bugs \u0026 Issues](#bugs--issues)\r\n- [License](#license)\r\n\r\n## Supported System\r\n\r\n- Enterprise Linux 8 (CentOS Stream 8, RHEL 8, Rocky Linux 8, AlmaLinux 8, Oracle Linux 8)\r\n- Enterprise Linux 9 (CentOS Stream 9, RHEL 9, Rocky Linux 9, AlmaLinux 9, Oracle Linux 9)\r\n- Debian 11\r\n- Debian 12\r\n- Ubuntu 20.04\r\n- Ubuntu 22.04\r\n- Ubuntu 24.04\r\n\r\n## System requirements\r\n\r\n- Hard disk space: 5 GiB\r\n- RAM: 512 MiB\r\n- Internet connection is required\r\n- Correct repository\r\n- User: root\r\n\r\n## Supported Software\r\n\r\n- Caddy 2 ※ Caddy package provided by [Teddysun Repository](https://dl.lamp.sh/shadowsocks/)\r\n- MariaDB 10.11, 11.4 ※ MariaDB packages provided by [MariaDB Repository](https://downloads.mariadb.com/MariaDB/)\r\n- PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 ※ PHP rpm packages provided by [Remi Repository](https://rpms.remirepo.net/), deb packages provided by [deb.sury.org](https://deb.sury.org/)\r\n\r\n## Supported Architecture\r\n\r\n- x86_64 (amd64)\r\n- aarch64 (arm64)\r\n\r\n## Installation\r\n\r\n- If your server's OS: Enterprise Linux 8 / 9\r\n```bash\r\ndnf -y install wget git\r\ngit clone https://github.com/teddysun/lcmp.git\r\ncd lcmp\r\nchmod 755 *.sh\r\n./lcmp.sh 2\u003e\u00261 | tee lcmp.log\r\n```\r\n\r\n- If your server's OS: Debian 11+ / Ubuntu 20.04+\r\n```bash\r\napt-get -y install wget git\r\ngit clone https://github.com/teddysun/lcmp.git\r\ncd lcmp\r\nchmod 755 *.sh\r\n./lcmp.sh 2\u003e\u00261 | tee lcmp.log\r\n```\r\n\r\n## Upgrade\r\n\r\n- If your server's OS: Enterprise Linux 8 / 9\r\n```bash\r\ndnf update -y caddy\r\ndnf update -y MariaDB-*\r\ndnf update -y php-*\r\n# Change PHP directory's group for Caddy again if you upgraded PHP version\r\nchown root:caddy /var/lib/php/{session,wsdlcache,opcache}\r\n```\r\n\r\n- How to upgrade PHP **MAJOR** version in Enterprise Linux 8 / 9\r\n\r\nExample: From PHP 8.3 upgrade to 8.4\r\n```bash\r\ndnf module switch-to php:remi-8.4\r\n```\r\n\r\n- If your server's OS: Debian 11+ / Ubuntu 20.04+\r\n```bash\r\napt-get install --only-upgrade -y caddy\r\napt-get install --only-upgrade -y mariadb-*\r\n# for example: php_ver=[7.4|8.0|8.1|8.2|8.3|8.4]\r\nphp_ver=\"8.2\"\r\napt-get install --only-upgrade -y php${php_ver}-*\r\n```\r\n\r\n## Uninstall\r\n\r\n- If your server's OS: Enterprise Linux 8 / 9\r\n```bash\r\ndnf remove -y caddy\r\ndnf remove -y MariaDB-*\r\ndnf remove -y php-*\r\n```\r\n\r\n- If your server's OS: Debian 11+ / Ubuntu 20.04+\r\n```bash\r\napt-get remove -y caddy\r\napt-get remove -y mariadb-*\r\n# for example: php_ver=[7.4|8.0|8.1|8.2|8.3|8.4]\r\nphp_ver=\"8.2\"\r\napt-get remove -y php${php_ver}-*\r\n```\r\n\r\n## Default Location\r\n\r\n| Caddy Location             | Path                                        |\r\n|----------------------------|---------------------------------------------|\r\n| Web root location          | /data/www/default                           |\r\n| Main Configuration File    | /etc/caddy/Caddyfile                        |\r\n| Sites Configuration Folder | /etc/caddy/conf.d/                          |\r\n\r\n| MariaDB Location           | Path                                        |\r\n|----------------------------|---------------------------------------------|\r\n| Data Location              | /var/lib/mysql                              |\r\n| my.cnf File (rpm)          | /etc/my.cnf                                 |\r\n| my.cnf File (deb)          | /etc/mysql/my.cnf                           |\r\n\r\n| PHP Location               | Path                                        |\r\n|----------------------------|---------------------------------------------|\r\n| php-fpm File (rpm)         | /etc/php-fpm.d/www.conf                     |\r\n| php-fpm File (deb)         | /etc/php/${php_ver}/fpm/pool.d/www.conf     |\r\n| php.ini File (rpm)         | /etc/php.ini                                |\r\n| php.ini File (deb)         | /etc/php/${php_ver}/fpm/php.ini             |\r\n\r\n## Process Management\r\n\r\n| Process     | Command                                                    |\r\n|-------------|------------------------------------------------------------|\r\n| Caddy       | systemctl [start\\|stop\\|status\\|restart] caddy             |\r\n| MariaDB     | systemctl [start\\|stop\\|status\\|restart] mariadb           |\r\n| PHP (rpm)   | systemctl [start\\|stop\\|status\\|restart] php-fpm           |\r\n| PHP (deb)   | systemctl [start\\|stop\\|status\\|restart] php${php_ver}-fpm |\r\n\r\n## lcmp Command\r\n\r\n| Command          | Description                                           |\r\n|------------------|-------------------------------------------------------|\r\n| lcmp start       | Start all of LCMP services                            |\r\n| lcmp stop        | Stop all of LCMP services                             |\r\n| lcmp restart     | Restart all of LCMP services                          |\r\n| lcmp status      | Check all of LCMP services status                     |\r\n| lcmp version     | Print all of LCMP software version                    |\r\n| lcmp vhost add   | Create a new Caddy virtual host                       |\r\n| lcmp vhost list  | List all of Caddy virtual hosts                       |\r\n| lcmp vhost del   | Delete a Caddy virtual host                           |\r\n| lcmp db add      | Create a MariaDB database and a user with same name   |\r\n| lcmp db list     | List all of MariaDB databases                         |\r\n| lcmp db del      | Delete a MariaDB database and a user with same name   |\r\n| lcmp db edit     | Update a MariaDB database username's password         |\r\n\r\n## Bugs \u0026 Issues\r\n\r\nPlease feel free to report any bugs or issues to us, email to: i@teddysun.com or [open issues](https://github.com/teddysun/lcmp/issues) on Github.\r\n\r\n\r\n## License\r\n\r\nCopyright (C) 2023 - 2025 [Teddysun](https://teddysun.com/)\r\n\r\nLicensed under the [GPLv3](LICENSE) License.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddysun%2Flcmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteddysun%2Flcmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteddysun%2Flcmp/lists"}