Like a 100 other web pages I've found I cannot change
php_value upload_max_filesize 20M
php_value post_max_size 30M
effectively and make it work.
I have php 5.3.2 and drupal 6.something running out of apache
phpinfo claims I am using /etc/php.ini
No matter what I change, php.ini settings.php, .htaccess I cannot raise the value in the admin interface Site Configuration --> File Uploads beyond the default, it whines that php is limiting me to the default 2M.
I've found dozens of web pages telling me to change the above. grrrr. I've sprinkled php.ini's all over the place in the html root, /usr/local/lib/php, /usr/local/etc, I've tried php5.ini
And yes, I do a full stop/start of httpd and not even a reload.
Is there some bug in 6.x that prevents changes from php.ini from working.
Nothing works.
Comments
As a follow-up phpinfo
As a follow-up phpinfo reveals that the value set in php.ini - which it believes is in /etc - is the 20M setting I make. But drupal insists it is limited to 2M and will not let me change it.
Why do you think Drupal
Why do you think Drupal thinks it is still 2M. If you are using file fields have you checked the configuration of the field(s)?
Thanks for the reply, I did
Thanks for the reply, I did solve this per the other suggestion. No matter where I changed it before I would get an error in drupal's adminstration web pages, going to Site configuration and then File Uploads, I should be able to update the values. But it would only give me an error complaining about the 2 MB limit.
phpinfo shows the higher value I wanted, and confirms I changed the correct php.ini. I don't know why drupal would not accept that. I also don't understand the "file fields" part of your answer, is there some other spot in drupal config that has a limit that would affect file upload sizes?
thanks
vhost config
These values can also be set in the apache vhost config file. Make sure to check that too.
Thanks much, putting the
Thanks much, putting the below
php_value upload_max_filesize 20M
php_value post_max_size 30M
into the apache conf.d file for that host worked and I was able to subsequently update the values in the web interface's Site-Configuration --> File Uploads menus without error. I haven't heard back from the user but expect that will eliminate their error.