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

What the 405 error may mean in nginx error log when migrating from Apache to nginx?

I am trying to migrate Topincs installation from Apache to nginx running on Debian Wheezy and using php-fmp. The only error I'm getting is HTTP/1.1 405 Method Not Allowed Would be grateful for any hint how to tackle this problem. Here is my site…
helcim
  • 273
  • 2
  • 6
  • 13
0
votes
1 answer

Nginx not parsing php when using try_files

I am basically trying to implement the Apache MultiViews behaviour so that my URLs do not require the .php extension. As far as I can see from other questions answered here on Server Fault, I should have this problem sorted, but something is clearly…
nightowl
  • 45
  • 8
0
votes
1 answer

How to use abstract names of unix domain sockets with fastcgi in nginx?

I tried some perl examples of unix domain sockets using abstract names: Created a socket starting with a null character: my $socket_path = "\0wibble"; using netstat -nlp I can see the socket: unix 2 [ ACC ] STREAM LISTENING 309510…
Weber K.
  • 131
  • 8
0
votes
1 answer

Deploying a FastCGI application

I'm trying to deploy my Wt application with Apache and FastCGI. Here's my config file: NameVirtualHost *:9091 DocumentRoot /var/www/wt_test/docroot/ AddHandler fcgid-script wt …
hank
  • 111
  • 3
0
votes
1 answer

PHP on Apache + FastCGI with multiple file extensions

Following the php documentation, I've set up PHP to work with Apache2+FastCGI with the following configuration (in httpd.conf): LoadModule fcgid_module modules/mod_fcgid.so FcgidInitialEnv PHPRC "c:/php" AddHandler fcgid-script .php…
user98149
0
votes
2 answers

FCGI and upload_tmp_dir PHP directive are not working correctly

I run PHP as FCGI! I'm setting upload_tmp_dir option as value /home/domain.com/tmp. When executed phpinfo() for double-check it's confirmed that the settings above are correct. Nevertheless, when actual upload in happening, the uploading file is…
Ilia Ross
  • 1,086
  • 1
  • 10
  • 20
0
votes
1 answer

php-cgi.exe is opening up an enormous amount of instances

I am hosting php 5.2 on IIS 8. Yes, I know that's a horrible idea, but that is reality. The server runs out of resources after our website is up for a few hours because for some reason php-cgi.exe opens up dozens of times: What am I doing wrong?…
Alex Gordon
  • 455
  • 3
  • 14
  • 31
0
votes
1 answer

nginx, php-fpm on diff server bad gateway (and security too)

This is somewhat of a multipart question. First and foremost, I have 502 bad gateway, but I'm sure that's just because one of these lines I have below is wrong. Second, I would love to know how I did 'security wise'. I understand that many guides…
Tallboy
  • 179
  • 3
  • 15
0
votes
1 answer

NGINX/PHP-FPM cpu spikes and runaway processes

Recently I switched to NGINX/PHP-FPM to run my forums. The majority of the time, the site runs beautifully, seriously quick and I'm really happy with it. Its on a 13 core/30+GB memory instance with AWS, so ample resources (was on 8 core, 16GB before…
Christian
  • 789
  • 1
  • 13
  • 31
0
votes
2 answers

Why is NGINX running slow with php_fpm fastcgi_cache enabled using wordpress?

I am having a little trouble. I followed the tutorials step by step at rtcamp.com for wordpress multisite, only changing the ‘example.com’ to my domain name. I have the nginx helper plugin installed and it looks like the whole site and everything…
0
votes
1 answer

File not found "location issue"?

I'm stuck with a File Not Found issue with Nginx and FastCGI for PHP. Could someone have a look at my conf file? server { listen 80; ## listen for ipv4 listen [::]:80 default ipv6only=on; ## listen for ipv6 server_name …
Rich
  • 1
  • 1
0
votes
1 answer

Apache prefork vs. workder - what is wrong with my settings?

I have installed PHP as an Apache module. I have had prefork running all this while. I've read that worker would consume less memory while offer higher performance]1. So, I've edited /etc/sysconfig/httpd and…
ericn
  • 553
  • 2
  • 8
  • 20
0
votes
1 answer

Compiling / installing up-to-date nginx with fastcgi_cache on Ubuntu 12.04?

What is the recommended path to compile or install nginx with fastcgi_cache on Ubuntu 12.04 LTS precise that works with up-to-date nginx-common (read >= ver 1.2.7) packages? Or is there a method to efficiently compile nginx completely from scratch…
ylluminate
  • 1,155
  • 2
  • 17
  • 35
0
votes
1 answer

500 errors when uploading large files with fastcgi

I am using the following setup: CentOS 5.9 Apache with Nginx proxy for static resources PHP 5.4 fastcgi When uploading smaller files, everything works fine. If however I try to upload larger files (I haven't yet determined the cut off point) I…
user6595
  • 119
  • 2
  • 9
0
votes
1 answer

how to uncompress memcached content via nginx?

I'm using memcached to store html content ready for nginx to display but I'm getting the compressed output in the browser. It works if I turn off compression in PHP but doubles the response time which is the key part here so ideally I'd like to keep…
glambert
  • 1
  • 1