- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用 PHP 7.0,我还在我的 Ubunutu 服务器上使用 Apache。
我已经更新了我的 php.ini
cat /etc/php/7.2/fpm/php.ini
post_max_size = 2000M
upload_max_filesize = 2000M
memory_limit = 4000M
我已经重启了服务
service php7.2-fpm restart
我还是得到了
Illuminate \ Http \ Exceptions \ PostTooLargeException
我还想念什么?我应该对 Apache
做些什么吗?
最佳答案
Note: I was updating the wrong file as I would have use
Nginx
.
因为我使用 Apache,所以我应该更新这个文件
/etc/php/7.2/apache2/php.ini
在对正确的文件进行更改并重新启动后,现在一切都按预期工作。
cat /etc/php/7.2/apache2/php.ini | grep -E 'post_max_size|upload_max_filesize|memory_limit'
memory_limit = 500M
post_max_size = 500M
upload_max_filesize = 500M
关于php - 照亮\Http\Exceptions\PostTooLargeException - Laravel 5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53265608/
当我尝试上传大小超过 2 MB 的文件时,我收到帖子太大异常,并且我已经尝试了所有方法,例如增加 php.ini 文件中的 post_max_size 和 max_upload_size,但我仍然得到
在使用 php -i | 后,我修改了 php.ini 以增加 post_max_size、upload_max_filesize、memory_limit grep php.ini 返回文件位置/e
要重现错误,只需将超过 php.ini 配置中的 post_max_size 的文件上传到 Laravel 中的任何 POST 路由。 我的目标是简单地捕获错误,以便通知用户他上传的文件太大。说: p
我已经配置了 php.ini 文件 (post_max_size=10240M),但它仍然抛出 PostTooLargeException。如何在 Laravel 5.5 中增加上传和下载限制? 最佳
我使用 PHP 7.0,我还在我的 Ubunutu 服务器上使用 Apache。 我已经更新了我的 php.ini cat /etc/php/7.2/fpm/php.ini
我正在尝试上传 26Mb 文件。但我得到了 Illuminate\Http\Exceptions\PostTooLargeException。我更改了 php.ini 文件并重新启动 nginx,fp
我正在尝试处理 PostTooLargeException在我的 Laravel 5.5 应用程序中。 当我尝试通过表单上传太大的文件时,我收到 PostTooLargeException我在 app
我也在尝试上传包含图片的表单。当我提交它。它显示这个错误 ValidatePostSize.php 第 22 行中的 PostTooLargeException: 我该如何解决这个问题? 最佳答案 检
我是一名优秀的程序员,十分优秀!