Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
633 views
in Technique[技术] by (71.8m points)

post - php upload and internal server error

i am using an html form with php to upload data to mysql.

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.

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

and the ones in the apache also in

memory_limit 96M
post_max_size 64M
upload_max_filesize 64M

but i still cant upload.

thank you for reading this.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You need to increase FcgidMaxRequestLen in httpd.conf file

use something like

FcgidMaxRequestLen 67108864

From FcgidMaxRequestLen Directive

Warning

Before 2.3.6, this defaulted to 1GB. Most users of earlier versions should use this directive to set a more reasonable limit.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...