Page 1 of 1

Max file upload problem

Posted: 22 Sep 2005, 22:14
by Grend
Gonna take another crack at finding a solution to this problem:

I'm using Mantis 1.0.0rc1 installed on a RedHat Linux 9.0 server. My file uploads are set to FTP and for the most part work flawlessly as long as the files are under 600k in size. Above that, and mozilla gives a "document contains no data" error and IE complains "cannot find server or dns error".

relevant settings:
/etc/php.ini
memory_limit = 32M
max_execution_time = 60
post_max_size = 8M
upload_max_filesize = 2M

config_defaults_inc.php:
$g_max_file_size = 5000000; # 5 MB

Please! Anyone... any ideas on what's happening?

Found the answer

Posted: 23 Sep 2005, 23:19
by Grend
Okay, after some snooping around, I found the answer. On my server, there's a php.conf file that happens to live in:

/etc/httpd/conf.d/php.conf (your configuration may differ)

The default entry was as follows:
LimitRequestBody 524288

This appears to limit the max file size to 524k. I simply increased the value (i.e. LimitRequestBody 2048000) and voila... I can upload larger files now