#47889 [Opn->Bgs]: upload_max_filesize not taking effect but other variables are
| From: | kmcgrail at apache dot org | Date: | Fri, 03 Apr 2009 17:20:47 +0000 |
| Subject: | #47889 [Opn->Bgs]: upload_max_filesize not taking effect but other variables are | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-135529@lists.php.net to get a copy of this message | ||
ID: 47889
User updated by: kmcgrail at apache dot org
Reported By: kmcgrail at apache dot org
-Status: Open
+Status: Bogus
Bug Type: *Configuration Issues
Operating System: Linux
PHP Version: 5.2.9
New Comment:
Sorry for the false alarm. I believe the issue has been found in a
corrupt php.ini.
While the question of where the ini file change originated and the
missing graphic remain, the fundamental problem is from line 467 of the
php.ini that stated
enable_dl = Off ()
Changing it to enable_dl = Off allowed the parsing of the remaining
lines in the php.ini, which coincidentally was the file upload
settings.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2009-04-03 15:49:25] kmcgrail at apache dot org
Description:
------------
I believe there is a bug, perhaps in phpinidir, where a specified
php.ini file is not 100% parsed. Specifically, I am able to override
many of the items but not the upload_max_filesize.
Using this in httpd.conf:
PHPIniDir /htdocs/<specific dir>/php.ini
Changing variables in this ini file affects the phpinfo() command.
For example, I can enable the ZendOptimizer, I can change
post_max_size, etc.
Changing variables in the default php.ini does NOT take effect.
In short, I firmly believe I am editing the correct ini file.
However, changing upload_max_filesize or upload_tmp_dir has NO effect
on the phpinfo() / program functionality.
Using .htaccess or editing httpd.conf to add something like the
following, DOES work:
php_value upload_max_filesize 5M
To Reproduce the problem:
copy default ini to an alternate location:
Specify an alternate ini in httpd.conf
PHPIniDir /htdocs/<specific dir>/php.ini
write a quite phpinfo() script
View the script and confirm Loaded Configuration File matches the
specified ini file.
Modify specified php.ini to edit upload_max_filesize and
upload_tmp_dir.
Restart server and view phpinfo() script.
No changes are reflected.
If the server does NOT use the command
PHPIniDir /htdocs/<specific dir>/php.ini
then editing the default php.ini in /usr/local/php-apache2/lib/php.ini
DOES work
One final note:
Comparing the phpinfo() output from a specified ini install and a
non-specified install show one more oddity.
The section of the phpinfo() on the specified and the default matches
with this text:
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
BUT the specified one is missing the Powered by Zend Engine 2 logo.
Perhaps this will help deduce where the issue lies.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47889&edit=1