Re: able to upload 28 meg file, yet php.ini limits posts to 10 megs. What is up with that?
- From: Lawrence Krubner <lawrence@xxxxxxxxxxx>
- Date: Sat, 31 May 2008 03:04:26 -0400
NC wrote:
On May 30, 7:01 pm, Lawrence Krubner <lawre...@xxxxxxxxxxx> wrote:To guard against our users possibly uploading huge files, I've
got this in my php.ini file:
; Maximum size of POST data that PHP will accept.
post_max_size = 10M
What about upload_max_filesize?
From my php.ini file:
; Maximum allowed size for uploaded files.
upload_max_filesize = 10M
And what, if anything, is
LimitRequestBody directive in Apache set to?
This returns nothing:
root@ldc310:~# cd /etc/apache2/
root@ldc310:/etc/apache2# grep -R LimitRequestBody *
So I assume it is not set.
Are there any .htaccess
files that could possibly change any of this?
No, not at the top level of the site, where the upload script is.
And while we're checking for possibilities, are you editing the same
php.ini PHP is using?
I assume, but how could I be sure? This tells me the version:
root@ldc310:/var/www/vhosts/thesecondroad.org/httpdocs# php -v
PHP 5.1.6 (cli) (built: Nov 28 2007 22:52:49)
Since it is PHP version 5, I assume this is the right path for editing:
root@ldc310:/# nano /etc/php5/cli/php.ini
Any way I can be sure? How do I check?
Also, are you running PHP as an Apache module or CGI/FastCGI?
An Apache module.
-- lawrence
.
- Follow-Ups:
- References:
- Prev by Date: Re: able to upload 28 meg file, yet php.ini limits posts to 10 megs. What is up with that?
- Next by Date: Re: using fopen() in write mode is failing
- Previous by thread: Re: able to upload 28 meg file, yet php.ini limits posts to 10 megs. What is up with that?
- Next by thread: Re: able to upload 28 meg file, yet php.ini limits posts to 10 megs. What is up with that?
- Index(es):
Relevant Pages
|