Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

php.ini file not updating

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
465media
Posts: 7
Joined: Thu Feb 05, 2015 4:42 am

php.ini file not updating
  • Quote

Post by 465media » Tue Feb 10, 2015 7:43 pm

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
Top

ivanh
Posts: 41
Joined: Sun Mar 23, 2014 6:40 am

Re: php.ini file not updating
  • Quote

Post by ivanh » Wed Feb 11, 2015 2:02 am

Which php.ini are you editing?

Also, what apache template are you using?
Top

465media
Posts: 7
Joined: Thu Feb 05, 2015 4:42 am

Re: php.ini file not updating
  • Quote

Post by 465media » Wed Feb 11, 2015 3:15 am

IT was the Apache template that was the issue and switched back to 'default' for now.
Top

redhatjobin
Posts: 1
Joined: Wed Jan 06, 2016 8:18 am

Re: php.ini file not updating
  • Quote

Post by redhatjobin » Wed Jan 06, 2016 8:25 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: php.ini file not updating
  • Quote

Post by skurudo » Thu Jan 07, 2016 9:11 pm

You can use hosting template and edit php limitation
or
just edit limit in /etc/php5/ -> find php.ini and change what you need.
Top

websystems
Posts: 31
Joined: Wed Oct 18, 2017 6:34 am

Re: php.ini file not updating
  • Quote

Post by websystems » Sun Mar 22, 2020 5:21 pm

Same issue, but it is 2020, so old solutions do not work...

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


Post Reply
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password