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, 14:48:33

Author Topic: [SOLVED] Some web sites give 500  (Read 6886 times)

0 Members and 1 Guest are viewing this topic.

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
[SOLVED] Some web sites give 500
« on: 2016-02-21, 13:56:12 »
[Sun Feb 21 14:03:25 2016] [error] [client IP_CLIENT] (2)No such file or directory: FastCGI: failed to connect to server "/home/client1/domains.com/domain.com.0fake": connect() failed
[Sun Feb 21 14:03:25 2016] [error] [client IP_CLIENT] FastCGI: incomplete headers (0 bytes) received from server "/home/client1/domains.com/domain.com.0fake"
[Sun Feb 21 14:03:27 2016] [error] [client IP CLIENT2] (2)No such file or directory: FastCGI: failed to connect to server "/home/client1/domains.com/domain.com.0fake": connect() failed
[Sun Feb 21 14:03:27 2016] [error] [client IP CLIENT2] FastCGI: incomplete headers (0 bytes) received from server "/home/client1/domains.com/domain.com.0fake"

fixphp --client?=client1 fixes it, but after 1 mins the problem is there again :(
« Last Edit: 2016-02-21, 18:45:09 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Some web sites give 500
« Reply #1 on: 2016-02-21, 14:26:49 »
@Mustafa, any clue how to solve this?

I've tried to update php
sh /script/fix-chownchmod
sh /script/fixweb; sh /script/restart-web -y
etc

Nothing helps really
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some web sites give 500
« Reply #2 on: 2016-02-21, 14:40:51 »
Inform here 'sh /script/sysinfo; yum list installed httpd* mod* nginx* hiawatha*'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Some web sites give 500
« Reply #3 on: 2016-02-21, 15:54:22 »
A. Control Panel:               
   - Kloxo-MR: 7.0.0.b-2016021403
   - Web: hiawatha-10.1.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.41-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: mail.mysite.com
C. Services:
   1. MySQL: MariaDB-server-10.0.24-1.el6.x86_64
   2. PHP:
      - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
      - Multiple:
        * php54m-5.4.41-1.ius.el6
        * php55m-5.5.25-1.ius.el6
        * php56m-5.6.14-1.ius.el6
        * php70m-7.0.3-1.w6
      - Used: php56m
   3. Httpd: httpd-2.2.31-1.mr.el6.x86_64
      - PHP Type: php-fpm_event
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: nginx-1.9.11-1.el6.ngx.x86_64
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.7-1.mr.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          3774       3620        153         51        462       1342
   -/+ buffers/cache:       1815       1958
   Swap:            0          0          0
E. Disk Space:
   Filesystem            Size  Used Avail Use% Mounted on
   /dev/mapper/vg_kloxomaster-lv_root
                         295G  103G  178G  37% /


*** Process Time: 00:00:00:03.3212 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: mirror.nl.leaseweb.net
 * extras: mirror.nforce.com
 * mratwork-epel: mirror.proserve.nl
 * mratwork-ius-stable: mirror.amsiohosting.net
 * mratwork-webtatic: uk.repo.webtatic.com
 * updates: mirror.sitbv.nl
0 packages excluded due to repository protections
Installed Packages
hiawatha.x86_64                                                10.1.0-f.6.mr.el6                                        @mratwork-release-version-arch
httpd.x86_64                                                   2.2.31-1.mr.el6                                          @mratwork-release-version-arch
httpd-tools.x86_64                                             2.2.31-1.mr.el6                                          @mratwork-release-version-arch
mod_define.x86_64                                              2.2-3.mr.el6                                             @mratwork-release-version-arch
mod_fastcgi.x86_64                                             2.4.7-4.mr.el6                                           @mratwork-release-version-arch
mod_fcgid.x86_64                                               2.3.9-1.mr.el6                                           @mratwork-release-version-arch
mod_perl.x86_64                                                2.0.4-11.el6_5                                           @base                         
mod_rpaf.x86_64                                                0.6-4.mr.el6                                             @mratwork-release-version-arch
mod_ruid2.x86_64                                               0.9.8-3.mr.el6                                           @mratwork-release-version-arch
mod_ssl.x86_64                                                 1:2.2.31-1.mr.el6                                        @mratwork-release-version-arch
mod_suphp.x86_64                                               0.7.2-3.mr.el6                                           @mratwork-release-version-arch
module-init-tools.x86_64                                       3.9-25.el6                                               @base                         
nginx.x86_64
Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some web sites give 500
« Reply #4 on: 2016-02-21, 15:58:28 »
Did you select high or medium for 'apache optimize' 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: Some web sites give 500
« Reply #5 on: 2016-02-21, 16:08:20 »
It's not possible to see that. I can only see "Select one" under Apache Memory Optimize .

Did you select high or medium for 'apache optimize' in 'webserver configure'?.
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Some web sites give 500
« Reply #6 on: 2016-02-21, 16:10:05 »
The problem seems to be limited to Apache+PHP:
[root@mail ~]# curl -I http://127.0.0.1:30080
HTTP/1.1 500 Internal Server Error
Date: Sun, 21 Feb 2016 15:18:45 GMT
Server: Apache/2.2.31 (CentOS)
Accept-Ranges: bytes
Content-Length: 2104
Connection: close
Content-Type: text/html


The above command was on the Kloxo-MR server itself.

Now ALL the sites are down :(

Kloxo-MR!

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Some web sites give 500
« Reply #7 on: 2016-02-21, 16:17:17 »
Look like something wrong with httpd and or php. For httpd, need 'apache optimize' and for php need increasing 'fastcgi children'. But, sometimes, trouble in .htaccess.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Some web sites give 500
« Reply #8 on: 2016-02-21, 16:26:36 »
Yes, i verified it with swithcing to Nginx (no proxy) and now i get 502 Bad Gateway and so  the PHP-FPM is the problem here.
I already have max_children=200 in my custom.php53-pool file.

Will a cleanup help maybe?



Look like something wrong with httpd and or php. For httpd, need 'apache optimize' and for php need increasing 'fastcgi children'. But, sometimes, trouble in .htaccess.
« Last Edit: 2016-02-21, 16:40:57 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Some web sites give 500
« Reply #9 on: 2016-02-21, 17:55:24 »
Solved, i dunno what it was, but i removed my custom php-fpm53...
Will look into it later
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Some web sites give 500
« Reply #10 on: 2016-02-21, 18:04:18 »
Now i get the same error for webmail.anydomain.com on the server.
Now i've moved to Apache 2.4 :)

@Mustafa: Any idea what that's caused by?

If this is a known issue with Apache 2.4, i need to get back to 2.2...

Also, the IMAP external clients work fine so it's just the webmail's php connection (again same PHP error in the logs)

Solved, i dunno what it was, but i removed my custom php-fpm53...
Will look into it later
« Last Edit: 2016-02-21, 18:28:40 by fossxplorer (formerly 'Mella') »
Kloxo-MR!

Offline fossxplorer

  • Master
  • **
  • Posts: 640
  • Karma: +1/-0
    • View Profile
Re: Some web sites give 500
« Reply #11 on: 2016-02-21, 18:44:57 »
A cleanup fixed it.
Kloxo-MR!

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.076 seconds with 18 queries.

web stats analysis