Questions tagged [fastcgi]

FastCGI is an open interface web servers can use to execute applications in a secure and isolated manner.

FastCGI is an open interface web servers can use to run applications as separate isolated processes. It is an enhancement of the original NCSA CGI interface specification, with a range of improvements. The primary improvement over the standard CGI approach offered by FastCGI is performance, hence the name.

FastCGI is supported by a broad range of Web Servers (such as Apache, nginx, lighttpd).

730 questions
2
votes
1 answer

Can't make PHP work as FastCGI on Apache and Windows

I'm trying to run PHP as FastCGI with no success. I made a *.conf file such on mod_fcgid page but without a wrapper script. Here is my conf: # php5 as FastCGI executable FcgidMaxRequestsPerProcess 10000 # Uncomment the following line if…
paulodiovani
  • 121
  • 5
2
votes
2 answers

APC uptime 0 because of Fast

I have a VPS using Parallels/Plesk (11.0.9 Update #22, last updated at Oct 31, 2012 03:33 AM CentOS 6.3 (Final) x86_64) I have apache (CGI/FastCGI) installed and nginx as reverse proxy. Everything is working just fine. I installed APC for caching,…
demlasjr
  • 49
  • 1
  • 6
2
votes
1 answer

Unable to install PHP-FPM on Apache (Failed to connect to FastCGI server)

I have been having problem installing php-fpm for use with apache2-mpm-worker. This is the guide that I am following. According to the guide's Step 5, Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi…
Nyxynyx
  • 1,459
  • 11
  • 39
  • 49
2
votes
2 answers

Apache FCGI PHP-FPM Mac OS X 10.8 unable to bind

So I have found a few other threads about this kind of issue, but their solutions aren't working for me. Basically, this is my development machine and the setup has been fine for a number of weeks now, but suddenly I'm getting a lot of issues with…
shousper
  • 161
  • 1
  • 7
2
votes
1 answer

Best Practice for "fastcgi_pass" Directive Location in NGiNX

Is best to put the fastcgi_pass 127.0.0.1:9000 directive in the fastcgi_params file for NGiNX, or to explicitly state it in the location for \.php$? Or does it not really matter?
tacotuesday
  • 1,389
  • 1
  • 16
  • 27
2
votes
1 answer

nginx buffering data before sending to fastcgi

My nginx server is buffering all data POSTed by client, and when it has all data, it writes the data to fastcgi socket. How can we avoid that delay, and let fastcgi start receiving the data bit-by-bit, as soon as it's received from client ? I tried…
Antares
  • 191
  • 1
  • 2
  • 14
2
votes
0 answers

Serving videos (mod_h264_streaming) using lighttpd with a fastcgi authorizor causing problems

So my goal is to serve streaming video, but only after authentication. Since authentication could use one of many methods, I'm writing a fastcgi authorizer to handle them. Each part (streaming, fastcgi authorizer) works independently, but together…
2
votes
1 answer

Apache + mod_php 4x slower than Nginx + PHP-FPM

I've been benchmarking a Drupal 7 site and I've found apache is up to four times slower in terms of page execution than an Nginx set up I've created. As it's page execution time my understanding is that no other requests will be made for page assets…
2
votes
3 answers

error when using nginx and php-cgi on Windows: No input file specified

I get the above error when using nginx and php-cgi on Windows. This is my nginx configuration: worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; …
Alex
  • 53
  • 1
  • 7
2
votes
2 answers

nginx rewrite not including .php files?

I have this set up in an nginx site config, which is working perfectly to redirect all .html requests through to /index.php. However it doesn't rewrite test.php to /index.php and instead throws a 404 error. Can anyone shed any light please? Here is…
Splodge
  • 21
  • 1
2
votes
1 answer

FastCGI may require some periodic process maintenance?

I'm running Apache 2 in worker mode with PHP FastCGI. I've read that due to the nature of long-running processes, FastCGI may require some periodic process maintenance. What is meant by periodic process maintenance?
mattmac
  • 133
  • 4
2
votes
1 answer

php processes owned by ppid 1 after X amount of time

I have a CentOS server running WHM that uses FastCGI (mod_fcgid) running PHP 5.2.17 on Apache 2.0 with SuExec. When I start Apache it begins fine and serving requests. If I run ps on the terminal as root I see the php processes and they are owned by…
Kristopher Ives
  • 384
  • 1
  • 3
  • 14
2
votes
2 answers

How to run mod_php and fastcgi side-by-side?

How would it be possible to run certain scripts (this could be in either a vhost or directory setting in the apache conf) to run as mod_php when the current server configuration is running FPM/FastCGI? Server OS: Ubuntu-Server 11.04
Highway of Life
  • 506
  • 1
  • 7
  • 14
2
votes
2 answers

Django, nginx, FastCGI - running via unix sockets, permission problems

I've configured nginx to run django site via socket: fastcgi_pass unix:/tmp/django.socket; now I'm (manually) running ./manage.py runfcgi socket=/tmp/django.socket http request results in 502 bad gateway, and the error is following: connect() to…
migajek
  • 171
  • 2
  • 10
2
votes
1 answer

405 Method even when posting to a php file

I been googling, and all I can find is that this error may happen when you post to an html file. In my setup I have a rewrite rule, that basically hides the index.php from the url, and I for the longest time I thought it had something to do with…
RoboTamer
  • 502
  • 1
  • 4
  • 17