Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-05-21, 13:55:08

Author Topic: php memory limit not changing  (Read 4460 times)

0 Members and 1 Guest are viewing this topic.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
php memory limit not changing
« on: 2013-07-05, 21:25:54 »
I am using apache, php-fpm event.  Kloxo 6.5.1a

I went to admin, php config, advanced and set php memory limit to 128M.

Verified the change in /etc/php.ini
Rebooted
But php info still states memory_limit at 64M

Is there another config file somewhere I am missing?

Please advise.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php memory limit not changing
« Reply #1 on: 2013-07-05, 23:56:38 »
Because using php-fpm, look inside /home/php-fpm/tpl/php53-fpm-pool.conf.tpl for 'php_admin_value[memory_limit]'
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php memory limit not changing
« Reply #2 on: 2013-07-06, 03:10:53 »
Quote from: "MRatWork"
Because using php-fpm, look inside /home/php-fpm/tpl/php53-fpm-pool.conf.tpl for 'php_admin_value[memory_limit]'
Thanks.  Found the actual config file at: /etc/php-fpm.d/admin.conf and default.conf

I am using php 5.4 is the php53-fpm-pool.conf.tpl template used?  and can I use:
custom.php53-fpm-pool.conf.tpl  so on update it doesn't get overwritten?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php memory limit not changing
« Reply #3 on: 2013-07-06, 15:53:02 »
Yes.

Because different format between php 5.2 (xml format) and php 5.3/5.4 (ini format), for php 5.3 and php 5.4 (also php 5.5) using php53-fpm-pool.conf.tpl.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: php memory limit not changing
« Reply #4 on: 2013-07-06, 18:28:26 »
Mustafa -  I would remove the php value directives from the tpl file for future kloxo-mr releases/updates.

There is no logical reason to have them there as the values in /etc/php.ini work.  It is confusing for someone who puts in a value on php config, advanced and it doesn't work.

I removed the memory limit from the tpl and changed it using php config -> advanced and it worked.

Just a suggestion.  I removed all the php values you were setting in the tpl and just allow the values to be set in /etc/php.ini

Have a good day!
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.053 seconds with 19 queries.

web stats analysis