我将一个非常简单的 php 网页部署到 AWS ElasticBeanstalk 实例中。该文件立即失败
<?php
require_once('sdk.class.php');
// more code...
我可以从 /var/log/httpd/application-error_log 看到 sdk.class.php 丢失:
[Wed Jun 13 03:30:15 2012] [error] [client 127.0.0.1] PHP Stack trace:
[Wed Jun 13 03:30:15 2012] [error] [client 127.0.0.1] PHP 1. {main}() /var/www/html/index.php:0
[Wed Jun 13 03:30:45 2012] [error] [client 127.0.0.1] PHP Warning: require_once(sdk.class.php): failed to open stream: No such file or directory in /var/www/html/index.php on line 9
[Wed Jun 13 03:30:45 2012] [error] [client 127.0.0.1] PHP Stack trace:
[Wed Jun 13 03:30:45 2012] [error] [client 127.0.0.1] PHP 1. {main}() /var/www/html/index.php:0
[Wed Jun 13 03:30:45 2012] [error] [client 127.0.0.1] PHP Fatal error: require_once(): Failed opening required 'sdk.class.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/index.php on line 9
sdk.class.php 不应该默认包含在每个 ElasticBeanstalk 实例中吗?还是我错过了什么?该代码在我正确安装和配置了 sdk.class.php 的笔记本上运行良好。
谢谢