Unable to increase memory limit in MAMP php

I am trying to increase php memory_limit in MAMP (Mac OSX). The version of PHP I'm using is 5.4.1.0. I read about creating a new template for MAMP Pro, but I am using the standard version of MAMP.

I tried everything below, but nothing seemed to work. Any help would be greatly appreciated.

Thank you for your time.


I added the following to the htaccess file of my site, which is read on the site and works (ExpressionEngine). But the main limit of PHP is still not being updated.
php_value memory_limit 128M

I changed the following from 32M to 128M in the following file:

/Applications/MAMP/conf/php5.4.10
memory_limit = 128M ;

Then I completely complete MAMP and restart it, but in phpInfo MAMP it still reads:
memory_limit 32M


Virtual hosts

URL-. - , . "php_value memory_limit 128M":

/Applications/MAMP/conf/apache/extra/httpd-vhosts.conf

<VirtualHost *:80>
 DocumentRoot /Applications/MAMP/htdocs
 ServerName localhost
 php_value memory_limit 128M
</VirtualHost>

:

<VirtualHost *:80>
  DocumentRoot "/Users/Username/Dropbox/Dev/sitename.dev"
  ServerName sitename.dev
  php_value memory_limit 128M
</VirtualHost>

(, MAMP (Dev) Dropbox, )


php.ini

php.ini MAMP:

memory_limit = 128M
+4
2

, -)

:

/Applications/MAMP/bin/php/php[your_php_version]/conf/php.ini

'memory_limit' :

memory_limit = [number]M

!

+23

phpinfo.php phpinfo();, .

php.ini . , php.ini, memory_limit.

+2

All Articles