Page 1 of 1

max_upload_size isn't updating in CMSMS 1.9.4.2

Posted: Thu Aug 04, 2011 7:05 pm
by bryan
I'm not able to upload files over 2Mb on a CMSMS site. I just upgraded from 1.9.2 to 1.9.4.2 to eliminate any known bugs and the System Information page shows no errors, warnings, or conflicts. I have the following settings in the root .htaccess file:

Code: Select all

php_value  upload_max_filesize  10M
php_value  post_max_size  20M
php_value  memory_limit  24M 
I've cleared the cache and even tried adding the following to my config.php file:

Code: Select all

$config['max_upload_size'] = 10485760;
No matter what I do, I'm not able to change the max_upload_size value from 2000000 on the System Information page. More importantly, I can't upload files larger than 2Mb.

I know this issue has been mentioned a few times, but I couldn't find any forum posts that were able to help me resolve my issue. My apologies if this is a duplicate post. Please let me know if I missed something.

Re: max_upload_size isn't updating in CMSMS 1.9.4.2

Posted: Thu Aug 04, 2011 7:30 pm
by RonnyK
I think that you are not allowed to override the php.ini settings.

If you have access to php.ini, change the settings there, and restart apache to take effect.

Ronny

Re: max_upload_size isn't updating in CMSMS 1.9.4.2

Posted: Fri Aug 05, 2011 2:46 pm
by bryan
Oh yeah, I forgot to mention that .htaccess overrides are already enabled in my /etc/httpd/conf.d/zz010_psa_httpd.conf file:

Code: Select all

<Directory "/var/www/vhosts">
	AllowOverride All
	Options SymLinksIfOwnerMatch
	Order allow,deny
	Allow from all
	<IfModule sapi_apache2.c>
	php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
	php_admin_flag engine off
	</IfModule>
</Directory>
And the /etc/php.ini file has the following values set:

Code: Select all

upload_max_filesize = 5M
post_max_size = 10M
Which I verified using phpinfo(); in an unaltered vhost diretory. It's probably worth noting that I'm running Plesk 9.2 on CentOS 5.3 / Apache 2.2.3 / PHP 5.2.16.