Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
打开Apache配置httpd.conf。在最后添加FcgidMaxRequestLen指令一个足够大的值(以字节为单位),例如
FcgidMaxRequestLen 5120000000
最后重新启动Apache
php大文件上传设置php.ini
file_uploads = on
max_execution_time = 600
max_input_time = 600
memory_limit = 1024M//占内存
post_max_size = 1024M
upload_max_filesize = 1024M
file_uploads = on ;
是否允许通过HTTP上传文件的开关。默认为ON即是开
upload_tmp_dir ;
文件上传至服务器上存储临时文件的地方,如果没指定就会用系统默认的临时文件夹
upload_max_filesize = 32m ;
允许上传文件大小的最大值。默认为2M
post_max_size = 32m ;
指通过表单POST给PHP的所能接收的最大值,包括表单里的所有值。默认为32M
max_execution_time = 600 ;每个PHP页面运行的最大时间值(秒),默认30秒
max_input_time = 600 ;每个PHP页面接收数据所需的最大时间,默认60秒
memory_limit = 8m ;每个PHP页面所吃掉的最大内存,默认8M
继续阅读与本文标签相同的文章
dedecms目录结构
-
阿里云Linux服务器动态扩容(阿里云服务器扩容后磁盘空间无变化解决方法)
2020-11-30栏目: 建站教程
-
6个SEM实战技巧,大神手把手教你做推广!
2020-07-20栏目: SEM
-
苏州美食推荐,持续更新
2020-06-17栏目: 生活笔记
-
企业如何玩转视频号
2020-05-12栏目: 运营杂谈
-
SEO关键词排名该掌握的核心优化技巧
2020-05-12栏目: SEO
发表评论 已发布 0 条