Max file upload problem

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Grend
Posts: 13
Joined: 01 Jun 2005, 20:36

Max file upload problem

Post 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?
Grend
Posts: 13
Joined: 01 Jun 2005, 20:36

Found the answer

Post 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
Post Reply