Author Topic: Maximum File Upload - How to increase  (Read 618 times)

Ryan

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Maximum File Upload - How to increase
« on: October 19, 2009, 09:29:39 AM »
Hi Everyone,

Fist off thanks for the awesome CMS,

I am having trouble with uploading files through the page editor, after a bit of playing around I realised it was any files over 2Mb.

I tried a few .htaccess additions such as:

php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200

but this seems to crash the entire site any thoughts on how to set the limit higher eg. 10Mb

Thanks in advance,

Ryan

Xander

  • Developer
  • Administrator
  • Full Member
  • *****
  • Posts: 240
  • Karma: +5/-0
    • View Profile
    • CompactCMS.nl
Re: Maximum File Upload - How to increase
« Reply #1 on: October 21, 2009, 01:38:37 AM »
Just as a quick note (this is my last week of midterms :)): you should be able (as you indicated) to use the php_value upload_max_filesize 20M line to configure this setting in your .htaccess file. If this doesn't work it is most likely due to a server configuration. In CompactCMS there is no restriction on file sizes anywhere in the project (it's not CCMS to manage).

I recon that the extensiveness of the .htaccess file could cause trouble here. You could try (as a test) to just add this in your .htaccess (all other removed)

Quote
Options +FollowSymLinks
RewriteEngine On

RewriteBase /

RewriteRule ^([^/]+)\.html$             index.php?page=$1 [L]
RewriteRule ^print/([^/]+)\.html$          afdrukken.php?page=$1 [L]
RewriteRule ^admin/includes/js/(.+\.js)$    admin/includes/combine.inc.php?type=javascript&files=$1 [L]
RewriteRule ^admin/img/styles/(.+\.css)$    admin/includes/combine.inc.php?type=css&files=$1 [L]
RewriteRule ^sitemap\.xml$                lib/sitemap.php [L]

php_value upload_max_filesize 20M

If that does work, then it's due to the .htaccess file of CCMS. Otherwise it's a server setting that needs changing. Check whether you have access to your own personal php.ini file (that overrides the server default) or consult your hosting provider.

Let me know!
Xander.

P.s.: I'll be finished Friday, then will enjoy the weekend to relax and will try to fill contents again for Wiki and other pages, after which I'd like to work towards releasing CCMS 1.3.3.
Don't ever hold back your suggestions. Help me either to improve CompactCMS or spread the word about it on sites such as Twitter, Digg, StumbleUpon, etc :). Thanks!

Ryan

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Maximum File Upload - How to increase
« Reply #2 on: October 21, 2009, 05:02:06 AM »
Thanks Xander,

Unfortunately the same thing happened, as soon as I try to access the admin area the page is blank.

I am unable to access the php.ini as my hosting doesn't allow it.

I will try a few other things and get back to you