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
3
votes
1 answer

Starting a FastCGI app on IIS, not demand-start

My FastCGI app on IIS won't start until its page is fetched the first time (demand-start). I want it to start earlier and be ready for the first fetch. I see various parameters for influencing its operation, but can't find this one. (As you can…
JimB
  • 187
  • 1
  • 2
  • 11
3
votes
1 answer

Nginx as reverse proxy in front of Apache

Current Setup Single CentOS 6 VPS with 6G memory running apache 2.2, mariadb & PHP via FastCGI. Server has mostly wordpress sites, but also has some other PHP based sites. Right now we are not using HTTPS for any site, but plan to add it for…
firex
  • 73
  • 5
3
votes
1 answer

PHP FPM, location nesting vs unnested for avoiding code execution

Is there any advantage using: location ~ \.php { location ~ \..*/.*\.php$ { return 403; } fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_split_path_info…
JorgeeFG
  • 993
  • 8
  • 13
3
votes
0 answers

IIS server slows down with only a few tens of requests

I'm using IIS 7.5 with PHP and I'm having troubles with my application, it is VERY slow and it can take more than 30 seconds to respond sometimes. I believe this is due to some kind of queue of requests to process. I've taken a look at the "Worker…
Steve
  • 203
  • 6
  • 13
3
votes
2 answers

Nginx fastcgi_cache hide Set-Cookie when serving from cache

I'm trying to use nginx fastcgi_cache to serve some pages from my site, it worked fine but I found that sessions were being duplicated to all the users because Set-Cookie was cached in the response. I've tried several solutions, but I don't want to…
SkarXa
  • 131
  • 1
  • 3
3
votes
2 answers

Is it really possible to use PHP sessions for authentication with nginx fastcgi cache?

I have recently switched an opencart instance from Apache+mod_php to nginx+fastcgi+php-fpm. I have been trying to leverage caching for most pages through fastcgi-cache. Unfortunately, many users began reporting ghost orders or taking over others…
Bretticus
  • 175
  • 3
  • 11
3
votes
1 answer

How are files being added to site as apache, when site is running as FastCGI?

I have a web server that is running many different sites (standard vhosts setup, most sites are Joomla based, a few wordpress and other non-CMS sites) in a Parallels Automation 11.5 environment. The version of apache on the web server, is 2.2.15,…
cwm33
  • 31
  • 2
3
votes
0 answers

php-fpm: Maintain php_mod logging format

I recently switched all my lab servers from apache pre_fork/mod_php to apache worker/fcgi/php-fpm, and after getting everything set-up correctly, I noticed one last issue; php-fpm is adding it's own logging "header" to the php error log. So this…
Mike Purcell
  • 1,708
  • 7
  • 32
  • 54
3
votes
1 answer

Is the server still vulnerable to attack if we don't turn off cgi.fix_pathinfo?

The /etc/nginx/sites-available/default file that comes with nginx installation has the following content: # You may add here your # server { # ... # } # statements for each of your virtual hosts to this file ## # You should look at the following…
bobo
  • 599
  • 2
  • 8
  • 24
3
votes
1 answer

mod_fcgid process doesn't respawn

I have a Python script running on my server as a FastCGI using Apache2 and mod_fcgid. I let it spawn up to five processes. But I soon get messages like these in the Apache logs: [Wed Sep 02 23:16:34 2009] [warn] (103)Software caused connection…
aaronsw
  • 211
  • 1
  • 3
  • 4
3
votes
2 answers

Does using fastcgi_keep_conn in nginx increase performance for php-fpm?

The nginx docs say that keepalive for fastcgi cannot work if the fastcgi_keep_conn is not on. However, I can't find any further details on this. I already have keepalive enabled server-wide. I am using php-fpm. Are there any issues about using…
Ryan
  • 332
  • 1
  • 4
  • 11
3
votes
2 answers

Apache fast-cgi and php-fpm failing to run php file?

I have been trying to switch my server from mod php to fastcgi set up on an apache server running on osx (as a development machine). My problem is that php-fpm doesn't seem to processing the files. When I try to visit the pages the webserver simply…
stmfunk
  • 83
  • 1
  • 8
3
votes
1 answer

Major differences between mod_fastcgi and mod_proxy_fcgi

I noticed there are a couple of modules for Apache that provide FastCGI support. The two most popular seem to be mod_fastcgi and mod_proxy_fcgi. There seem to be other ones as well. My questions are: Which of these module are the most…
julkiewicz
  • 141
  • 2
  • 7
3
votes
5 answers

'No Input file specified' error - NginX / fcgi - when requesting non-existant .php file

I have NginX serving a drupal site using fcgi. Attempting to browse to a non existent php file (eg. www.example.com/this-file-doesn't-exist.php) results in a white screen with this error: 'No Input file specified' I used this post to help me set it…
user15241
  • 103
  • 2
  • 2
  • 4
3
votes
1 answer

Nginx FastCGI in subdirectory only?

I have a single domain where the root is served by a python application running under uWSGI. I however need to run a PHP forum on a subfolder /forum/. I have the following in the apps-available configuration file: location / { try_files $uri @oath;…
Drakekin
  • 133
  • 1
  • 3