无法更改phpinfo中的memory_limit本地值

I can't change the local value of memmory_limit, I tried to fix in .htaccess but it's not working. When I fix memory_limit in php.ini only master value changed.

https://i.stack.imgur.com/Q4YSY.jpg

Add this to beginning of your php page

<?php ini_set('memory_limit','256M'); ?>

For unlimited memory limit set -1 in memory_limit variable

<?php ini_set('memory_limit', '-1');  ?>

If you are using wordpress

define('WP_MEMORY_LIMIT', '1024M'); in wp-config.php

I found solution for this problem. Check all files Apache config. One of theme override setup of php.ini. If you use vestacp: /home/[user]/conf/web/httpd.conf or /usr/local/vesta/data/templates/web/httpd Thanks all for help!

that was helpful for me. just add to the virtual host config file:

php_admin_value memory_limit 1024M