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-03-28, 16:59:54

Author Topic: Can't change memory_limit from 64M  (Read 3943 times)

0 Members and 1 Guest are viewing this topic.

Offline nmpribeiro

  • Valuable Member
  • *
  • Posts: 69
  • Karma: +1/-0
    • View Profile
Can't change memory_limit from 64M
« on: 2014-08-13, 13:59:32 »
Hi,
Can't change memory_limit from 64M

INFO:
Kloxo-MR: 6.5.1.b-2014072901
PHP: php54-5.4.31-1.ius.el6.x86_64
Php-type (for Httpd/proxy): php-fpm_event

There's some bug, since I cannot change in the "advanced php conf" UI, neither in /opt/php54m.......ini nor /etc/php.ini

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: Can't change memory_limit from 64M
« Reply #1 on: 2014-08-14, 05:08:48 »
Goto 'Server' -> localhost -> php config

Change there under Advanced.

Ssh or command center, restart-web
sh /script/restart-web

Memory limit should be set. ;)
Christopher

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

Offline nmpribeiro

  • Valuable Member
  • *
  • Posts: 69
  • Karma: +1/-0
    • View Profile
Re: Can't change memory_limit from 64M
« Reply #2 on: 2014-08-14, 11:00:34 »
Hi,

Thanks, but if it was that simple I wouldn't be asking. Did that. No luck.

Changed in /etc/php.ini
Changed in /opt/php54m/etc/php.ini
...

[root@server1 ~]# php -i | grep php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini

Same output with admin user on shell. That configuration file doesn't change the value. I'm in some sort of error here. Perhaps I should re-install php and replace config files :|

Thanks

Offline nmpribeiro

  • Valuable Member
  • *
  • Posts: 69
  • Karma: +1/-0
    • View Profile
Re: Can't change memory_limit from 64M
« Reply #3 on: 2014-08-14, 11:18:50 »
Incidently, changing php memory_limit in advanced php settings on kloxo UI, changes /etc/php.ini (I've put for instance 256M, and then when check it through ssh. Changed value on /etc/php.ini good.)

However, when checking phpinfo(), my memory_limit is 64M both local and master.
Configuration File (php.ini) Path:    /etc
Loaded Configuration File:          /opt/php54m/custom/php54m.ini

Changing /opt/php54m/custom/php54m.ini doesn't yield any result either.
I really need some help here.

Offline nmpribeiro

  • Valuable Member
  • *
  • Posts: 69
  • Karma: +1/-0
    • View Profile
Re: Can't change memory_limit from 64M
« Reply #4 on: 2014-08-14, 11:25:39 »
grep -ir 'memory_limit' /etc/

/etc/php-fpm.d/admin.conf:php_admin_value[memory_limit] = 64M

Here is the culprit! Hunting in so many places for such a simple setting... :/ I guess php got only one config possible for the server, yet, some files regarding ancient per client php config were left on the server.

Please, fix that.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Can't change memory_limit from 64M
« Reply #5 on: 2014-08-16, 07:28:09 »
Using phpXYm only work with php-fpm. You can see memory_limit declare inside /etc/php-fpm.d/<user>.conf.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.031 seconds with 22 queries.

web stats analysis