PHP上传和内部服务器错误 [英] php upload and internal server error
问题描述
我正在使用带有php的html表单将数据上传到mysql.
i am using an html form with php to upload data to mysql.
当我在笔记本电脑(沼泽)上使用该表单时,该表单正常工作,但是当我将站点上传到专用服务器(ispconfig)上时,出现此错误
the form is working properly when i am using it on my laptop (wamp) but when i uploaded the site on my dedicated server (ispconfig) get this error
内部服务器错误
服务器遇到内部错误或配置错误,无法完成您的请求.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
我尝试更改php.ini中的值
i tried changing the values of the php.ini in
post_max_size 64M
upload_max_filesize 64M
max_input_time 3000
max_execution_time 3000
和app中的
memory_limit 96M
post_max_size 64M
upload_max_filesize 64M
但我仍然无法上传.
感谢您阅读这篇文章.
推荐答案
您需要增加httpd.conf
文件中的FcgidMaxRequestLen
使用类似
FcgidMaxRequestLen 67108864
警告
在2.3.6之前,此选项默认为1GB.大多数早期版本的用户 应该使用此指令设置更合理的限制.
Before 2.3.6, this defaulted to 1GB. Most users of earlier versions should use this directive to set a more reasonable limit.
这篇关于PHP上传和内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!