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, 13:27:43

Author Topic: php-fpm do not work on slave  (Read 5468 times)

0 Members and 1 Guest are viewing this topic.

Offline zhenhai

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
php-fpm do not work on slave
« on: 2016-03-04, 04:20:14 »
after I add a domain for one client located in slave server, I found that no client_name.conf exist in /etc/php-fpm.d/ directory. 
« Last Edit: 2016-03-04, 05:26:37 by zhenhai »

Offline zhenhai

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: php-fpm do not work on slave
« Reply #1 on: 2016-03-04, 04:28:50 »
after I add a domain for one client located in slave server, I found that no client_name.conf exist in /etc/php-fpm.d/ directory.
I debug the code,and I found that
the call stack as follow:
web__lib.php ->createPhpFpmConfig ->getUserList

the issue is getUserList return empty array
« Last Edit: 2016-03-04, 05:27:07 by zhenhai »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm do not work on slave
« Reply #2 on: 2016-03-04, 05:07:15 »
Do you mean inside /etc/php-fpm.d/ ?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline zhenhai

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: php-fpm do not work on slave
« Reply #3 on: 2016-03-04, 05:24:56 »
Do you mean inside /etc/php-fpm.d/ ?.

YES

Offline zhenhai

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: php-fpm do not work on slave
« Reply #4 on: 2016-03-04, 05:33:30 »
it seems that  function getUserList  excute
"select nname,cttype from client where syncserver = 'slave_ip'"
from mysql server located in salve instead of master.
« Last Edit: 2016-03-04, 05:35:13 by zhenhai »

Offline zhenhai

  • Junior Member
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: php-fpm do not work on slave
« Reply #5 on: 2016-03-04, 05:37:46 »
it seems that  function getUserList  excute
"select nname,cttype from client where syncserver = 'slave_ip'"
from mysql server located in salve instead of master.

query from  mysql located in slave  return empty array, but query from master is right

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: php-fpm do not work on slave
« Reply #6 on: 2016-03-05, 04:00:33 »
I will investigate it.
..:: 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 23 queries.

web stats analysis