I am running into an issue with a project I am working with on my localhost, where I am unable to increase the PHP memory_limit setting.
I've tried increasing it directly in the php.ini config:
memory_limit = 1024M
I've tried increasing it in the projects .htaccess file:
php_value memory_limit 1024M
I've tried increasing it directly in the function of the PHP controller:
ini_set('memory_limit', '1024M');
Yet none of these actually increases the memory limit for the project, and echoing out phpinfo() confirms that the memory_limit has not been changed.
I've checked the Loaded Configuration File setting in phpinfo() to ensure that I modified the correct php.ini file, and that no other additional config files are being parsed, that could conflict with this setting, but I am still unable to get the setting to increase.
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/apache2/conf.d
Additional .ini files parsed /etc/php5/apache2/conf.d/05-opcache.ini, /etc/php5/apache2/conf.d/10-pdo.ini, /etc/php5/apache2/conf.d/20-curl.ini, /etc/php5/apache2/conf.d/20-json.ini, /etc/php5/apache2/conf.d/20-memcached.ini, /etc/php5/apache2/conf.d/20-mysql.ini, /etc/php5/apache2/conf.d/20-mysqli.ini, /etc/php5/apache2/conf.d/20-pdo_mysql.ini, /etc/php5/apache2/conf.d/20-readline.ini
Any ideas from the community as to what else I could try? I am using PHP v5.5.9.