php+apache 上传文件 报 Internal Server Error 500

修改apache 的 http.conf 文件

<IfModule mod_fcgid.c> AddHandler fcgid-script .fcgi FcgidIOTimeout 3600 FcgidConnectTimeout 3600 FcgidBusyScanInterval 3600 FcgidBusyTimeout 3600 FcgidErrorScanInterval 3600 FcgidIdleScanInterval 3600 FcgidIdleTimeout 3600 FcgidProcessLifeTime 3600 FcgidZombieScanInterval 3600 MaxRequestLen 524288000 // 上传允许最大值 </IfModule>
修改php.ini
max_execution_time
300 //最大脚本运行时间 max_input_time 200 //最大输入时间 memory_limit 128M //脚本内存限制 post_max_size 1024M //POST数据最大尺寸 file_uploads On //允许上传 upload_max_filesize 1024M //允许上传文件的最大尺寸 max_file_uploads 20 //允许同时上传文件的最大数量 default_socket_timeout 200 //Socket超时时间

还有一个问题在使用了SSL证书的时候,上传文件容易造成无返回数据问题,暂不知原因。

posted @ 2020-01-03 15:53  向往全栈  阅读(603)  评论(0编辑  收藏  举报