|
Posted by Schraalhans Keukenmeester on 05/09/07 20:10
At Wed, 09 May 2007 15:12:04 -0400, Milagro let his monkeys type:
>>
>> But, what's important here, do you know what the accepted upload size is
>> in php.ini? (check using phpinfo(), variable upload_max_filesize). If
>> that's under the form's limit, this might explain why the uploads fail on
>> originals and succeed on the resized/recompressed versions.
>> I think the default might be 2megs.
>> The size specified in the form isn't a hard limit per se, the
>> upload_max_filesize in php.ini is.
>>
>> HTH
>> Sh.
>
>
> Thanks! I think you hit the nail on the head. upload_max_filesize is
> indeed set to 2mb and all the files I'm having problems with are over
> 2mb.
>
> Two more questions. Is there any downside to changing this variable in
> php.ini to a higher value [say 3mb] (other then it consuming more
> server resources) ?
Not that I am aware of, no.
> This is a dedicated server with a speedy processor and 2gb of Ram.
> And if I do change the value in php.ini do I have to restart some
> process or does php pick up those settings right away?
>
> Thanks again.
> M
It all boils down to the number of concurrent users I suppose, you could
benchmark the performance if you expect load/resource issues.
Restart apache after any change to the config files.
On linux, there probably is a script in /etc/init.d/ or /etc/rc.d/init.d/
named apache, apache2 or httpd. On my Gentoo box the proper command would
be /etc/init.d/apache2 restart.
On windows XP machines I know it's possible to restart a service in
Control Panel/Administrative Tools/Services, and perhaps from the command
line. Been too long to remember exactly.
Sh.
Navigation:
[Reply to this message]
|