VestaCP - Debian 7 - PHP Warning: POST Content-Length of 84908807 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2025
POST Content-Length of 84908807 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
Тестировалось на Debian 7.9:
# cat /etc/debian_version 7.9
Ошибка при закачке большого файла в админке скрипта:
[Fri Nov 27 22:56:38 2015] [error] [client ip] PHP Warning: POST Content-Length of 84908807 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://site.net/downloads/admin/file_upload.php?directory_id=9 [Fri Nov 27 22:57:06 2015] [error] [client ip] PHP Warning: POST Content-Length of 84908807 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referer: http://site.net/downloads/admin/file_upload.php?directory_id=9&file_id=
при это в файлах
/etc/php5/apache2/php.ini /etc/php5/cgi/php.ini /etc/php5/cli/php.ini
все лимиты стоят.
Решение - прописать в конфиге апача домена (найти нужный виртуалхост) для VestaCP - /home/admin/conf/web/apache2.conf:
php_admin_value upload_max_filesize 200M php_admin_value max_execution_time 60 php_admin_value post_max_size 200M php_admin_value memory_limit 256M
# /etc/init.d/apache2 restart