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-04-29, 16:26:10

Author Topic: Customize php54m.ini  (Read 5634 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Customize php54m.ini
« on: 2014-05-04, 17:54:25 »
I need to keep changes in /opt/php54m/custom/php54m.ini after upgrade/fixweb etc. I've tried with both custom.php54m.ini and custom-php54m.ini, but they aren't read after a restart of php-fpm service. Is there way to customize that file?
Thanks.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Customize php54m.ini
« Reply #1 on: 2014-05-05, 04:43:50 »
Custom not work. Modified php54m.ini directly.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Customize php54m.ini
« Reply #2 on: 2014-05-05, 04:44:37 »
What's change do you want in php54m.ini?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Customize php54m.ini
« Reply #3 on: 2014-05-05, 12:36:58 »
Ok.

Custom not work. Modified php54m.ini directly.

First of all, expose_php = Off on line 19 & 50. Possibly i'd need to change the following values in the near future:
upload_max_filesize = 16M
max_execution_time = 180
max_input_time = 180
memory_limit = 64M
post_max_size = 32M

Can these be changed on per-client basis?

What's change do you want in php54m.ini?.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Customize php54m.ini
« Reply #4 on: 2014-05-05, 13:13:27 »
You can setting up per-client above params.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Customize php54m.ini
« Reply #5 on: 2014-05-05, 13:14:33 »
Remember this modified not appear in php.ini but in php-fpm config inside '/etc/php-fpm.d' (if using php-fpm) or inside '/home/kloxo/client/<client>' (for suphp and fcgid).
« Last Edit: 2014-05-05, 13:16:26 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Customize php54m.ini
« Reply #6 on: 2014-05-05, 14:05:08 »
That's right when using PHP-FPM. Where should the custom PHP-FPM conf for clients be at?
/etc/php-fpm-d/custom.client1.conf?


Remember this modified not appear in php.ini but in php-fpm config inside '/etc/php-fpm.d' (if using php-fpm) or inside '/home/kloxo/client/<client>' (for suphp and fcgid).
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Customize php54m.ini
« Reply #7 on: 2014-05-05, 14:08:32 »
Php-fpm config based on template. So, don't create custom 'result' config but create custom 'template' config. That it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Customize php54m.ini
« Reply #8 on: 2014-05-05, 15:55:33 »
Ok. So you refer to the files inside /home/php-fpm/tpl/?  How do i create a custom PHP-FPM template for a client <client1>?
Should it be called  /home/php-fpm/tpl/custom.<client1>conf.tpl?
According to http://forum.mratwork.com/kloxo-mr-development/kloxo-mr-template-based-config/ you can only customize
/home/php-fpm/tpl/php53-fpm-pool.conf.tpl with custom.php53-fpm-pool.conf.tpl.
But that's not  limited to one client.

Excuse me, perhaps i don't get it.

Php-fpm config based on template. So, don't create custom 'result' config but create custom 'template' config. That it.
« Last Edit: 2014-05-05, 16:04:54 by Mella »
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Customize php54m.ini
« Reply #9 on: 2014-05-05, 16:39:08 »
Modified custom.php53-fpm-pool.conf.tpl. Template files are inline-php which that mean use php code.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.067 seconds with 18 queries.

web stats analysis