我在AWS ElasticBeanstalk實例中部署了一個非常簡單的php網頁。該文件失敗之後AWS Beanstalk缺失sdk.class.php
<?php
require_once('sdk.class.php');
// more code...
我可以在/ var /日誌/的httpd /應用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。
謝謝
如果你滿意你的回答你問題請將其標記爲接受的答案。 – Nick
+1用於跟蹤您的解決方案,謝謝! –
當您的實例被替換時,這會突然失敗。 n0mad的答案是要走的路。 – Nestor