轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥7起我的订单
文档
工具
提交工单页面收录
热门搜索:
moodle-php-apache

moodlehq/moodle-php-apache

moodlehq
自动构建

为Moodle配置的Apache/PHP环境,包含所有支持的数据库驱动

57 次收藏下载次数: 0状态:自动构建维护者:moodlehq仓库类型:镜像最近更新:21 天前
让 AI 帮你使用轩辕镜像? · 展开查看说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

DockerHub 官方简介
轩辕镜像中文简介
标签列表
镜像标签列表与下载命令
轩辕镜像,快一点,稳很多。
点击查看

moodle-php-apache: A Moodle PHP Environment

A Moodle PHP environment configured for Moodle development based on https://hub.docker.com/_/php/.

Versions

PHP VersionVariantTagsStatusNotes
PHP 8.4Bookwormdevhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=main](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
PHP 8.4Bookworm8.4, 8.4-bookwormhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.4-bookworm](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
PHP 8.3Bookworm8.3, 8.3-bookwormhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.3-bookworm](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
PHP 8.2Bookworm8.2, 8.2-bookwormhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.2-bookworm](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
PHP 8.1Bookworm8.1, 8.1-bookwormhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.1-bookworm](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
PHP 8.4Bullseye8.4-bullseyehttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.4-bullseye](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
PHP 8.3Bullseye8.3-bullseyehttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.3-bullseye](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
PHP 8.2Bullseye8.2-bullseyehttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.2-bullseye](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
PHP 8.1Bullseye8.1-bullseyehttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.1-bullseye](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)
PHP 8.0Bullseye8.0, 8.0-bullseyehttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.0-bullseye](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)PHP 8.0 EOL
PHP 7.4Bullseye7.4, 7.4-bullseyehttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=7.4-bullseye](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)PHP 7.4 EOL
PHP 8.2Buster8.2-busterhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.2-buster](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)Buster EOL. Not updated since 8.2.7, June 2023
PHP 8.1Buster8.1-busterhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.1-buster](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)Buster EOL. Not updated since 8.1.20, June 2023
PHP 8.0Buster8.0-busterhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=8.0-buster](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)Buster and PHP 8.0 EOL
PHP 7.4Buster7.4-busterhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=7.4-buster](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)Buster and PHP 7.4 EOL
PHP 7.3Buster7.3, 7.3-busterhttps://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml/badge.svg?branch=7.3-buster](https://github.com/moodlehq/moodle-php-apache/actions/workflows/test_buildx_and_publish.yml)Buster and PHP 7.3 EOL
PHP 7.2Buster7.2, 7.2-buster![Build Status]([***]Buster and PHP 7.2 EOL
PHP 7.1Buster7.1, 7.1-buster![Build Status]([***]Buster and PHP 7.1 EOL
PHP 7.3Stretch7.3-stretch![Build Status]([***]Stretch and PHP 7.3 EOL
PHP 7.2Stretch7.2-stretch![Build Status]([***]Stretch and PHP 7.2 EOL
PHP 7.1Stretch7.1-stretch![Build Status]([***]Stretch and PHP 7.1 EOL
PHP 7.0Stretch7.0, 7.0-stretch![Build Status]([***]Stretch and PHP 7.0 EOL
PHP 5.6Stretch5.6, 5.6-stretch![Build Status]([***]Stretch and PHP 5.6 EOL
PHP 7.1Jessie7.1-jessie![Build Status]([***]Jessie and PHP 7.1 EOL
PHP 7.0Jessie7.0-jessie![Build Status]([***]Jessie and PHP 7.0 EOL
PHP 5.6Jessie5.6-jessie![Build Status]([***]Jessie and PHP 5.6 EOL

Example usage

The following command will expose the current working directory on port 8080:

bash
$ docker run --name web0 -p 8080:80  -v $PWD:/var/www/html moodlehq/moodle-php-apache:8.3

Features

  • Preconfigured with all php extensions required for Moodle development and all database drivers
  • Serves content from /var/www/html or /var/www/html/public (for Moodle 5.1 onwards) by default.
  • Document root can be overridden
  • For PHP 7.3 and up, both linux/amd64 and linux/arm64 images are being built. Note that linux/arm64 doesn't support the sqlsrv and oci extensions yet. Other than that, both architectures work exactly the same.
  • Verified by automated tests.
  • Autobuilt from GHA, on push.
  • Support for entrypoint scripts and PHP Configuration
  • Many common extensions available
  • Note that PHP 8.4 images do not include oci extensions as these are no longer supported by Moodle 5.0 onwards.

Configuration

Apache Configuration

This image makes use of the Apache HTTPD server to serve all content. It requires minimal manual configuration.

The Apache DocumentRoot directive can be configured using the APACHE_DOCUMENT_ROOT environment variable, for example:

bash
docker run \
    --name web0 \
    -p 8080:80 \
    -v $PWD/moodle:/srv/moodle
    -e APACHE_DOCUMENT_ROOT=/srv/moodle \
    moodle-php-apache:latest

Note: Specifying a DocumentRoot will override the default root, and will prevent the ability for the image to automatically configure any Moodle-specific configuration.

PHP Configuration

As a lightweight alternative to a full PHP configuration file, you can specify a set of prefixed environment variables when starting your container with these variables turned into ini-format configuration.

Any environment variable whose name is prefixed with PHP_INI- will have the prefix removed, and will be added to a new ini file before the main command starts.

bash
docker run \
    --name web0 \
    -p 8080:80 \
    -v $PWD/moodle:/var/www/html
    -e PHP_INI-upload_max_filesize=200M \
    -e PHP_INI-post_max_size=210M \
    moodle-php-apache:latest

Directories

To facilitate testing and easy setup the following directories are created and owned by www-data by default:

  • /var/www/moodledata
  • /var/www/phpunitdata
  • /var/www/behatdata
  • /var/www/behatfaildumps

Initialisation scripts

This image supports custom initialisation scripts using the the docker-entrypoint.d directory. These may be in the following formats:

  • a non-executable .sh script, which will be sourced and alter the current context;
  • an executable .sh script, which will be executed in the current context;
  • a .ini file. which will be copied into the PHP Configuration directory (/usr/local/etc/php/conf.d.)

The following scripts are included as standard:

  • 10-wwwroot.sh - a non-executable script used to guess the APACHE_DOCUMENT_ROOT if one is not provided.

These scripts cannot be removed, but may be disabled by creating a file with a matching file name in your own docker-entrypoint.d location.

Other scripts may also be provided, for example, to configure PHP to support a higher upload_max_filesize option you might add the following to a config/10-uploads.ini file:

; Specify a max filesize of 200M for uploads.
upload_max_filesize = 200M
post_max_size = 210M

When starting your container you could do so passing in the config directory:

docker run \
    --name web0 \
    -p 8080:80 \
    -v $PWD/moodle:/var/www/html
    -v $PWD/config:/docker-entrypoint.d \
    moodle-php-apache:latest

These initialization files will be executed in sorted name order as defined by the current locale, which defaults to en_US.utf8.

Extensions

The following extensions are included as standard:

  • apcu
  • exif
  • gd
  • igbinary
  • intl
  • ldap
  • memcached
  • mysqli
  • oci8
  • opcache
  • pcov
  • pgsql
  • redis
  • soap
  • solr
  • sqlsrv
  • timezonedb
  • uuid
  • xdebug
  • xhprof
  • xsl
  • zip

All of the above extensions are enabled by default, except for:

  • pcov
  • xdebug
  • xhprof

Enabling optional extensions

Several extensions are installed, but not enabled. You can enable them easily.

xdebug

The xdebug extension can be enabled by specifying the following environment variable when starting the container:

bash
PHP_EXTENSION_xdebug=1

xhprof

The xdebug extension can be enabled by specifying the following environment variable when starting the container:

bash
PHP_EXTENSION_xhprof=1

pcov

The pcov extension is typically not used in the web UI, but is widely used for code coverage generation in unit testing.

It can be enabled by specifying the following environment variable when starting the container:

bash
PHP_INI-pcov.enabled=1

See also

This container is part of a set of containers for Moodle development, see also:

  • https://github.com/moodlehq/moodle-docker a docker-composer based set of tools to get Moodle development running with zero configuration
  • https://github.com/moodlehq/moodle-db-mssql Microsoft SQL Server for Linux configured for Moodle development
  • https://github.com/moodlehq/moodle-db-oracle Oracle XE configured for Moodle development

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 moodle-php-apache 镜像标签

docker pull docker.xuanyuan.run/moodlehq/moodle-php-apache:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull moodlehq/moodle-php-apache:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

一键安装

一键安装 Docker

Linux Docker 一键安装

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

免费版与专业版区别

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
moodlehq/moodle-php-apache
教程轩辕镜像功能与使用教程
定价查看流量套餐与价格
热门查看热门 Docker 镜像推荐
博客Docker 镜像公告与技术博客
官方公众号:源码跳动|官方技术交流群:831623681
官方公众号:源码跳动|官方技术交流群:|问题咨询请:提交工单
专业版 · 高速稳定拉取镜像

高速镜像下载 · 在线技术支持 · 99.95% SLA 保障

50GB 仅 ¥7/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥7/年
高速镜像下载·在线技术支持·99.95% SLA 保障
商务合作:点击复制邮箱
用户协议·隐私政策·©2024-2026 源码跳动
用户协议·隐私政策©2024-2026 杭州源码跳动科技有限公司商务合作:点击复制邮箱

更多 moodle-php-apache 镜像推荐

moodlehq/moodleapp logo

moodlehq/moodleapp

moodlehq
Moodle官方移动应用的最新版本,提供移动设备上访问Moodle学习平台的功能
19 次收藏50万+ 次下载
22 天前更新
moodlehq/moodle-exttests logo

moodlehq/moodle-exttests

moodlehq
用于通过HTTP在本地访问Moodle外部测试文件的Docker镜像,支持Moodle单元测试下载功能验证,确保测试文件未修改以获得一致结果。
1 次收藏100万+ 次下载
2 年前更新
moodlehq/moodle-workplace-plugin-ci logo

moodlehq/moodle-workplace-plugin-ci

moodlehq
供Workplace团队在GitLab环境中运行moodle-plugin-ci的Docker镜像,用于Moodle插件开发的持续集成流程。
1 次收藏10万+ 次下载
3 个月前更新
moodlehq/bigbluebutton_mock logo

moodlehq/bigbluebutton_mock

moodlehq
BigBlueButton模拟服务器,用于支持BBB模块集成测试,提供模拟API端点,便于自动化测试和开发环境配置,支持并行运行和测试数据管理。
10万+ 次下载
1 年前更新
moodlehq/moodle-db-mssql logo

moodlehq/moodle-db-mssql

moodlehq
为Moodle开发配置的Microsoft SQL Server数据库,基于Linux版SQL Server,预配置数据库以支持Moodle安装。
1万+ 次下载
2 年前更新
moodlehq/moodle-db-oracle-r2 logo

moodlehq/moodle-db-oracle-r2

moodlehq
为Moodle开发配置的Oracle数据库镜像,支持11g、21c和23c版本,预配置数据库、用户及moodlelib包,适用于开发和测试环境。
1万+ 次下载
2 年前更新

查看更多 moodle-php-apache 相关镜像

更多相关 Docker 镜像与资源

以下是 moodlehq/moodle-php-apache 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

  • library/php Docker 镜像说明(PHP 运行时,适合传统 Web 应用)
  • serversideup/php Docker 镜像说明(PHP 运行时环境,ServerSideUp 维护版本)
  • cimg/php Docker 镜像说明(PHP 运行时,CI/CD 优化版本,适合持续集成环境)
  • shinsenter/php Docker 镜像说明(Shinsenter PHP 运行时,适合 PHP Web 应用部署)
  • chainguard/php Docker 镜像说明(Chainguard 安全加固 PHP 镜像,适合供应链安全 PHP 服务)