AWS EBS include_once" Mail.php"不工作

时间:2017-01-19 17:21:28

标签: php email amazon-web-services elastic-beanstalk pear

我在AWS EBS上有一个php应用程序。每当我运行它时我都会收到此错误

  

警告:require_once(Mail.php):无法打开流:第3行/var/app/current/index.php中没有此类文件或目录致命错误:require_once():无法打开所需的' Mail.php'第3行的/var/app/current/index.php中的(include_path ='。:/ usr / share / pear7:/ usr / share / php7')

导致问题的行是require_once "Mail.php"; 我运行了命令$ pear config-get php_dir$ which pear我分别得到了回复/usr/share/pear7/usr/bin/pear。我该怎么办?在回答之前请记住,我只能使用aws控制台和ssh进行更改。

0 个答案:

没有答案