使用composer安装laravel遇到的一些小问题
2016-05-24 11:42
911 查看
1.Your configuration does not allow connection to http://ooxx/xxoo.git. See https://getcomposer.org/doc/06-config.md#secure-http for details.
镜像使用用的是http,而原地址是需要https,所以配置下关掉https就好了。
解决方案:
设置一个本地或全局的composer配置:
composer config secure-http false
全局设置: composer config -g secure-http false
zlib_decode(): data error
解决方案:
执行
3.can’t create a Laravel project because mcrypt extension is missing
解决方案:
4.用了第三个解决方案后,
解决方案:
镜像使用用的是http,而原地址是需要https,所以配置下关掉https就好了。
解决方案:
设置一个本地或全局的composer配置:
composer config secure-http false
全局设置: composer config -g secure-http false
zlib_decode(): data error
解决方案:
执行
composer self-update即可
3.can’t create a Laravel project because mcrypt extension is missing
解决方案:
brew reinstall php56-mcrypt
4.用了第三个解决方案后,
PHP Warning: PHP Startup: fileinfo: Unable to initialize module Module compiled with module API=20050922, debug=0, thread-safety=0 PHP compiled with module API=20060613, debug=0, thread-safety=0 These options need to match in Unknown on line 0
解决方案:
brew reinstall php56-mcrypt --build-from-source
相关文章推荐
- 一个关于if else容易迷惑的问题
- PHP5.2.*防止Hash冲突拒绝服务攻击的Patch
- 深入理解PHP之匿名函数
- JSP/PHP基于Ajax的分页功能实现
- 关于PHP通过PDO用中文条件查询MySQL的问题。
- 什么是设计模式
- PHP数据库长连接mysql_pconnect的细节
- Patrol 7 架构下?的处理方法
- Php Installing An Expansion
- rem : web app适配的秘密武器
- workerman结合laravel开发在线聊天应用的示例代码
- php7 读取php.ini[4]
- 中病毒后常用的解决方法病毒终极解决方案
- 简单对比分析Ruby on Rails 和 Laravel
- QQ尾巴 InfoMs.Ime 解决方案
- PHP+Apache在Windows 9x下的安装和配置
- IIS 6 的 PHP 最佳配置方法
- 安装Apache和PHP的一些补充
- Linux Apache+MySQL+PHP