Changes to php.ini values

I’m trying to get more than 256M in PHP.
I’m on a Mac.
I tryed to change the php.ini related to the site that needs the memory config, eg.:
/users/giorgio/Local sites/
The page
show that memory still limited to 256M

What i need to do to get 512M PHP memory for “”?

Yup, you’re on the right track!

Did you restart the site after updating the configuration?

Yes i do :worried:
I also closed and restarted the App.

My backp plugin is showing me the memory limit when runs.
I made some checks:

  • change memory_limit in conf/php/7.0.3/php.ini does not seems to have any effect.
  • adding “php_value memory_limit 1024M” in .htaccess produce an apache config error
  • writing “define(‘WP_MEMORY_LIMIT’, ‘1024M’);” in wpconfig, effectively changes the memory available to the plugin but (probably obvious) not the memory available to app/public/local-phpinfo.php
    So, i have “solved” my immediate problem but … it is a very strange behaviour

Aha, makes sense now.

WordPress will attempt to set the PHP memory limit based off of WP_MEMORY_LIMIT if it’s allowed to do so using PHP’s ini_set() function.

There’s also WP_MAX_MEMORY_LIMIT that WordPress will set during admin requests and other requests such as backing up.