I've just solved this problem and here is a copy of the other thread in which the solution is offered...
It has taken me several months to figure this out but I've finally discoverd what the problem was.
If you are running under phpsuexec or phpcgiwrap, changing the memory values in the .htaccess file are pointless and will result in an error since Apache is no longer involved when running PHP in cgiwrap or phpsuexec. Instead you need to modify a php.ini file. In my situation, I had changed the php.ini to the following value
Code: Select all
upload_max_filesize = 15M ; 4 MB default limit on file
And I also had changed the CMSMS config.php file to this...
Code: Select all
#---------------
#Upload Settings
#---------------
#Maxium upload size (in bytes)?
$config['max_upload_size'] = 15000000;
But still, I was getting the fatal error when attempting to upload files any larger than 8MB. But what I discovered just now, is there is yet another value that must be changed in the php.ini file and that is the "post_max_size" value. Once I increased that value to 15MB as well, the fatal error stopped occurring and I was finally able to upload my 12MB file.
This is the additional value that I had to add to my php.ini file
In the hope that this may help someone else in the future, here is some additional information from usphp.com
post_max_size integer
Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize.
If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.
When an integer is used, the value is measured in bytes. You may also use shorthand notation as described in this FAQ.
If the size of post data is greater than post_max_size, the $_POST and $_FILES superglobals are empty. This can be tracked in various ways, e.g. by passing the $_GET variable to the script processing the data, i.e. , and then checking if $_GET['processed'] is set.
The preceding was found at
http://www.usphp.com/ini.core.html