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. 2017-11-08, 01:18:03

Author Topic: Kloxo cluster. My hosting can't read php file !  (Read 4383 times)

0 Members and 1 Guest are viewing this topic.

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Kloxo cluster. My hosting can't read php file !
« on: 2014-02-14, 08:38:12 »
The first, i'm sorry about my bad English  :-[
I have 4 machines runing on Centos 6.5 64bit with Kloxo-MR 6.5.0:
Portal + dns server  at 192.168.4.20,
Mail server              at 192.168.4.21,
Web server (Nginx) at 192.168.4.18,
Mysql server           at 192.168.4.22.
When i create a domain "demo.com" for demo client, i access it via web browser and it shows "This is the Kloxo-MR Default Page for demo.com". Everything right but when i upload a php file, it show "502 bad gateway".
This is nginx error log :
Quote
*63 connect() to unix:/home/php-fpm/sock/.sock failed (2: no such file or directory) while connecting to upstream, client: 192.168.4.20, server: _, request: "GET /favicon.ico HTTP/1.1", upstream: " fastcgi://unix:/home/php-fpm/sock/.sock:", host :"www.demo.com"

This is php-fpm error log :
Quote
ERROR: unable to read what child say: Bad file descriptor

I locate to /home/php-fpm/sock/ and don't see demo.sock, it must be here . Can i create it manually by hands ? Or other sollution ?

Happy Valentine Day and best wishes for everyone  ;D
« Last Edit: 2014-02-14, 08:40:21 by hoangkoha »

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: Kloxo cluster. My hosting can't read php file !
« Reply #1 on: 2014-02-14, 15:31:01 »
Switch your php type (edited) to ruid2.  Php-fpm doesn't work across cluster master slave at the current moment. ;)
« Last Edit: 2014-02-15, 01:44:21 by chrisf »
Christopher

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

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Kloxo cluster. My hosting can't read php file !
« Reply #2 on: 2014-02-14, 16:26:29 »
Thank you very much chrisf. I found 4 php branch in "webserver config" at kloxo admin page: php_(as_5.3.27), php52_(as_5.2.17), php53u_(as_5.3.28) and php54_(as_5.4.23). I'm using php54.
I think "ruid2" is the php type and i don't know how to switch from php-fpm to use ruid2. What should i do ?
Again, thank you, chrisf. You diagnose exactly my problem.
« Last Edit: 2014-02-14, 16:50:58 by hoangkoha »

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: Kloxo cluster. My hosting can't read php file !
« Reply #3 on: 2014-02-14, 20:59:44 »
I am sorry, I meant 'type'.  Just click where it says php type and select ruid2.  Click update.  Done ;)

Be sure to set it under the 'server' that has the web server.
Christopher

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

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Kloxo cluster. My hosting can't read php file !
« Reply #4 on: 2014-02-15, 06:09:26 »
Thank you, but i could not find that option  :P Please see my picture attached  :-[

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Kloxo cluster. My hosting can't read php file !
« Reply #5 on: 2014-02-15, 06:22:41 »
Php-type only appear in httpd (aka apache) or lighttpd-/nginx-/hiawatha-proxy because lighttpd/nginx/hiawatha always use php-fpm.

Switch to 'lighttpd' (if not using lighttpd or lighttpd-proxy) and then switch back to original in 'switch programs'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Kloxo cluster. My hosting can't read php file !
« Reply #6 on: 2014-02-15, 07:33:32 »
Thank you, Admin.
I switched to 'lighttpd', then i switched back to 'apache' in 'switch programs'. I reboot all my system. Now, In 'service' icon at 192.168.4.18 i see 'httpd' is running on.
And I don't find any option to choose 'PHP-type'. Where is my wrong ?
This is httpd error file at /var/log/httpd/
Code: [Select]
[notice] mod_ruid2/0.9.8 enable
[warn] RSA server certificate wildcard CommonName (CN) '*.lxlabs.com' does NOT match server name!?
Apache/2.2.26 (unix) DAV/2 mod_fastcgi/2.4.6 mod_fcgid/2.3.9 mod_rpaf/0.6 mod_ssl/2.2.26 OpenSSL/1.0.0-fips configured -- resuming normal operations

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Kloxo cluster. My hosting can't read php file !
« Reply #7 on: 2014-02-15, 08:42:17 »
Finally, i show that. I feel very happy. Thank you again, chrisf and aministrator

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Kloxo cluster. My hosting can't read php file !
« Reply #8 on: 2014-02-18, 03:04:30 »
I'm sorry but i got a new problem, i can't access webmail. I ping webmail.demo.com it show the true Ip of mail server 192.168.4.21. Where is the log file of qmail ? i try to find it from /var/log/qmail but nothing at all.
What happen to my system ? Should i use a server for both mail server and web server ?

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Kloxo cluster. My hosting can't read php file !
« Reply #9 on: 2014-02-18, 03:10:07 »
What about cp.domain.com. Also the same problem?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Kloxo cluster. My hosting can't read php file !
« Reply #10 on: 2014-02-18, 03:32:17 »
You mean "cp.demo.com" ? It 's the same problem. I ping cp.demo.com and it show 192.168.4.20 - the control panel server.

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Kloxo cluster. My hosting can't read php file !
« Reply #11 on: 2014-02-18, 04:15:01 »
So, something wrong with php-type.

Go to 'webserver config' and then change php-type to other (let say ruid2) and then change 'php-fpm_event'. To make sure, run 'sh /script/restart-all' (no failed restart for php-fpm).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Kloxo cluster. My hosting can't read php file !
« Reply #12 on: 2014-02-18, 04:46:44 »
i'm trying change to 'php-fpm_event' and restart-all but still can't access webmail.domain.com. I will remove all clients and setup step by step and report here later.

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Kloxo cluster. My hosting can't read php file !
« Reply #13 on: 2014-02-18, 05:24:11 »
Two reason why webmail/cp not able to access:
1. DNS setting not setting well --> no/wrong 'A record' or 'CNAME record' for webmail and cp.
2. Php not running well --> execute php from browser will appear php code
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline hoangkoha

  • Junior Member
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Kloxo cluster. My hosting can't read php file !
« Reply #14 on: 2014-02-18, 07:59:21 »
This is my DNS setting ( picture attack ). Some problem lead to Apache can not start anymore. I will format all and setup all of system from clean centos.

 


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

Page created in 0.037 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM