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-28, 23:53:09

Author Topic: [SOLVED] Internal error with PHP-FPM  (Read 4677 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
[SOLVED] Internal error with PHP-FPM
« on: 2014-09-24, 16:22:47 »
On my test server I'm using Hiawathaproxy + PHP-FPM, but getting:
[Wed Sep 24 16:16:31 2014] [error] [client 192.168.2.150] (2)No such file or directory: FastCGI: failed to connect to server "/home/test/oclass.myftp.org/test.myftp.org.0fake": connect() failed
[Wed Sep 24 16:16:31 2014] [error] [client 192.168.2.150] FastCGI: incomplete headers (0 bytes) received from server "/home/test/oclass.myftp.org/test.myftp.org.0fake"


I've changed the webserver to Apache only, same issue. But switching to suphp seems to work.
Any idea why?
« Last Edit: 2014-09-25, 22:15:33 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Internal error with PHP-FPM
« Reply #1 on: 2014-09-24, 21:27:54 »
Better using 'php53m' (from 'multiple php') instead 'php53u' (from php-branch) in 'php used' in 'webserver configure'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Internal error with PHP-FPM
« Reply #2 on: 2014-09-24, 22:53:56 »
I already had php54m, but changed to php53m now with same issue. I tried php55m too, same issue.
Any idea why it doesn't like the PHP-FPM setup?


I'm on php53m now, but looks like the web PHP still runs 5.4.32, i.e php54m right?

[root@kloxo ]# lxphp.exe  -v
PHP 5.4.27 (cli) (built: Apr  4 2014 10:04:03)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.2, Copyright (c) 1999-2013, by Zend Technologies

[root@kloxo ]# php -v
PHP 5.4.32 (cli) (built: Aug 22 2014 10:17:34)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
[root@kloxo ]#
« Last Edit: 2014-09-24, 22:57:09 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Internal error with PHP-FPM
« Reply #3 on: 2014-09-24, 23:21:12 »
lxphp.exe (aka phpXYs) is special php for kloxo panel. It's not the same with regular php (read via 'php -v') and 'multiple php' (aka phpXYm; read via 'php54m-cli -m').

For comparison, try using hiawatha alone and see php-fpm issue.

For using php-fpm in apache/proxy, try change to 'mod_php_ruid2' and then change back to 'php-fpm_event'. To make sure, run 'sh /script/fixweb; sh /script/fixphp; sh /script/restart-web'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Internal error with PHP-FPM
« Reply #4 on: 2014-09-24, 23:38:16 »
Ok, i tend to mix these up some times! Now i'm with you thanks!
Now i tried switching to Hiawatha web server (not proxy1), but got Service Unavaiable 503 from Hiawatha's nice error page :)
Also did run 'sh /script/fixweb; sh /script/fixphp; sh /script/restart-web' after switching to Hiawatha.

Then i switched to Apache web server and with mod_php_ruid2, followed with fixweb etc, and it works.
And now tested switching to php-fpm_event and same problem.

The problem is related to PHP-FPM only. Strange.



lxphp.exe (aka phpXYs) is special php for kloxo panel. It's not the same with regular php (read via 'php -v') and 'multiple php' (aka phpXYm; read via 'php54m-cli -m').

For comparison, try using hiawatha alone and see php-fpm issue.

For using php-fpm in apache/proxy, try change to 'mod_php_ruid2' and then change back to 'php-fpm_event'. To make sure, run 'sh /script/fixweb; sh /script/fixphp; sh /script/restart-web'.
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Internal error with PHP-FPM
« Reply #5 on: 2014-09-25, 10:39:13 »
Inform here 'dir -l /etc/httpd/conf.d' where you select php-fpm as php-type.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Internal error with PHP-FPM
« Reply #6 on: 2014-09-25, 13:01:03 »
[root@kloxo ]# dir -l /etc/httpd/conf.d/
total 88
-rw-r--r--  1 root root   46 Sep 25 00:46 define.conf
-rw-r--r--. 1 root root  346 Sep 25 00:46 fastcgi.conf
-rw-r--r--  1 root root 1510 Apr 28 05:36 fastcgi.conf.rpmnew
-rw-r--r--. 1 root root  111 Sep 25 00:36 fcgid.conf
-rw-r--r--  1 root root  111 Sep 25 00:36 itk.conf
-rw-r--r--. 1 root root 1977 Sep 25 00:46 ~lxcenter.conf
-rw-r--r--  1 root root 1794 Sep 25 00:46 perl.conf
-rw-r--r--  1 root root 1796 Apr 17 10:03 perl.conf.rpmnew
-rw-r--r--  1 root root  111 Sep 25 00:36 php.conf
-rw-r--r--  1 root root  674 Aug 22 16:34 php.conf.rpmnew
-rw-r--r--  1 root root  111 Sep 24 23:31 php.conf.rpmsave
-rw-r--r--  1 root root  566 Dec  5  2005 proxy_ajp.conf
-rw-r--r--. 1 root root  111 Sep 25 00:36 proxy_fcgi.conf
-rw-r--r--  1 root root  392 Sep 13 20:47 README
-rw-r--r--. 1 root root  308 Sep 25 00:46 rpaf.conf
-rw-r--r--. 1 root root  111 Sep 25 00:36 ruid2.conf
-rw-r--r--. 1 root root  789 Sep 25 00:46 ssl.conf
-rw-r--r--  1 root root  466 May 13  2008 ssl.conf.rpmnew
-rw-r--r--. 1 root root  111 Sep 25 00:36 suphp.conf
-rw-r--r--. 1 root root   87 Sep 25 00:46 __version.conf
-rw-r--r--  1 root root  352 Sep  9  2004 webalizer.conf
-rw-r--r--  1 root root  299 Sep  9  2004 welcome.conf
[root@kloxo ]#


 

« Last Edit: 2014-09-25, 13:34: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: Internal error with PHP-FPM
« Reply #7 on: 2014-09-25, 14:00:06 »
If using 6.5.0, try 'mkdir /home/php-fpm/sock; chmod 755 /home/php-fpm/sock'. Change '/home' to '/opt/configs' if using 7.0.0.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Internal error with PHP-FPM
« Reply #8 on: 2014-09-25, 22:15:10 »
I'm using 7.0.0.

Oh i found out the root cause! I had a custom.<clientname>.conf inside /etc/php-fpm.d/ which was causing the problem!
Now it's working perfectly.
Sorry for taking your valuable time!






If using 6.5.0, try 'mkdir /home/php-fpm/sock; chmod 755 /home/php-fpm/sock'. Change '/home' to '/opt/configs' if using 7.0.0.
« Last Edit: 2014-09-25, 22:36:18 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

 


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

Page created in 0.03 seconds with 22 queries.

web stats analysis