在Bluemix PHP运行时安装Moodle:缺少扩展

时间:2015-11-29 22:07:59

标签: php moodle ibm-cloud php-extension

我正在尝试在Bluemix上的默认PHP运行时安装Moodle。但是我遇到了以下缺少扩展的问题:

manifest.yml
buildpack: php_buildpack

我将默认的PHP运行时克隆到我的localhost,将Moodle分发包含在同一个目录中,并可以开箱即用。但是当它上传到Bluemix时我会遇到错误,尽管构建和部署阶段成功了:

ERR The extension 'simplexml' is not provided by this buildpack.
ERR The extension 'tokenizer' is not provided by this buildpack.
ERR The extension 'dom' is not provided by this buildpack.
ERR The extension 'json' is not provided by this buildpack.
ERR The extension 'pcre' is not provided by this buildpack.
ERR The extension 'reflection' is not provided by this buildpack.
ERR The extension 'spl' is not provided by this buildpack.

CF文档说我需要添加一个' .bp-config / options.json' file包含清单的buildpack中缺少的扩展名。所以这是我的options.json

{
  "PHP_EXTENSIONS": [
    "simplexml", 
    "tokenizer",
    "dom",
    "json",
    "pcre",
    "reflection",
    "spl"
  ]
}

之后我仍然在cf-push日志中遇到以下错误:

ERR The extension 'simplexml' is not provided by this buildpack.
ERR The extension 'tokenizer' is not provided by this buildpack.
ERR The extension 'dom' is not provided by this buildpack.
ERR The extension 'json' is not provided by this buildpack.
ERR The extension 'pcre' is not provided by this buildpack.
ERR The extension 'reflection' is not provided by this buildpack. 
ERR The extension 'spl' is not provided by this buildpack.

如果我添加' pcre'对于composer.json文件和更新锁定,它仍然显示相同的错误,尽管现在' pcre'将错误消息排在最前面。

{
    "require":{
        "ext-pcre": "*"
    },
    "require-dev": 
    {
        "phpunit/phpunit": "4.8.*",
        "phpunit/dbUnit": "1.4.*",
        "moodlehq/behat-extension": "1.30.1",
        "ext-pcre": "*"
    }
}

感谢任何帮助。

0 个答案:

没有答案