SkillAgentSearch skills...

Ldnmp

docker-compose LNMP (Nginx, PHP, MySQL, Redis) for CentOS/Redhat Debian macOS and Ubuntu

Install / Use

/learn @bdbin/Ldnmp
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

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

View on GitHub
GitHub Stars18
CategoryDevelopment
Updated26d ago
Forks2

Languages

PHP

Security Score

95/100

Audited on Mar 6, 2026

No findings