我正在尝试在Bluemix中的PHP运行时安装和运行Moodle,但在安装并通过mymoodle.mybluemix.net运行应用程序后,服务器返回以下错误:
Warning: require_once(/home/vcap/app/htdocs/lib/classes/component.php):
failed to open stream: No such file or directory in /home/vcap/app/htdocs/install.php
on line 95
Fatal error: require_once(): Failed opening required '/home/vcap/app/htdocs/lib/classes/component.php'
(include_path='../lib/php:/home/vcap/app/lib') in /home/vcap/app/htdocs/install.php on line 95
我在Bluemix中创建并克隆了PHP Runtime到我的localhost,并在那里复制粘贴Moodle源代码分发。它在localhost上运行良好。
注意:当我推送'对于Bluemix,我确实在部署日志中看到了一些错误,但它并没有停止构建和部署包,应用程序正在运行:
ERR The extension 'pcre' is not provided by this buildpack.
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 'reflection' is not provided by this buildpack.
ERR The extension 'spl' is not provided by this buildpack.
[...]
ERR Loading composer repositories with package information
ERR Installing dependencies from lock file
ERR Nothing to install or update
ERR Generating autoload files
因此,我在此处的单独帖子中发布了此问题。 我没有立即看到与此主题中的错误的关系。
感谢任何帮助。我希望能够使用composer或CF的bp-config解决依赖关系,并避免构建我自己的docker容器或VM安装。