[Tilesathome] upload size limit
David Earl
david at frankieandshadow.com
Tue May 22 10:00:12 BST 2007
> -----Original Message-----
> From: tilesathome-bounces at openstreetmap.org
> [mailto:tilesathome-bounces at openstreetmap.org]On Behalf Of OJW
> Sent: 21 May 2007 21:29
> To: tilesathome at openstreetmap.org
> Subject: Re: [Tilesathome] upload size limit
>
>
> On Monday 21 May 2007 21:18, silverfish at wright-family.me.uk wrote:
> > Is the upoad via PHP?
> >
> > If so, you can use this to increase PHP's upload limit:
> >
> > ini_set(upload_max_filesize,{new_bytes_max});
>
> Returns false, PHP_INI_PERDIR = 0. Even if it worked, the file
> is already
> uploaded (or not) by the time that function can be called.
If it is php (sounds like it is from your reply), there are two things you
need to change in the php.ini file
; Maximum size of POST data that PHP will accept.
post_max_size = 72M
(for example), and
; Maximum allowed size for uploaded files.
upload_max_filesize = 64M
(for example)
Typically POST size is bigger than file size limit (much bigger if you want
to upload two large files in one POST for example).
If you're running php under fcgi you need to kill the php process so it
restarts with the new php.ini.
The location of the primary php.ini file seems to vary widely from
installation to installation. On the one I'm looking at here it is in
/etc/php5/apache2/
HTH
David
More information about the Tilesathome
mailing list