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

learn more… | top users | synonyms

0
votes
0answers
14 views

nginx FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream

i use nginx first./etc/nginx/sites-enabled/default config : server { server_name 45.33.54.201 45.33.54.201; listen 82; # ipv6only=on; limit_conn one 20; ...
0
votes
0answers
8 views

Fast CGI Creating Error for PHPMyAdmin [on hold]

On my local Mac web development environment (apache24, php56 all running in Homebrew), I am receiving this error: [Mon Jun 29 12:08:00.032053 2015] [fastcgi:error] [pid 7670] [client 127.0.0.1:57079] ...
1
vote
2answers
41 views

Can't get apache working after installing nginx & hhvm

I had Apache2 running on my local ubuntu machine and I installed nginx & hhvm on my local for debugging purposes by following this tutorial. I would now like to switch back to Apache2 as I had it ...
0
votes
0answers
29 views

IIS 7.5 - PHP environment variables at the site-level

I have two versions of the same application (demo & staging) running on the same IIS server. The application relies on an environment variable via getenv("APP_ENV") to set configuration ...
0
votes
1answer
37 views

FastCGI: “comm with server aborted: read failed” only for one specific file

Related question: FastCGI and Apache 500 error intermittently The solution does not work for me. The problem: I have a Laravel 5.1 application (was in production on other servers ...
0
votes
0answers
25 views

No script name passed to php-fpm via nginx/FastCGI

I run a PHP 5.6 instance over php-fpm without a problem (unix sockets and nginx). Today I compiled PHP 7 and also started it as a second PHP instance. While requests get served fine with the PHP 5.6 ...
0
votes
0answers
10 views

Lighttpd + spawn-fcgi + perl = processes die randomly

We are running lighttpd with spawn-fcgi that spawns the following perl script: use strict; use CGI::Fast; use FCGI::ProcManager qw(pm_manage pm_pre_dispatch pm_post_dispatch); my $proc_manager = ...
0
votes
0answers
24 views

PHP5 FastCGI too slow Page loading

My Websites loading time is really terrible (too slow) so I started a Benchmark to check what is going on. The CPU is running 100% and Memory usage seems to be good. Read a lot of Documentations and ...
0
votes
0answers
26 views

PHP-FPM + Apache (403 forbidden message)

Im having trouble installing php-fpm. When ever I install it and open a php file i get a 403 forbiden status code Looking at the logs is see client denied by server configuration: ...
0
votes
1answer
48 views

php-fpm: locale settings change themselves

I experienced a bug with php-fpm : locale settings change themselves randomly. Here are the correct locale settings: Array ( [decimal_point] => . [thousands_sep] => ...
-1
votes
1answer
54 views

Wordpress Site Broken After Updating Theme [closed]

If I leave out needed details, please tell me. I'm running Nginx on Ubuntu 14.04 x64. I use php5-fpm. Currently I am battling with my PHP installation, and it's causing a couple problems now. See my ...
0
votes
1answer
110 views

nginx on fedora fastcgi not working

I'm running nginx on Fedora Server 22 and fastcgi scripts are not working. Under http://panel.minefight.org/ enter any login data, it doesn't load the password fail or success site. The same thing ...
0
votes
0answers
13 views

Can't seem to get fastcgi_cache_use_stale to work

So I have two browsers open and am requesting a page: http://localhost/test.php Once every 10 seconds the cache expires and when I refresh the page it takes 5 seconds to load the script, store in ...
0
votes
1answer
22 views

Staticfiles for Django cannot be located on IIS 8

I have a Django 1.7 website configured on IIS 8 platform. The staticfiles are kept in a folder generated after running collectstatic command. As mentioned in the tutorials I have made that folder a ...
0
votes
0answers
43 views

PHP Script execute time in ubuntu 14.04, FastCGI and suPHP

I have a big projekt, where run a cronjob every night. In this job run a php file. This file avarage run time was 30 to 60 minutes. I was try any solutions to solve the problem, but I can't solved ...
-2
votes
1answer
20 views

php-fastcgi.socket does not exist

I am following this tutorial, and have gotten thus far: I have installed the following packages using apt-get install nginx php5-cli php5-cgi spawn-fcgi psmisc. Despite installing PHP FastCGI, I do ...
0
votes
1answer
72 views

Temporarily website outages, fastcgi PHP communication abborted

I've noticed that my web server has occasional 1-5 minute outages every day. I've checked the Apache error log and found the following: [Sun May 10 14:13:19.299784 2015] [fastcgi:error] [pid ...
0
votes
0answers
40 views

Nginx passing Server $status through fastcgi

i'm passing through fastgci the server $status to handle the errors_page with a php file. like so. fastcgi_param REDIRECT_STATUS $status; this way works but is clearly not the "correct" way ...
0
votes
1answer
49 views

How to dynamically update page related data when FastCGI caching is enabled?

I am using php based blog on NGINX server with FastCGI cache. Without this cache, it is easy to update pageviews with every page load for a specific url. When FastCGI cache is in action, pageviews ...
1
vote
1answer
100 views

FastCGI cache is always a MISS

So, I've setup FastCGI cache like this: location ~ \.php(/.*)?$ { fastcgi_cache RWI; fastcgi_cache_valid 200 60m; set $nocache 0; if ($request_method = POST) { set ...
0
votes
0answers
208 views

nginx + fastcgiwrap = 502 Bad Gateway

I'm trying to execute a cgi script on my web server. I'm running Debian 7.8 (wheezy), with nginx 1.8.0 and fastcgiwrap 1.0.3-3 (both installed via aptitude). Here are my nginx settings (taken from ...
1
vote
2answers
66 views

Disable Gateway Timeout for Specific Nginx Port / Folder

How can I disable the nginx timeout when accessing through a specific port, or simply a specified folder. Whichever is easier. Basically I have some scripts which need to execute for a long period ...
0
votes
2answers
215 views

100% CPU usage on my CentOS VPS

I have a 512 MB VPS and hosting 2 WordPress websites on this CentOS server. I have installed apache + mysql + PHP + fast cgi on this server. Everything was working great from last 6 months. I have 500 ...
-1
votes
1answer
116 views

5 second delay for OnlyOffice (mono-fastcgi & nginx) on Linux

Setup Debian 8 (jessie) - fully up to date. Server is in local network, ping <=1ms, bandwith 10..40 Mbit (bing -s 124 -S 1024 localhost <server>) the server is also running some other ...
0
votes
1answer
46 views

Nginx FastCGI Caching possible on custom URL's?

I am trying to build a custom caching solution for my website with FastCGI caching. I'm trying to cache only certain URL's that get a boat load of traffic. I know from my logs exactly which URL's ...
0
votes
0answers
64 views

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. ...
1
vote
0answers
26 views

How do I configure nginx to have a server block pointing towards a django app?

Suppose I have an nginx server, with Django apps set up as "/djangoapps/exampleapp1/" and "/djangoapps/exampleapp2/". Suppose I just registered a domain "www.exampleapp2.com". How can I point ...
1
vote
0answers
39 views

FastCGI for DocumentRoot only

I'm trying to set up HHVM for one of my websites. It is running on Apache 2.4, Ubuntu 14.04. I apologize for not being the most advanced system administrator, I am more in the software engineering end ...
0
votes
0answers
47 views

Can't Get Virtual Subdirectory Locations Working in Nginx

I have my webapps each as toplevel directories under /var/www, and ideally need to stay that way.. only one hostname (_), no vhosts, so I want "/" to point to my /var/www/mainsite/, and then I want ...
0
votes
1answer
134 views

NGINX, how to strip location prefix in $fastcgi_script_name

I've already read that : how to remove location block from $uri in nginx configuration? but is there a way to strip the location blocks's prefix from the $fastcgi_script_name without using regex ? ...
0
votes
0answers
42 views

uwsgi error when serving git repo over http

I am trying to serve my git repo over HTTP on CentOS using uwsgi and nginx. However, when I try and clone the repo, my uswgi log says:- unavailable modifier requested: 9 I think that this means ...
0
votes
0answers
62 views

how to set per site php mode (mod_php5, cgi, fastcgi) in apache

i have 3 sites which are stored in /etc/httpd/conf.d/ site1.conf site2.conf site3.conf here's one <VirtualHost *:80> ServerName site1.ru ServerAlias www.site1.ru DocumentRoot ...
3
votes
1answer
423 views

munin + nginx: no dynazoom into graphs

I cannot get the Munin dynamic zoom to work. I am rather certain that the problem has something to do with the Nginx configuration. Any attempt to generate a zoomed graph triggers the following error ...
0
votes
1answer
51 views

Does php-frm make PHP run faster?

As I understand it, php-fpm makes PHP pages respond faster by managing a farm of pre-loaded PHP interpreter processes so the end user doesn't experience the overhead of initialising the PHP subsystem, ...
0
votes
1answer
102 views

Using fastcgi_split_path_info for a userdir in nginx

I'm trying to execute a PHP file on my server at the url /~nik/t.php (actual file is at /home/nik/public_html/t.php). Here's what my PHP settings look like: location ~ ^/~(.+?)(/.*)\.php$ { alias ...
0
votes
0answers
44 views

PHP/Fast-CGI only working on default page

I have configured php and fast cgi on my iis 8. It is working properly on my default page but on all other *.php sites I get Error 500: internal server error. What is wrong with my configuration? ...
0
votes
0answers
43 views

Doku wiki cannot connect to fast cgi behind ngnix

I'm trying to configure dokuwiki with ngnix. I'm using the https setup: server { server_name wiki.example.co; root /var/www/dokuwiki; index doku.php; listen 443 ssl; keepalive_requests 10; ...
1
vote
2answers
130 views

lighttpd + PHP-fcgi slow response

We have a problem regarding lighttpd as the webserver with php5 as backend via fast-cgi. Sometimes the server's response is taking more than 5 seconds (up to 20 seconds) when requesting a simple file ...
0
votes
1answer
154 views

PHP eat a lot of memory on IIS

I just transferred one site from Linux to windows and i`m getting strange fatal error messages. My Linux PHP had 256MB memory limit and never had single "out of memory" fatal error. Now on IIS i have ...
0
votes
1answer
73 views

How to add fastcgi support to nginx?

I'm trying to setup roundcube in my server with nginx on CentOS. this tutorial says: Add the following to the bottom of /etc/nginx/fastcgi_params: # Roundcube config fastcgi_keep_conn on; ...
0
votes
1answer
101 views

Add a PHP Handler to a website or even a folder only via AppCmd

I am trying to automatically deploy an IIS webserver (currently 8.5, will need to work it out all the way down to 7.5 as well), using AppCmd.exe I am using PHP's FastCGI to handle requests. I have ...
0
votes
1answer
287 views

CSS & JS & images = 404 for WordPress blog in Rails + Nginx environment

I'm pulling out my hair on this one. You can see yourself here - http://starterpad.com/blog/ - that all the images, CSS, and JS files are 404 errors. The main StarterPad site (http://starterpad.com) ...
0
votes
0answers
148 views

And another FastCGI sent in stderr: “Primary script unknown” while reading response header from upstream,

having some issues with 'file not found' or FastCGI sent in stderr. From what I have searched and researched about the issue it's due to the fastcgi_param SCRIPT_FILENAME not being able to locate the ...
1
vote
1answer
178 views

Nginx rewrite module not working

I've read a lot of topics about it, but couldn't solve my problem. After moving from APache to Nginx I can't set rewrites to handle my forums friendly urls. My forums is in /forum/ location of the ...
-1
votes
1answer
326 views

php-fpm using 100% CPU and nginx gives 404

I am playing around with Magento CE on Nginx and its working fine. Problem starts when I do a 500 user load test. The php-fpm process hogs up all the CPUs to 100% and I start getting 404 as the ...
2
votes
2answers
86 views

apache worker + php fastcgi, long script [closed]

My problem is that long php scripts (several hours) are exiting early. (FireFox says "connection to the server was reset while the page was loading"). They exit sometimes after 30 minutes, sometimes ...
0
votes
1answer
70 views

Nginx Load Balancer having two load balanced nginx+php-fpm (Primary script unknown) error

We have two web servers with nginx+php-fpm ( 10.0.0.10 and 10.0.0.20 ), which is load balanced behind another nginx server ( just nginx ), when we try to browse we get file not found error, with error ...
0
votes
0answers
445 views

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

PHP-FPM Can't create enough children and stops serving requests

I'm new to PHP-FPM and I've noticed at random intervals it will seemingly just lock up. [26-Dec-2014 22:50:16] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or ...
-2
votes
1answer
55 views

nginx subdomain with fastcgi [closed]

I want to use seafile with nginx. For testing I install it into a VM and accessing it via IP-Address. I take this description seafile with https to make it running. it works, when in the nginx.conf ...