Page 1 of 1

upload_max_filesize issue

Posted: Wed Sep 10, 2014 3:43 am
by DevilStar
hello!

debian, vesta, php 5.5, phpcgi

I have some issues with upload_max_filesize in my sites (joomla). Joomla says that it is set to 2M, but i need 64M.

What i did:
1. /usr/local/vesta/data/templates/web/apache2 edited all templates and added in <Directory %docroot%>

Code: Select all

        php_admin_value post_max_size  64M
        php_admin_value upload_max_filesize 64M   
2. /home/admin/conf/ - the same
3. /etc/php5/apache2/php.ini - 64М everywhere
4. /etc/php5/cgi/php.ini - the same
5. /etc/php5/cli/php.ini - the same
6. .htaccess of every domain

Code: Select all

php_value upload_max_filesize 64M
7. php.ini in root folder of each domain

Code: Select all

upload_max_filesize = 64M
post_max_size = 64M
8. rebooted server and services (apache2) about 100 times.

Here is a result: http://devilstar.ml/olimp/php.php

And here is what my console says:

Code: Select all

root@devilstar:~# php -ini | grep max
log_errors_max_len => 1024 => 1024
max_execution_time => 0 => 0
max_file_uploads => 20 => 20
max_input_nesting_level => 64 => 64
max_input_time => -1 => -1
max_input_vars => 1000 => 1000
post_max_size => 64M => 64M
upload_max_filesize => 64M => 64M
mysql.max_links => Unlimited => Unlimited
mysql.max_persistent => Unlimited => Unlimited
mysqli.max_links => Unlimited => Unlimited
mysqli.max_persistent => Unlimited => Unlimited
session.gc_maxlifetime => 1440 => 1440
opcache.max_accelerated_files => 2000 => 2000
opcache.max_file_size => 0 => 0
opcache.max_wasted_percentage => 5 => 5
And my question is - how can i change upload_max_filesize?