I need to upload file more than 100M yii\web\UploadedFile
. I am using linux Centos7.
I did:
- check path to php.ini in phpinfo()
- add in php.ini php_value upload_max_filesize 512M php_value post_max_size 512M
- restart lampp and run phpnfo() to check, but nothing changed. Although php.ini changed.
- restart my PC start lampp, but still no changes in phpnfo().
I have found some solution to add additional.ini.files, but in my phpinfo(): Scan this dir for additional .ini files (none).
I solve this by adding this in .htaccess:
php_value upload_max_filesize 512M
php_value post_max_size 512M
But problem still exist I can't influence on php.ini