HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


20MB File Uploads

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#34315 (In Topic #7731)
Joe
Avatar

Honoured member

The servers default max_upload_filesize is 2MB, so I created a custom php.ini file in my root directory (I set max_upload_filesize to 20MB). When I try to bulk-import images into the gallery, ocPortal is telling me that the maximum filesize is still 2MB. Is there a setting in the configuration that's putting a limit on this, or is ocPortal relying on the servers configuration setting (which I guess would mean my custom php.ini file isn't working correctly)?

Back to the top
 
Posted
Rating:
#34318
Avatar

There's also post_max_size. On most servers php.ini settings are overridden with an .htaccess file, not a php.ini one (our recommended.htaccess file can be renamed to .htaccess to do that).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#34327
Joe
Avatar

Honoured member

I see. Well according to my host, you can "create custom php.ini files and place them in the webroot of your domain". I'll try adding that setting in my custom file. If this doesn't work, I'll try using .htaccess.

Back to the top
 
Posted
Rating:
#34328
Joe
Avatar

Honoured member

Weird. My custom php.ini file isn't working, and I get Internal Server errors when using the .htaccess.

Back to the top
 
Posted
Rating:
#34329
Joe
Avatar

Honoured member

I'm looking at my servers error log, and with php_value entered before the setting in .htaccess, I get this error:

Code

[Sun Aug  5 17:08:55 2007] [alert] [client 72.230.46.122] /home/<hidden>/public_html/<hidden>/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration

When I delete the php_value, I get this error:

Code

[Sun Aug  5 17:13:02 2007] [alert] [client 72.230.46.122] /home/<hidden>/public_html/<hidden>/.htaccess: Invalid command 'post_max_size', perhaps mis-spelled or defined by a module not included in the server configuration

Back to the top
 
Posted
Rating:
#34330
Joe
Avatar

Honoured member

Apparently the server can't read the upload_max_filesize setting either, as I get the same error. :/

Back to the top
 
Posted
Rating:
#34336
Avatar

Looks like you do need to use php.ini, but I'm not sure why this would not be working. Best to ask the web host.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: