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

Can php-fpm support open_basedir set dynamically for multiple virtual hosts with a single user pool?

I am running into a problem where trying to set open_basedir dynamically under nginx (and apache) for php-fpm is "bleeding through" to other vhosts when running php-fpm as user "nobody" (for legacy reasons). using fastcgi_param PHP_ADMIN_VALUE…
ck_
  • 459
  • 1
  • 7
  • 20
3
votes
2 answers

Loopback connection via PHP's getimage size crashes server (Magento's CMS)

We were able to trace down a problem that is crashing our NGINX server running Magento until the following point: Background info: Magento Backend has a CMS function with a WYSIWYG editor. This editor loads some pictures via a controller in magento…
Alex
  • 676
  • 1
  • 14
  • 37
3
votes
2 answers

Haproxy not properly passing on X-Forwarded-For header

I have backend web servers that receive requests by way of haproxy->nginx->fastcgi. The web app used to see multiple ip's coming through in the X-Forwarded-For header, chained together with commas (most original IP on the left). At some point in…
JesseP
  • 196
  • 1
  • 1
  • 6
3
votes
3 answers

Why would I get a 500 Internal Server Error? - IIS7 - FastCgiModule with PHP

I am getting a "500 - Internal Server Error" from the outside, the local connection gives me the 500 error as well as long with some more debugging information. The problem seems to be with FastCgiModule: HTTP Error 500.0 - Internal Server Error An…
Fleppar
  • 33
  • 1
  • 1
  • 4
3
votes
1 answer

PHP Errors (via FastCGI) with Nginx on Ubuntu Linode

I setup LEMP (Linux, Nginx, MySQL, and PHP) on a Ubuntu 10.04 server from Linode with the following guide: http://library.linode.com/lemp-guides/ubuntu-10.04-lucid Essentially, I uploaded my PHP scripts to a directory…
element119
  • 145
  • 1
  • 2
  • 8
3
votes
1 answer

How to add a new website to a fastcgi-mono-server4 process on nginx without having to restart existing websites?

I know this might be related but I have a script that loads fastcgi-mono-server for defined websites on a configuration file and I need to a new website to the pool without having to reload all fastcgi process. Doing nginx -s reload Just reload…
Rui Marques
  • 190
  • 13
3
votes
1 answer

Changing server API from CGI to FastCGI

I have a server set up on CentOS and I need to change the API from CGI to FCGI (Someone else set this up initially) for x-cache to work (we need this as we have a TV appearance on monday and are expecting high-load). The server is a dedicated Dell…
Myles Gray
  • 659
  • 4
  • 12
  • 33
3
votes
2 answers

Setup secure shared hosting (Apache, PHP, MySQL)

So I'm setting up a shared hosting with Apache, PHP, MySQL and the biggest question mark is how to do with PHP, since there is a million options out there how to configure it securely. The plan is: Chroot for MySQL (built in support for…
Apaz
  • 43
  • 4
3
votes
2 answers

nginx: multiple document roots with fastcgi

When using a single document root in my http directive, everything works fine. However, I want to add a location directive with an additional directive and I can't get fastcgi to work with this additional root (I receive a white page when accessing…
tman
  • 33
  • 1
  • 1
  • 4
3
votes
3 answers

Are there benefits in using CGI in a large scale Apache2 server or should I just use FASTCGI?

I have a web product done in PHP that theoretically should support a lot of users. Problem is, I just left the apache as it is and found out its just running as CGI. Is this very wrong and I should do it in fastcgi or just leave it as it is?
gianebao
  • 133
  • 4
3
votes
4 answers

How to add a pool to FPM (nginx) without reload/restart fpm itself?

Im building an environment (on a ubuntu 10.04.02 machine) to handle a website with many (should support at least 1000) subdomains, each of them served by a different FPM pool, with a different user. So nothing new; My problem is to create (and…
Strae
  • 457
  • 1
  • 8
  • 22
3
votes
4 answers

Why does mod_fastcgi in Apache complain that it does not have permission to create server?

This is a very old FastCGI issue but I have never found a satisfactory answer. Searching the phrase "(13) permission denied fastcgi can't create server" on Google will show that there's a lot of people experiencing this issue for a long while. Some…
GeneQ
  • 407
  • 2
  • 8
  • 17
3
votes
4 answers

apache with php fastcgi keeps going down

I have an apache2 server configured with MPM worker and php fast cgi. Lately the apache logs have been telling me that MaxClients is being reached frequently, even though it's already pretty high. My server is now constantly going down, and I see…
Josh Nankin
  • 722
  • 12
  • 27
3
votes
2 answers

configuring FastCGI on CentOS with PHP

So I was following this tutorial, but then I was stuck because when running the code: # yum install spawn-fcgi it says there is no package. I am using Nginx. Please suggest
EquinoX
  • 367
  • 3
  • 11
  • 27
3
votes
1 answer

Nginx + Django + FastCGI WSGI error? (Non fatal)

I am running django on top of nginx with fastcgi. When i do runfcgi, I am seeing these errors: python manage.py runfcgi daemonize=false host=127.0.0.1 port=8000 WSGIServer: missing FastCGI param SERVER_NAME required by WSGI! WSGIServer: missing…
xjq233p_1
  • 243
  • 2
  • 6