PHP memory_limit local value does not match php.ini value

I found the answer. There was a hidden .htaccess file in the site root that was overriding all other values.

It had the line:

php_value memory_limit 256M

I changed it to:

php_value memory_limit 1024M

No need to restart apache, the memory limit went up to 1024M immediately.

——————

Also, if you load a phpinfo() page in your website root, near the top you can see configuration files affecting PHP. Search “config” and you’ll find a list.