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

learn more… | top users | synonyms

1
vote
0answers
15 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
13 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
19 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
0answers
27 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
20 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
30 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
105 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
37 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
44 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
25 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
29 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
53 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
63 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
29 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
55 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
118 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
122 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
66 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
145 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
53 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
38 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
198 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
135 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
45 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 ...
1
vote
0answers
59 views

Video Streaming Fails on IIS 8

I am using FastCGI with IIS 8 on windows-server 2012. The server is hosting a Django based website. The website works fine until I stream the videos (which are saved in the media folder on the server ...
0
votes
2answers
76 views

php servers without apache/nginx/cgi stack

In many languages, you build web frameworks from the ground up (i.e. from unix sockets) and layer on abstractions. If I want to build a web framework from scratch in OCaml or C, I first build a socket ...
0
votes
2answers
1k views

Nginx / PHP-FPM = Blank pages

Dear ServerFault Community, I managed to get my site into a fully functional state two days ago.. Around 3 hours ago today, I've restarted my linux box and have found my site to no longer work. I have ...
1
vote
1answer
142 views

Random HTML and cookie value gets appended to apache proxy_fcgi error message

I am using Apache with PHP-FPM on my web server. When user enters some random pathname that Apache passes to proxy-fcgi and the file could not be found, there will be a standard error recorded in the ...
0
votes
0answers
128 views

Apache + PHP (fast-cgi) + Wincache on Windows Server crashing

We have one PHP application that runs on Windows Server 2008 Apache 2.2.23 PHP-5.4.27 (FastCGI) Wincache 1.3.4.0 and crashes from time to time and I'm not able to figure out what's going on. ...
1
vote
2answers
318 views

“No input file specified” when running php under fastcgi inside chroot under nginx outside of chroot

I have a scenario with nginx/1.4.6 running on Ubuntu 14.04 but with php/5.2.10 inside a chroot Ubuntu 9.10 (Karmic Koala). My issue is that all requests to php files result in the dreaded "No input ...
0
votes
0answers
184 views

can't apply process slot for /usr/lib/cgi-bin/php5

seen some other answers around the web related to my issue. Tried the answer from High CPU mod_fcgid: can't apply process slot too, did not work. Here are the files I believe toe be relevant for ...
0
votes
0answers
154 views

Creating /ping and /status pages on servers running PHP fastcgi (Not PHP FPM)

I have created /ping pages in the past for use with EC2 and ELB health checks with PHP FPM but not with Fastcgi. I have an autoscale setup which uses a semi pre-built Turnkey Linux PHP fcgi and nginx ...
1
vote
0answers
195 views

File permission problems with Apache, FastCGI, and Prestashop

I am running a Prestashop installation on CentOS 6.5 and Apache 2.2.15. A while back I updated Apache and lost the ability to upload product images via Prestashop backoffice along with other problems, ...
0
votes
1answer
81 views

Cookieless folders with NGINX

I want to force all pages on my WordPress setup to not set any cookies, except for the file and folder: wp-login.php and /wp-admin # disable cookies globally fastcgi_hide_header Set-Cookie; if ...
4
votes
1answer
56 views

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

Varnish with PHP FastCGI / Change FastCGI server port

I want to run Magento with Varnish Cache. So far my PHP runs as FastCGI. I am now trying to set up Varnish. And have a probably pretty stupid question. So as I understand Varnish will listen on port ...
0
votes
0answers
721 views

Seafile Server on Debian with sqlite + apache - fastcgi: connection timeout, incompelte headers

Introduction: I am trying to set up an Seafile server on my Local Network(later reachable by portforwarding through router). I followed the official manual but couldn't get it to work with Apache. It ...
0
votes
1answer
73 views

IIS fastcgi race condition or locking with .py files (file watching?)

I am trying to deploy the python web framework web2py on iis8 on Windows server 2012. I am using fastcgi, downloaded from microsoft, v 2.1 and python 2.7 web2py sometimes creates .py files under the ...
2
votes
2answers
76 views

How to identify fastcgi processes

We are running multiple php sites on iis using FastCgi Some site is now spawning many instances of FastCgi that is running at high cpu usage. Unfortunately all the sites are running from Network ...
1
vote
0answers
184 views

Page displays “File not found” when I enable php-fpm chroot on debian wheezy apache2.2

I set up a chroot jail for a user "bob". bob is located in /var/jails/bob Bob has a site which is located in /var/jails/bob/bobssite.com/public_html Everything seems to work so far, including the ...
0
votes
0answers
87 views

How do I trace the source of FastCGI timeout isseus on PHP and IIS 7.5?

I have a problem which I am hoping you experts can really help me find the root cause of. I am getting random page time outs (which manifest as a 500 error) that I cannot find the root cause of. PHP ...
0
votes
1answer
174 views

File cannot be downloaded completely via PHP from my nginx

I have a file on my tiny server (BeagleBoneBlack) which I want to download to another machine. Therefore I try to do it via PHP from my nginx-web-server. The file size is about 1.2 GB and the download ...
0
votes
2answers
110 views

Why does google-site-verification go into fastcgi-pass ?

See the below nginx configuration file. Virtual name based hosting (example.com), passing requests for example.com and www.example com to the mono fastcgi-process on port 9000 (127.0.0.1:9000) I've ...
0
votes
0answers
53 views

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 ...
-4
votes
1answer
3k views

CentOS 7 apache2 httpd + mod_fastcgi installation impossible

Has anyone tried to install mod_fastcgi on CentOS7/httpd yet? Since it's not in the epel or fusion repos, I tried the el6 rpm, which wasn't working (httpd said: Cannot load modules/mod_fastcgi.so ...
0
votes
1answer
202 views

Enabling fast cgi on php 5.3.29

How to enable FastCGI while php 5.3.29 configure? I tried to .configure PHP 5.3.29 installation with --enable-fastcgi but looks like this option is unknown.
0
votes
1answer
72 views

PHP files loading very slowly, even if they have no PHP code

Windows Server 2008 R2 Standard IIS 7.5 PHP 5.3.28 FastCGI I have a WordPress blog in a subfolder of an ASP.NET site that has started running very slowly. After experimentation, I've found that all ...
7
votes
1answer
3k views

Is the PHP option 'cgi.fix_pathinfo' really dangerous with Nginx + PHP-FPM?

There has been a lot of talking about a security issue relative to the cgi.fix_pathinfo PHP option used with Nginx (usually PHP-FPM, fast CGI). As a result, the default nginx configuration file used ...
0
votes
1answer
1k views

Apache fast-cgi and php-fpm on Ubuntu 14.04 - Run PHP File as the owner

I am trying to setup FastCGI and PHP-FPM so that a php file can be executed as the owner of the file. I am trying to replace SuPHP with FastCGI and fpm. Earlier, I had folders with different owners ...
2
votes
1answer
203 views

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 ...