Page 1 of 1

php.ini file not updating

Posted: Tue Feb 10, 2015 7:43 pm
by 465media
https://www.yournewdevsite.com/mli/
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3072 bytes)
https://www.yournewdevsite.com/phpinfo.php
memory_limit 32M
Edit Loaded Configuration File /etc/php5/apache2/php.ini to 256MB (from 128MB(
sudo service apache2 restart

After restart the memory_limit is still at 32M, it never reflects the 128M the ini file has in the first place.

Each WordPress installation already has the memory defined in the wp-config.php file define( 'WP_MEMORY_LIMIT', '96M' );I have also tried to put into htaccess. php_value memory_limit 64M

Re: php.ini file not updating

Posted: Wed Feb 11, 2015 2:02 am
by ivanh
Which php.ini are you editing?

Also, what apache template are you using?

Re: php.ini file not updating

Posted: Wed Feb 11, 2015 3:15 am
by 465media
IT was the Apache template that was the issue and switched back to 'default' for now.

Re: php.ini file not updating

Posted: Wed Jan 06, 2016 8:25 am
by redhatjobin
The user specific PHP values are set in "/home/username/conf/web/httpd.conf".
...
php_admin_value memory_limit 128M
...

Change the value there and restart apache.

-- Jobin

Re: php.ini file not updating

Posted: Thu Jan 07, 2016 9:11 pm
by skurudo
You can use hosting template and edit php limitation
or
just edit limit in /etc/php5/ -> find php.ini and change what you need.

Re: php.ini file not updating

Posted: Sun Mar 22, 2020 5:21 pm
by websystems
Same issue, but it is 2020, so old solutions do not work...

viewtopic.php?f=41&t=17129&p=81424#p81424