请知悉:本文最近一次更新为 9年 前,文中内容可能已经过时。

这个情况分两种,一种是一上传就报错,一种是上传一定时间间隔比如30秒就报错。
第一种一上传就报错,主要是由于使用了vhost,vhost中并未包含AllowOverride All,导致的问题。正确的Apache的vhost配置大概如下(WIN主机)

<VirtualHost *:80>
ServerAdmin test.com
DocumentRoot "D:/test.com"
ServerName test.com
ErrorLog "D:/test.com/php-error.log"
##CustomLog "logs/dummy-host2.example.com-Access.log" common
<Directory "D:/test.com">
Options Indexes FollowSymLinks Includes ExecCGI
DirectoryIndex index.html index.htm index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

改好后,重启Apache后,清空浏览器缓存重启浏览器- -就可以上传了。

第二种超时的解决办法:
修改php.ini的php脚本执行超时时间以及附件最大上传的大小后,重启Apache即可解决。


如您从本文得到了有价值的信息或帮助,请考虑扫描文末二维码捐赠和鼓励。

尊重他人劳动成果。转载请务必附上原文链接,我将感激不尽。


与《Discuz! server (io) error解决办法》相关的博文:


留言

avatar
😀
😀😁😂😅😭🤭😋😘🤔😰😱🤪💪👍👎🤝🌹👌