File Uploading: Max file size limit

File Uploading: Max file size limit

Posted by: stuopa
Posted on: 2008-01-20 15:49:00

Is it possible to raise the max file size upload limit for my Wordpress installation? What's the best to achieve this? ini_set? .htaccess? My own php.ini?

Any help would be appreciated!
Thanks

---------- KekBur.com ----------
Sacrifice the world.

Re: File Uploading: Max file size limit

Posted by: digitalvibe
Posted on: 2008-01-20 16:40:00

Hiya,

You should set up your own Custom PHP.ini

Cheers,
Karl

web design, development & seo by DigitalVibe

Re: File Uploading: Max file size limit

Posted by: stuopa
Posted on: 2008-01-21 03:49:00

Thank you very much for your assistance. Creating my own php.ini did the trick and now I have everything configured as I wanted :)

Regards

---------- KekBur.com ----------
Sacrifice the world.

Re: File Uploading: Max file size limit

Posted by: hsurfer
Posted on: 2008-02-23 10:59:00

you can use a .htaccess file on your folder:

AddHandler application/x-httpd-php .php
php_value post_max_size 150M
php_value upload_max_filesize 150M
php_value memory_limit 250M

Re: File Uploading: Max file size limit

Posted by: scjessey
Posted on: 2008-02-23 14:02:00

In reply to:


you can use a .htaccess file on your folder:

AddHandler application/x-httpd-php .php
php_value post_max_size 150M
php_value upload_max_filesize 150M
php_value memory_limit 250M


No you can't. The only ways to do this are with a custom install, or a custom php.ini.

-- si-blog --

Re: File Uploading: Max file size limit

Posted by: rlparker
Posted on: 2008-02-23 16:44:00

In reply to:

you can use a .htaccess file on your folder:

AddHandler application/x-httpd-php .php
php_value post_max_size 150M
php_value upload_max_filesize 150M
php_value memory_limit 250M


Well, that *seems* to "work", but you probably won't like the results! wink

1) That handler invokes the mod_php installation that *may* be available on your particular server (and may *NOT* be available on *all* servers)

2) It uses mod_php 4.4.8, which can be a problem if you are expecting to be running PHP5 (and some applications *require* PHP5 )

3) mod-php runs as the dhapache user, not *your* user as is normal when running PHP-CGI under suexec, and this can cause major permissions issues with web applications that were installed using permissions appropriate for running under suexec . You will have to open up your permissions for the application to write to your directories - generally *not* a good thing to do.

4) DreamHost may, at any time, remove the ability to run mod_php. It has been "undocumented" and not advertised as a "feature" for a long time now.

In short, this is *not* a good way to attempt to modify your PHP settings for production environments. wink

--rlparker

Re: File Uploading: Max file size limit

Posted by: modocharlie
Posted on: 2008-02-25 19:14:00

Don't mean to steal this topic, but I have a doubt I have never been able to understand.

I understand the default installation of PHP5 runs as CGI.
If, instead of installing my own version of PHP, I configure one of my domains to use its own php.ini (so I can tune up some settings) does it still run as CGI or it goes back to running as a PHP module?

cheers!


Re: File Uploading: Max file size limit

Posted by: rlparker
Posted on: 2008-02-25 19:23:00

In reply to:

If, instead of installing my own version of PHP, I configure one of my domains to use its own php.ini (so I can tune up some settings) does it still run as CGI or it goes back to running as a PHP module?


IF you use the instructions contained in the wiki articles on "php.ini" and "custom phpl.ini", you will still end up running PHP-CGI.

However, if you use the handler information that was shared earlier in this thread, you will end up running mod_php. wink

--rlparker

Re: File Uploading: Max file size limit

Posted by: modocharlie
Posted on: 2008-02-26 07:21:00

Much appreciated rlparker, that's exactly what I needed to know



Re: File Uploading: Max file size limit

Posted by: rlparker
Posted on: 2008-02-26 07:31:00

Good deal ... I'm glad my response was helpful! smile

--rlparker

Tags: ini