灵当CRM

 找回密码
 立即注册
查看: 2551|回复: 0

PHP 上传文件出现 500 Internal server error 解决方法 (上传附件提示“上传出错”)

[复制链接]

1660

主题

1709

帖子

5万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
59050
 楼主| 发表于 2020-5-20 18:03:51 | 显示全部楼层 |阅读模式
PHP 上传文件出现 500 Internal server error 解决方法 (上传附件提示“上传出错”)


1、备份httpd.conf文件

2、打开httpd.conf文件,在文件最下方添加附件中的代码(建议不要直接复制如下代码使用,容易导致乱码
<IfModule mod_fcgid.c>
        AddHandler    fcgid-script .fcgi
        FcgidConnectTimeout  20
        # to get around upload errors when uploading images increase the MaxRequestLen size to 15MB
        MaxRequestLen  15728640
</IfModule>
(使用附件里的“语句”,直接复制上面的可能会导致乱码,   修改前先备份文件!)

3、重启服务(重启Apache)

路径:ldcrm\apache\conf\httpd.conf




PHP 上传文件出现 500 Internal server error 解决方法 .txt (324 Bytes, 下载次数: 452)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

灵当CRM

GMT+8, 2024-3-29 02:53 , Processed in 0.052822 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2008-2022, Tencent Cloud.

沪ICP备08110973号-2

快速回复 返回顶部 返回列表