美文网首页
php 上传文件过大 报错 Internal Server Er

php 上传文件过大 报错 Internal Server Er

作者: 莫奈的有趣灵魂 | 来源:发表于2020-03-05 10:08 被阅读0次

除了更改php.ini相关的配置以外,还要更改apache的httpd.conf文件,加上以下代码,保存,重启apache

<IfModule mod_fcgid.c>
        AddHandler    fcgid-script .fcgi
        FcgidConnectTimeout  20
        # to get around upload errors when uploading images increase the MaxRequestLen size to 100MB  100*1024*1024
        MaxRequestLen  104857600
</IfModule>

相关文章

网友评论

      本文标题:php 上传文件过大 报错 Internal Server Er

      本文链接:https://www.haomeiwen.com/subject/qgdtrhtx.html