Red Hat Bugzilla – Bug 67586
post_max_size config not settable in apache conf
Last modified: 2005-10-31 17:00:50 EST
Description of Problem:
The php post_max_size configuation directive is not settable using
php_value post_max_size <blah>
in the Apache configuration file.
Also, it's not documented in the php manual as a config directive.
In the documenation in the php.ini file its not clear how post_max_size
and upload_max_filesize interrelate. You'd assume that because files
are uploaded in a POST operation, that post_max_size places futher
limits on the maximum file upload size, but nothing is spelled out.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Try setting post_max_size in httpd.conf and then run a php
script that does nothing but call phpconf() and see what's
post_max_size doesn't change.
Should be set in apache conf.
what the heck is phpconf()? I'm going to assume you meant phpinfo()
Ok lets see...
The maximum size of an uploaded file. The value is in bytes.
Sets max size of post data allowed. This setting also affects file upload.
To upload large files, this value must be larger than upload_max_filesize.
If memory limit is enabled by configure script, memory_limit also affects file
uploading. Generally speaking, memory_limit should be larger than post_max_size.
Now then, my defaults are
post_max_size 8M 8M
upload_max_filesize 2M 2M
If I tweak the php.ini file so we have 6M and 4M,..
ah right you are,.. they don't change
Ok lets see if that 8/2Mb is a minimum
nope,.. they don't change
or rather should I say that they aren't reported as being changed.
ok restart httpd between changes and macke sure that the web broswer has no
It does change. Just between the web server and the browser they hang onto the
Not a bug just an effect of caching
You misunderstand the problem. Yes, the config can be changed using php.ini.
The bug is that it can't be changed in httpd.conf using the php_value method of
setting the variable.
(Yes, I ment phpinfo() sorry.)
*** This bug has been marked as a duplicate of 73516 ***