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輸入進去


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM