1. file_get_contents failed to open stream
新部署项目,访问日志记录这个错误 : Severity: Warning --> file_get_contents(http://****.com:**) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: no suitable wrapper could be found /data/release/******/service/base/Http.php 79
此警告说服务器阻止访问远程文件,修改php.ini
allow_url_fopen = Off
allow_url_include = Off
改成
allow_url_fopen = On
allow_url_include = On
重启php-fpm或者重启web服务。