Questions tagged [mod-fastcgi]

mod-fastcgi is an Apache module providing support for the FastCGI protocol.

mod-fastcgi is an Apache module providing support for the FastCGI protocol.

http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html

72 questions
136
votes
3 answers

What is the difference between fastcgi and fpm?

I am trying to install php with fpm on macports. I read somewhere that fpm means FastCGI process manager. Does that mean fastcgi and fpm are same? If they are same, then why do we have two different macports variants for php namely "php5 +fastcgi"…
Deepan Chakravarthy
  • 4,154
  • 7
  • 25
  • 21
92
votes
4 answers

nginx: connect() failed (111: Connection refused) while connecting to upstream

Trying to deploy my first portal . I am getting 502 gateway timeout error in browser when i was sending the request through browser when i checked the logs , i got this error 2014/02/03 09:00:32 [error] 16607#0: *1 connect() failed (111:…
Abhishek Tripathi
  • 1,570
  • 3
  • 20
  • 32
48
votes
5 answers

What is the best way to run ServiceStack on Linux / Mono?

Listed on the ServiceStack website it shows that ServiceStack can run on Mono with either: XSP mod_mono FastCgi Console What are these different configurations and which is preferred for Web Services on Mono?
mythz
  • 141,670
  • 29
  • 246
  • 390
15
votes
3 answers

mod_perl vs mod_fastcgi

I'm developing a web app in Perl with some C as necessary for some heavy duty number crunching. The main problem I'm having so far is trying to decide if I should use mod-perl, mod-fastcgi or both to run my scripts because I'm having a difficult…
gvkv
  • 1,894
  • 2
  • 22
  • 34
13
votes
2 answers

Increase PHP-FPM idle timeout setting

We have recently migrated to PHP-FPM. However we have encountered a problem with some long running scripts. The code looks roughly like: foreach ($items as $item) { set_time_limit(30); proccessThatTakesAround2secs(); } The normal PHP…
apokryfos
  • 38,771
  • 9
  • 70
  • 114
10
votes
2 answers

Difference between FastCgiExternalServer and FastCgiServer in Apache FastCGI PHP?

Just let me state that I am new to FastCGI. I have MAMP's Apache on my OS X machine. Default PHP handler was Apache Handler 2.0 (libphp5.so). I wanted to change to FastCGI and followed the answer here: How to configure Apache to run PHP as FastCGI…
tonix
  • 6,671
  • 13
  • 75
  • 136
10
votes
1 answer

Running Apache mod_php and mod_fastcgi in seperate vhosts on one Apache server

So, I need to run multiple php apps/sites on one server. One or many should run using apache and mod_php5, and one or many should be able to run using mod_fastcgi and php-fpm. The mod_php5 ones are currently fine, and the fastcgi ones work if i…
Pharaoh Tools
  • 161
  • 3
  • 7
9
votes
3 answers

Custom 404 message when using PHP-FPM with Apache

I have Apache (2.2.22 on Debian) configured to handle PHP files via FastCGI: SetHandler application/x-httpd-php Action application/x-httpd-php /fcgi-bin/php5-fpm virtual Alias /fcgi-bin/php5-fpm…
coret
  • 201
  • 2
  • 5
8
votes
2 answers

mod_fastcgi idle timeout not work

I'm using Apache + mod_fastcgi + php-fpm. I'm trying parse big file and set in php script max_execution_time to 0, but script fails after 30 seconds with message in error log: "FastCGI: comm with server "/usr/lib/cgi-bin/lz-fcgi" aborted: idle…
ghettovoice
  • 358
  • 1
  • 5
  • 11
7
votes
2 answers

What does "Maximal count of pending signals (120) exceeded" mean?

My Perl web-app, running under Apache mod_fastcgi, frequently gets errors like the following: Maximal count of pending signals (120) exceeded at line 119. I've seen this happen in relation to file uploads but I'm not sure that's the only time it…
NXT
  • 1,855
  • 2
  • 18
  • 36
6
votes
1 answer

Creating per-user php5-fpm pools the secure way

When creating per-user php5-fpm pools on an Apache mod_fastcgi setup which of the following is the most secure way and efficient way of granting webserver permissions to the PHP pool? Option 1: Set the group to www-data: listen.owner =…
A.Jesin
  • 423
  • 3
  • 18
5
votes
4 answers

deploying a WSGI application on mod_python

I wrote a WSGI application which I need to deploy to a server, however I've been given a server that already has mod_python installed. I am not allowed to remove mod_python since there are some mod_python applications running on it already. One…
user868459
  • 288
  • 1
  • 3
  • 8
4
votes
1 answer

Css not working with FastCGI and Lighttpd

Im new to fastcgi and lighttpd and trying to setup my DJANGO app. facing couple of problems at the moment: CSS not working at all FastCGI is adding its prefix for the requested URL i.e. mydomain.com/mysite.fcgi/mysite.fcgi/content/1/000228/ instead…
user1170364
  • 349
  • 2
  • 5
  • 11
4
votes
1 answer

Meaning of PHP_FCGI_CHILDREN and max-procs in Lighttpd and Fastcgi configuration

There are 4 fields in fastcgi configuration, max-procs, max-load-per-proc, PHP_FCGI_CHILDREN,PHP_FCGI_MAX_REQUESTS : fastcgi.server = ( ".php" => (( "socket" => "/tmp/php-fastcgi.socket", "bin-path" => "/usr/local/bin/php", "max-procs"…
Guest123
  • 105
  • 3
  • 9
4
votes
1 answer

Which FastCGI server mode should I choose under Apache?

I am new to FastCGI and looking to use this platform to speed up my existing vanilla CGI (perl) programs. However in reading the FastCGI/Apache FAQ, it appears I can setup my scripts (once converted to use separate initialization/request sections)…
Marcus
  • 5,772
  • 8
  • 35
  • 60
1
2 3 4 5