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
1
vote
1 answer

HHVM w/ FastCGI vs. Uploading via WordPress

I successfully installed nginx, HHVM (running with FastCGI) etc. on an Ubuntu 15.10 installation, and HHVM is, in itself, running fine. My /var/www directory is owned by my user and group (e.g. sam:sam), so I can access it via SSH and SFTP and…
physalis
  • 145
  • 1
  • 7
1
vote
0 answers

nginx prevent loss of POST parameters when rewriting uri

I would like to do some url rewriting on nginx with php-fpm. Namely, routing all requests to php scripts to a single script like: /index.php?fulluri=(originaluri) Many ways to approach the problem: Nginx - Route all requests to single…
user2464424
  • 121
  • 1
1
vote
2 answers

nginx fastcgi caching - multiple different expire times

I need to set up NGINX so that different locations would have different expire times for caching and some would have caching disabled. This is my current setup: fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=CACHE:200m…
Darksworm
  • 21
  • 1
  • 5
1
vote
1 answer

Which PHP setup should I use for a shared hosting environment (fpm, fcgi, proxy, module)?

I'm currently working on a web hosting management panel for running PHP websites (like Plesk or cPanel). I was researching the best possible ways of running PHP with Apache. mod_php is out of the question as an environment like this needs seperate…
1
vote
3 answers

nginx php-fpm how to disable log warnings?

I've a setup with nginx + php-fpm. I found in my nginx error log a lot of PHP Warning messages like this: 2016/03/17 20:57:23 [error] 23002#0: *114868 FastCGI sent in stderr: "PHP message: PHP Warning: Declaration of…
Fabio
  • 55
  • 1
  • 7
1
vote
0 answers

mod_fcgid: error reading data from FastCGI server

This is my first post here although I often do search and find answers here. This time I've spent a couple of days searching various sites but unfortunately none of the answers in other threads helped in my case. I manage a few LAMP servers each…
John Mc Murray
  • 143
  • 1
  • 8
1
vote
0 answers

Nginx setting fastcgi_cache_valid

I have been trying to set 2 different cache times. I need a microcache for single request. And all other requests should be cached for longer time. All requests must go to location block, so that requests are being passed to PHP. Error I receive…
Firze
  • 355
  • 6
  • 16
1
vote
1 answer

FastCGI sent in stderr: "Primary script unknown" + Owncloud

I experience a weird error with my nginx/php5-fpm configuration. I already posted this question on the owncloud forums and asked the nginx forum, but they have no idea. As i searched serverfault, the suggestions about this topic did not directly…
user338846
  • 11
  • 2
1
vote
1 answer

Nginx: Conditional request gunzip when `Content-Encoding: gzip` is set

How would it be possible in nginx to evaluate if the Content-Encoding: gzip request header is set (coming from a web client to nginx), and then let nginx gunzip the request before it gets forwarded to an upstream (e.g. fastcgi)?
derFunk
  • 119
  • 6
1
vote
0 answers

Disable nginx fastcgi_cache when disk is full

When there is no disk space, nginx is still able to work correctly. It can serve static files, and it can pass the request to a fastcgi server (such as PHP), and it can serve the dynamic response to the client. The problem happens if fastcgi_cache…
Pavel S.
  • 299
  • 1
  • 2
  • 5
1
vote
1 answer

Why does a new application pool identity have write access?

I am running IIS 8.5 with PHP (various versions) via FastCGI. Impersonation is on in the PHP config for FastCGI. The app pool is set to use the App Pool Identity. In fact, if I actually specifically deny access to write to a file, it behaves…
AJ Henderson
  • 369
  • 3
  • 15
1
vote
1 answer

Nginx serving C++ cgi script: response is binary format

I am trying to run C++ CGI script on nginx. I am using FCGIWrap with script from nginx website. The program code is like this: #include using namespace std; int main () { cout << "Content-type:text/html\n\n"; cout << "\n"; …
Junchao Gu
  • 111
  • 2
1
vote
3 answers

Nginx FastCGI not caching static files?

I configure fastCGI to cache with NginX. It work with .php file, but i can't cache static file like .jpg, .mp4... My infomation when check with cURL: curl -I http://192.168.1.223/music.php HTTP/1.1 200 OK Server: nginx Date: Mon, 07 Dec 2015…
dvthanh
  • 11
  • 3
1
vote
0 answers

Php-fpm corrupts my socket permission on startup

I've installed Apache2.2 with FastCgi module, and PHP-fpm on a Centos server. I configure FastCgi with an external server using the socket option: FastCgiExternalServer /var/www/cgi-bin/test/php.fcgi -socket /var/run/php5-fpm.sock -pass-header…
Fractaliste
  • 151
  • 1
  • 6
1
vote
0 answers

mod_fcgid: ap_pass_brigade failed in handle_request_ipc function

I have been struggling for weeks with this error: (32)Broken pipe: mod_fcgid: ap_pass_brigade failed in handle_request_ipc function followed sometimes with this error: (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in…
Fadi Asbih
  • 141
  • 1
  • 6