php 7 php.ini upload_max_filesize not working



PHP Snippet 1:

<?php phpinfo() ?>

PHP Snippet 2:

sudo service apache2 restart

PHP Snippet 3:

# systemctl list-unit-files | grep php
php-fpm.service

PHP Snippet 4:

# systemctl restart php-fpm

PHP Snippet 5:

sudo service php7.2-fpm restart

PHP Snippet 6:

#just for example
php_flag[display_errors] = off
php_admin_value[error_log] = /var/log/fpm-php.www.log
php_admin_flag[log_errors] = on

PHP Snippet 7:

post_max_size = 512M
upload_max_filesize = 512M

PHP Snippet 8:

sudo service php7.0-fpm restart #php<then your php version here> instead "7.0"

PHP Snippet 9:

sudo /etc/init.d/php7.1-fpm restart  #php<then your php version here> instead "7.1"

PHP Snippet 10:

$ sudo service php7.0-fpmstart # <- restart it
$ sudo service php7.0-fpm stop # <- restart it
$ sudo service php7.0-fpm restart # <- restart it
$ sudo service php7.0-fpm reload # <- reload it

PHP Snippet 11:

cd /etc/php
find . -name "*.ini" | xargs grep -il upload_max_filesize
./7.1/apache2/php.ini
./7.1/mods-available/better.ini
./7.1/cgi/php.ini
./7.1/cli/php.ini
./7.1/phpdbg/php.ini
./7.1/fpm/conf.d/20-better.ini
./7.1/fpm/php.ini
./7.1/embed/php.ini

PHP Snippet 12:

/etc/init.d/php7.1-fpm restart

PHP Snippet 13:

sudo /usr/local/bin/httpd -k restart

PHP Snippet 14:

upload_max_filesize = 20M
post_max_size = 20M

PHP Snippet 15:

systemctl restart apache2

PHP Snippet 16:

sudo mysql -u {username} -p

PHP Snippet 17:

>use mysql;
mysql> use db_name;
mysql> source /dir_to/file_name.sql;