You are here: Re: PHP upload_max_filesize problem « PHP Programming Language « IT news, forums, messages
Re: PHP upload_max_filesize problem

Posted by Andy Hassall on 11/14/06 22:06

On Tue, 14 Nov 2006 12:08:03 +0200, "hannu" <hn@invalid.net> wrote:

>I have a really frustrating problem with php5.1.2+apache2 on OpenSuse 10.1
>(X86-64) environment.
>
>Though I set the upload_max_filesize setting in php.ini file to any setting,
>it sticks with 2M.
>
>I have changed it both into larger (which is my ultimate goal) and smaller
>without any effect what so ever.
>
>And yes, I have restarted apache2 after the changes. Heck, I even booted the
>computer once, though I knew it wouldn't help.
>
>I have checked the php.conf against LimitRequestBody directive - though even
>that would allow me to set the limit lower, wouldn't it?
>
>I have also checked post_max_size, and I can even change it. Only the
>subject setting and upload_tmp_dir and uploads seem to be unaffected, though
>I can't be 100% sure about that as I haven't checked them ALL. But the point
>is that MOSTLY php.ini obeys my changes, the only problem so far seems to be
>connected with file upload.
>
>As I am starting to feel deperssed I hope someone could throw some light
>into this.
>
>My phpinfo() is available at:
>
>http://appserver.padasjoenlentokerho.fi/index.php
>
>I have been running Linux & PHP for maybe 5 years and even done this very
>task on various computers, so I'm really perplexed.

You have multiple ini files loaded, so check all of them.

grep upload_max_filesize /etc/php5/apache2/php.ini /etc/php5/conf.d/*

Also check for any php_value statements in any config file loaded by Apache -
see if it's including any other config files in addition to httpd.conf.

And do you have an .htaccess file in the same directory as index.php? Check
that too.

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация