laravel5.3搭建过程中出现问题

composer install命令出错-->

 [Composer\Downloader\TransportException]
  Your configuration does not allow connections to http://packagist.phpcomposer.com/packages.json. See https://getcom
  poser.org/doc/06-config.md#secure-http for details.

解决方法:因为镜像使用用的是http,而原地址是需要https,所以配置下关掉https就好了。

    {  
        "config": {  
            "secure-http": false  
        }  
    }  

 

报错信息:

Warning: Accessing packagist.phpcomposer.com over http which is an insecure protocol.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/framework v5.3.9 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.8 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.7 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.6 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.5 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.4 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.3 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.2 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.18 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.17 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.16 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.15 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.14 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.13 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.12 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.11 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.10 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.1 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - laravel/framework v5.3.0 requires ext-openssl * -> the requested PHP extension openssl is missing from your system.
    - Installation request for laravel/framework 5.3.* -> satisfiable by laravel/framework[v5.3.0, v5.3.1, v5.3.10, v5.3.11, v5.3.12, v5.3.13, v5.3.14, v5.3.15, v5.3.16, v5.3.17, v5.3.18, v5.3.2, v5.3.3, v5.3.4, v5.3.5, v5.3.6, v5.3.7, v5.3.8, v5.3.9].

解决方案:修改php.ini开启openssl拓展

 

Laravel 出现"RuntimeException inEncrypter.php line 43: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."问题的解决办法——>

首先在cmd命令行下定位到项目所在的根目录下,接着输入:

php artisan key:generate 

这时候项目根目录下的.env文件里的APP_KEY应该会有值了:

若没有,将上面的key输入进去

转载于:https://www.cnblogs.com/vincebye/p/5947739.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值