Welcome! Log In Create A New Profile

Advanced

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

December 08, 2009 09:21PM
Gentlemen,

I respect your'e opinions, but for all you're heated desperation to defend php-fcgi you may have forgotten this thread was started by someone who found php-fcgi to be unstable, and he hasn't been able to find a solution. I found one that worked for me when php-fcgi failed. Offering a solution to someone that results in the same failure doesn't seem to be a solution to me.

Perhaps someone here could give a detailed solution as to how miradev might solve his problem. Kind of like a how-to explanation. We're all here to help each other.

I don't want to anyone coming here for help only offered one possibility, when something else might be better suited to their situation and needs, which is why I posted an alternative.

Apache may not be on the most loved list here, but it can work where php-fcgi fails. Let's not ignore this alternative when someone is ready to switch from Nginx back to Apache, as even the author of WP Super Cache did just last week. Insisting that php-fcgi is the only way to serve PHP will slow the adoption of Nginx, because it doesn't offer support for PHP itself.

In fact, Wordpress itself has a problem when php-fcgi is used rather than Apache as the backend to serve PHP

http://wordpress.org/extend/plugins/nginx-compatibility/

[quote="Vladimir Kolesnikov"]
When WordPress detects that FastCGI PHP SAPI is in use, it disregards the redirect status code passed to wp_redirect. Thus, all 301 redrects become 302 redirects which may not be good for SEO. The plugin overrides wp_redirect when it detects that nginx is used.

When WordPress detects that mod_rewrite is not loaded (which is the case for nginx as it does not load any Apache modules) it falls back to PATHINFO permalinks in Permalink Settings page. nginx itself has built-in support for URL rewriting and does not need PATHINFO permalinks. Thus, when the plugin detects that nginx is used, it makes WordPress think that mod_rewrite is loaded and it is OK to use pretty permalinks.
[/quote]

There is also an extensive additional configuration that needs to be done to avoid problems.

http://wordpress.org/extend/plugins/nginx-compatibility/other_notes/

I've never heard anyone hear discuss these issues, which means a lot of people might be losing out on a lot of traffic that could be coming from search engines because of an SEO problem caused by an incompatibility between php-fcgi and Wordpress.

Using Apache as a backend eliminates this problem.

Like many of you, I have had my own experiences, and I now have a multitude of solutions to fit different situations. Although I don't know what platform miradev uses to serve his web sites, if it is Wordpress then using Apache on the backend could save him some headaches he didn't even know existed.
Subject Author Posted

Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

miradev December 08, 2009 03:17AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 08, 2009 06:20AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

miradev December 08, 2009 06:29AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 08, 2009 06:36AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Grzegorz Nosek December 08, 2009 06:48AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 08, 2009 06:56AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Grzegorz Nosek December 08, 2009 07:00AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Grzegorz Nosek December 08, 2009 07:06AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 08, 2009 07:06AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

nerdgrind December 08, 2009 04:43PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 08, 2009 05:10PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

nerdgrind December 08, 2009 05:31PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 08, 2009 05:56PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

nerdgrind December 08, 2009 09:21PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 08, 2009 09:34PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

nerdgrind December 08, 2009 11:35PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 08, 2009 11:52PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Denis Filimonov December 09, 2009 01:08AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Grzegorz Nosek December 09, 2009 03:00AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

nerdgrind December 09, 2009 03:27AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

nerdgrind December 08, 2009 07:46PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

dannynoonan March 06, 2010 12:58AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Glen Lumanau December 08, 2009 08:08PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Jim Ohlstein December 08, 2009 08:18PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Jim Ohlstein December 08, 2009 08:27PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 08, 2009 08:20PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Igor Sysoev December 09, 2009 04:06AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Phillip Oldham December 09, 2009 04:14AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 09, 2009 07:26AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 09, 2009 07:38AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Igor Sysoev December 09, 2009 08:00AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Phillip Oldham December 09, 2009 04:14AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Grzegorz Nosek December 09, 2009 04:46AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Phillip Oldham December 09, 2009 04:58AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

nerdgrind December 09, 2009 04:54AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 09, 2009 07:26AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

miradev December 09, 2009 07:24AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

nerdgrind December 09, 2009 02:54PM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 09, 2009 07:42AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

Akins, Brian December 09, 2009 10:56AM

Re: Fast CGI (spawn-fcgi / php-cgi) crashes/dies/hangs

mike December 09, 2009 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 62
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready