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, 00:31:32

Author Topic: PHP-FPM custom config #2  (Read 2340 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
PHP-FPM custom config #2
« on: 2016-07-02, 11:14:22 »
Does /opt/configs/php-fpm/tpl/custom.php53-fpm-pool.conf.tpl work as before?
I've done some changes to this custom file and after runnign sh /script/fixphp; sh /script/restart-web -y' i don't see my customized values in /etc/php-fpm.d/username.conf!

Have things changed with latest updates

My small change is:
                                                         
        } else {
                $userinfo = posix_getpwnam($user);                                                                                                     
                $fpmport = (50000 + $userinfo['uid']);                                                                                                 
                $openbasedir = "/home/$user/:/tmp/:/dev/urandom/:/usr/share/pear/:/var/lib/php/session/:".
                        "/home/kloxo/httpd/script/:/home/kloxo/httpd/disable/:{$extrabasedir}";     



I.e i've  appended   :/dev/urandom/: into    $openbasedir, but it doesn't work :(
« Last Edit: 2016-07-02, 11:16:14 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP-FPM custom config #2
« Reply #1 on: 2016-07-02, 11:19:17 »
Yes. But make sure using latest upload and need adjustment your custom files.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: PHP-FPM custom config #2
« Reply #2 on: 2016-07-02, 11:28:07 »
yes, i'm using the latest file:
[root@mail tpl]# diff custom.php53-fpm-pool.conf.tpl php53-fpm-pool.conf.tpl
19c19
<       $openbasedir = "/home/$user/:/tmp/:/dev/urandom/:/usr/share/pear/:/var/lib/php/session/:".
---
>       $openbasedir = "/home/$user/:/tmp/:/usr/share/pear/:/var/lib/php/session/:".

So what am i doing wrong? It doesn't seem like /scripts/fixphp is reading values from my custom php file!




Yes. But make sure using latest upload and need adjustment your custom files.
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: PHP-FPM custom config #2
« Reply #3 on: 2016-07-02, 11:34:05 »
I can see the conf files inside /opt/configs/php-fpm/conf/php/php-fpm.d have been changed correctly, but not in /etc/php-fpm.d/
Maybe there is a copy of these files to /etc/php-fpm.d/ that isn't working?
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: PHP-FPM custom config #2
« Reply #4 on: 2016-07-02, 11:55:11 »
Is this a bug? @mustafa
[root@mail php-fpm.d]# cat /etc/php-fpm.conf| grep include
include=/opt/configs/php-fpm/conf/php/*.conf


It should rather be 'include=/opt/configs/php-fpm/conf/php/php-fpm.d/*.conf' right?

So you've gone from reading PHP-FPM conf files for clients in /etc/php-fpm.d/ (standard in CentOS) to /opt/configs/php-fpm/conf/php/php-fpm.d/ now?


Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP-FPM custom config #2
« Reply #5 on: 2016-07-02, 12:01:35 »
New php-fpm configs path is '/opt/configs/php-fpm/conf'. For 'php branch' using '/opt/configs/php-fpm/conf/php/php-fpm.conf' instead '/etc/php-fpm.conf'.

..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: PHP-FPM custom config #2
« Reply #6 on: 2016-07-02, 12:11:20 »
Sorry, i'm just confused now. Here is how the PHP config looks like now: https://my.owndrive.com/index.php/s/FdByW0Qn5RgHVoD


If i don't use the branch stuff, why isn't any of the config files in /etc/php-fpm.d/*.conf changing when i i run fixphp?



New php-fpm configs path is '/opt/configs/php-fpm/conf'. For 'php branch' using '/opt/configs/php-fpm/conf/php/php-fpm.conf' instead '/etc/php-fpm.conf'.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP-FPM custom config #2
« Reply #7 on: 2016-07-02, 12:51:59 »
In latest version, possible select 'php version' in 'web features' for all webservers (not only apache) using 'php-fpm'.

So, that why all php-fpm (branch and phpXYm) will be restart if running restart-web.

Path of '/opt/configs/php-fpm/conf/php' is content for php-fpm in 'php-used'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.032 seconds with 22 queries.

web stats analysis