By dev213 on
After adding the following lines to php.ini in my Drupal directory, I still can't change the default maximum file size per upload in File upload page from 2M to 10M. I received a warning message "Your PHP settings limit the maximum file size per upload to 2 MB."
upload_max_filesize = 32M
post_max_size = 64M
max_execution_time=180
max_input_time=120
phpinfo() shows upload_max_filesize is 32M. But the php configuration on cPanelX still shows 2M. Why?
Thanks in advance!
Comments
php.ini must be in your php
php.ini must be in your php installation or your webserver . I wont be in drupal folder.
Did you try to restart your server if you are sure you changed your php.ini settings.
If its file upload module specific settings check that in module setting page.
Module setting
Thank you very much for the help! Yes, I put php.ini in webserver directory. Do I need to restart the web server?