[SOLVED] Moodle, Wordpress can't upload files / modsecurity limits the upload file size
Posted: Mon May 29, 2017 2:29 pm
Hey everyone, i hope someone can help me out, i'm going crazy with this...
i set a moodle site, works Ok, BUT: I can't upload large files, it seems that files over 120 KB are not loadded, the error in the moodle page says it could be the max_post_size in php.ini, but i already set this to higher values and phpinfo shows the correct values i entered.
My conf files are: snginx, nginx, sapache2, apache2
(http redirects to https, letsencrypt certificate)
phpinfo shows:
in moodle, loged in as a user with admin privileges, everytime i want to upload a file (for example image user profile) the error is (in spanish):
google translated: The uploaded file may exceed the max_post_size directive of php.ini
Already restarted apache2 and nginx, several times...
Hope someone can help!
thanks!
i set a moodle site, works Ok, BUT: I can't upload large files, it seems that files over 120 KB are not loadded, the error in the moodle page says it could be the max_post_size in php.ini, but i already set this to higher values and phpinfo shows the correct values i entered.
My conf files are: snginx, nginx, sapache2, apache2
(http redirects to https, letsencrypt certificate)
phpinfo shows:
Code: Select all
PHP Version 7.0.18-0ubuntu0.16.04.1
Configuration File (php.ini) Path /etc/php/7.0/apache2
Loaded Configuration File /etc/php/7.0/apache2/php.ini
post_max_size 15M
upload_max_filesize 10M
Code: Select all
El archivo subido puede que exceda la directiva max_post_size del php.ini.
URL:
null
Debug info:
null
Stack trace:
null
Already restarted apache2 and nginx, several times...
Hope someone can help!
thanks!