max_upload_size isn't updating in CMSMS 1.9.4.2

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
bryan

max_upload_size isn't updating in CMSMS 1.9.4.2

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: max_upload_size isn't updating in CMSMS 1.9.4.2

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

Re: max_upload_size isn't updating in CMSMS 1.9.4.2

Post 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.
Locked

Return to “[locked] Installation, Setup and Upgrade”