Laravel收藏本版 +发表新主题

[安装] 第一次安装Laravel过程记录

[Composer\Downloader\TransportException]  Content-Length mismatch,失败
[Composer\Downloader\TransportException]                                 
  Content-Length mismatch, received 32372 bytes out of the expected 393590

解决办法:
更换源

//中国全量镜像

  1. composer config repo.packagist composer https://packagist.phpcomposer.com
结果:失败 The "https://repo.packagist.org/p/illuminate/contracts.json" file could not be downloaded

//阿里

  1. composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
结果:被 Killed

/usr/local/php/etc/php.ini

更改 memory_limit 为 256M

成功,提示 Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested. 有没影响以后再看

属于网址试试
什么?直接500错误!
因为我禁止了跨目录访问,所以更改
/usr/local/apache/conf/vhost/域名.conf )里的php_admin_value open_basedir参数进行设置

Laravel

OK!出现了!
扫描二维码,手机查看
声明:本文来源于互联网,观点仅代表作者本人,不代表欢乐你我,真实性请妥善甄别。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则