[英]“An error occurred while processing this directive”
I cannot upload large files. 我无法上传大文件。 I've set
php.ini
as such: 我已经将
php.ini
设置为:
max_execution_time = 3600
max_input_time = 600
memory_limit = 100M
post_max_size = 100M
file_uploads = On
upload_max_filesize = 100M
It returns a 500 error: an error occurred while processing this directive
它返回500错误:
an error occurred while processing this directive
Why is this? 为什么是这样? And more importantly, how can I fix it?
更重要的是,我该如何解决?
500 error is not an error itself, it's just a banner that reads "There is an error somewhere! See error log for the details". 500错误本身并不是错误,它只是一条标语,上面写着“某处存在错误!有关详细信息,请参见错误日志”。
Looks like it's not a php problem, but a web-server one. 看起来这不是PHP问题,而是Web服务器问题。 But I hate to guess anyway.
但是我还是很想猜。 Better to take a look into error log.
最好看看错误日志。
It could be SSI problem. 可能是SSI问题。 Maybe your webserver is having a problem to read some scripts which have SSI commands in it.
也许您的网络服务器在读取其中包含SSI命令的某些脚本时遇到问题。 Try to take a look at the configuration.
尝试看一下配置。 If you use Apache, try to check the AddHandler setting.
如果使用Apache,请尝试检查AddHandler设置。 Hope this helps.
希望这可以帮助。
If you are on a shared server, I imagine the admins are overriding your ini settings. 如果您在共享服务器上,我想管理员将覆盖您的ini设置。 Use http://php.net/manual/en/function.phpinfo.php to confirm your settings are actually taking effect.
使用http://php.net/manual/zh-CN/function.phpinfo.php确认您的设置实际上已生效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.