Ldnmp
docker-compose LNMP (Nginx, PHP, MySQL, Redis) for CentOS/Redhat Debian macOS and Ubuntu
Install / Use
/learn @bdbin/LdnmpREADME
What is LDNMP?
LDNMP (Linux Docker Nginx MySQL PHP) is a lightweight, minimalist, automated, and 100% open-source PHP integrated environment installation script. By default, it installs PHP versions with all available extensions, and each version is updated with the latest technology stack only. LDNMP supports a high level of customization, enabling developers to quickly build local PHP environments with transparent code, no bloat or redundant code, no junk data generation, and automatic deletion of installation packages upon successful setup—resulting in minimal disk space usage. Compared to control panels, it significantly reduces costs in terms of security, CPU, memory, and network resources.
Deployment prerequisites
- Before installation, make sure the system is clean and does not have any existing environments installed, such as Apache/Nginx/PHP/MySQL/MariaDB, to avoid potential port conflicts.
- Please install Docker and Docker Compose manually:
- Docker installation: https://docs.docker.com/engine/install/
- Docker Compose installation: https://docs.docker.com/compose/install/
Supported platforms
- Supports major Linux distributions (based on Debian / RedHat), macOS, and includes domestic operating systems such as OpenKylin.
| Platform | x86_64 / amd64 | arm64 / aarch64 | | ----------- | ------- | -------------------- | | CentOS | ✓ | ✓ | | Debian | ✓ | ✓ | | Fedora | ✓ | ✓ | | RHEL | ✓ | ✓ | | Ubuntu | ✓ | ✓ | | SUSE | ✓ | ✓ | | macOS | ✓ | ✓ | | Rocky Linux | ✓ | ✓ | | Oracle Linux | ✓ | ✓ | | Alma Linux | ✓ | ✓ | | openKylin | ✓ | ✓ | | Binaries | ✓ | ✓ | | openEuler | ✓ | ✓ |
This does not mean that LDNMP only supports these distributions. Essentially, LDNMP should be able to run well on any certified Docker environment.
LDNMP Supported Technology Stack
| Service | Version | | ------- | ------ | | Nginx | 1.27.x | | MySQL | 9.3.x | | PHP | 8.4.x | | Adminer | latest | | Redis | 8.0.x |
The application version is updated to stay in sync with the official releases.
Directory Structure
| Relative Directory| Description | | ----------------- | ----------------------------- | | ./apps/mysql/conf | MySQL configuration file directory | | ./apps/mysql/data | MySQL data storage directory | | ./apps/mysql/logs | MySQL logs directory | | ./apps/nginx | Nginx configuration file directory | | ./apps/nginx/ssl | Nginx SSL certificate storage directory | | ./apps/nginx/logs | Nginx logs directory | | ./web | Website storage directory | | ./apps/php | PHP configuration file directory | | ./apps/php/logs | PHP-FPM logs directory | | ./apps/php/etc | php.ini and php-fpm.conf configuration files | | ./apps/redis/conf | Redis configuration file directory | | ./apps/redis/data | Redis data storage directory |
Edit the docker-compose.yaml file in the installation directory.
Installed and Supported PHP Extensions
| Extension | PHP 8.5 | PHP 8.4 | PHP 8.3 | |---------------------|---------|---------|---------| | amqp | | ✓ | ✓ | | apcu | ✓ | ✓ | ✓ | | apcu_bc | | | | | ast | ✓ | ✓ | ✓ | | bcmath | ✓ | ✓ | ✓ | | bitset | ✓ | ✓ | ✓ | | blackfire | | ✓ | ✓ | | brotli | ✓ | ✓ | ✓ | | bz2 | ✓ | ✓ | ✓ | | calendar | ✓ | ✓ | ✓ | | cassandra* | ✓ | ✓ | ✓ | | cmark | | | | | csv | ✓ | ✓ | ✓ | | dba | ✓ | ✓ | ✓ | | ddtrace* | ✓ | ✓ | ✓ | | decimal | ✓ | ✓ | ✓ | | ds | ✓ | ✓ | ✓ | | ecma_intl* | | | ✓ | | enchant | ✓ | ✓ | ✓ | | ev | ✓ | ✓ | ✓ | | event | ✓ | ✓ | ✓ | | excimer | ✓ | ✓ | ✓ | | exif | ✓ | ✓ | ✓ | | ffi | ✓ | ✓ | ✓ | | ftp | ✓ | ✓ | ✓ | | gd | ✓ | ✓ | ✓ | | gearman | | ✓ | ✓ | | geoip | | | | | geos* | | ✓ | ✓ | | geospatial | ✓ | ✓ | ✓ | | gettext | ✓ | ✓ | ✓ | | gmagick | | ✓ | ✓ | | gmp | ✓ | ✓ | ✓ | | gnupg | ✓ | ✓ | ✓ | | grpc | | ✓ | ✓ | | http | ✓ | ✓ | ✓ | | igbinary | ✓ | ✓ | ✓ | | imagick | ✓ | ✓ | ✓ | | imap | ✓ | ✓ | ✓ | | inotify | ✓ | ✓ | ✓ | | interbase | | | | | intl | ✓ | ✓ | ✓ | | ion | ✓ | ✓ | ✓ | | ioncube_loader | | ✓ | ✓ | | ip2location | ✓ | ✓ | ✓ | | jsmin | | | | | json_post | ✓ | ✓ | ✓ | | jsonpath | ✓ | ✓ | ✓ | | ldap | ✓ | ✓ | ✓ | | luasandbox | | ✓ | ✓ | | lz4* | ✓ | ✓ | ✓ | | lzf | ✓ | ✓ | ✓ | | mailparse | ✓ | ✓ | ✓ | | maxminddb | ✓ | ✓ | ✓ | | mcrypt | ✓ | ✓ | ✓ | | md4c | ✓ | ✓ | ✓ | | memcache | | ✓ | | | memcached | ✓ | ✓ | ✓ | | memprof* | ✓ | ✓ | ✓ | | mongo | | | | | mongodb | ✓ | ✓ | ✓ | | mosquitto | | | | | msgpack | ✓ | ✓ | ✓ | | mssql | | | | | mysql | | | | | mysqli | ✓ | ✓ | ✓ | | newrelic | | ✓ | ✓ | | nsq | | ✓ | ✓ | | oauth | ✓ | ✓ | ✓ | | oci8 | ✓ | ✓ | ✓ | | odbc | ✓ | ✓ | ✓ | | opcache | ✓ | ✓ | ✓ | | opencensus | | | ✓ | | openswoole | | ✓ | ✓ | | opentelemetry | ✓ | ✓ | ✓ | | operator | ✓ | ✓ | ✓ | | parallel* | ✓ | ✓ | ✓ | | parle* | | ✓ | ✓ | | pcntl | ✓ | ✓ | ✓ | | pcov | ✓ | ✓ | ✓ | | pdo_dblib | ✓ | ✓ | ✓ | | pdo_firebird* | ✓ | ✓ | ✓ | | pdo_mysql | ✓ | ✓ | ✓ | | pdo_oci | | ✓ | | | pdo_odbc | ✓ | ✓ | ✓ | | pdo_pgsql | ✓ | ✓ | ✓ | | pdo_sqlsrv* | | ✓ | | | pgsql | ✓ | ✓ | ✓ | | phalcon | | ✓ | ✓ | | php_trie | | ✓ | ✓ | | phpy* | ✓ | ✓ | ✓ | | pkcs11 | ✓ | ✓ | ✓ | | pq | ✓ | ✓ | ✓ | | propro | | | | | protobuf | ✓ | ✓ | ✓ | | pspell | ✓ | ✓ | ✓ | | psr | ✓ | ✓ | ✓ | | pthreads* | | | | | raphf | ✓ | ✓ | ✓ | | rdkafka | ✓ | ✓ | ✓ | | recode | | | | | redis | ✓ | ✓ | ✓ | | relay | ✓ | ✓ | ✓ | | saxon* | ✓ | ✓ | ✓ | | seasclick | ✓ | ✓ | ✓ | | seaslog | | | ✓ | | shmop | ✓ | ✓ | ✓ | | simdjson* | ✓ | ✓ | ✓ | | smbclient | ✓ | ✓ | ✓ | | snappy | ✓ | ✓ | ✓ | | snmp | ✓ | ✓ | ✓ | | snuffleupagus | | ✓ | ✓ | | soap | ✓ | ✓ | ✓ | | sockets | ✓ | ✓ | ✓ | | sodium* | | ✓ | | | solr | ✓ | ✓ | ✓ | | sourceguardian | | ✓ | ✓ | | spx | ✓ | ✓ | ✓ | | sqlsrv* | ✓ | ✓ | | | ssh2 | ✓ | ✓ | ✓ | | stomp | | ✓ | ✓ | | swoole | ✓ | ✓ | | | sybase_ct | | | | | sync |
Related Skills
node-connect
344.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
prose
344.4kOpenProse VM skill pack. Activate on any `prose` command, .prose files, or OpenProse mentions; orchestrates multi-agent workflows.
frontend-design
99.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
