我一直在尝试重新配置我的apache
并php.ini
允许上传大文件。因此我更改了以下变量:
/httpd/conf/httpd.conf:
超时 7200 代理超时 7200
/etc/php.ini:
post_max_size = 1024M ; Maximum size of POST data that PHP will accept.
max_execution_time = 7200 ; Maximum execution time of each script, in seconds
max_input_time = 7200 ; Maximum amount of time each script may spend parsing request data
memory_limit =1024M ; Maximum amount of memory a script may consume
file_uploads = On ; Whether to allow HTTP file uploads.
upload_max_filesize = 1024M ; Maximum allowed size for uploaded files.
PHP 脚本 - 上传前:
set_time_limit(0);
回应是:
324(net::ERR_EMPTY_RESPONSE)
请注意上传的文件正确地存储在服务器上,所以上传过程是成功的,但我一直收到这个错误。
有什么提示吗?
阿隆·科根