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
322 views

Apache - Seg Fault or Similar Nasty Error Detected in the Parent Process

Every Sunday Morning (03.00 am) my apache get stuck (process goes dead trying to do a restart itself). Strange thing is this restart is not happened due to a cron job, but unknown process or apache ...
1
vote
2answers
241 views

Another PHP NGINX error: “No input file specified”

I looked through about 5 questions and blog posts already and tried everything they told me without luck. I can browse to www.example.com/phpinfo.php, but not www.example.com/index.php. I even went so ...
0
votes
1answer
350 views

fastcgi php and memory limit

I have a web server apache 2.2 with fastcgi and php 5.3, I have memory limit set to 256MB in php.ini and with php-cgi -i I got 256MB. So the configurations is correct, my process read it without ...
0
votes
0answers
15 views

Calling FastGCI from java standalone app

I am looking at some way to call FastGCI services from Java. Existing codebase in C/ProC has to be called from java to limit rewriting cost. I though adapting the codebase to the FastCGI loop could be ...
0
votes
2answers
270 views

nginx: fastcgi_cache_path empty

I wanted to try fastcgi_cache on my nginx 1.5.8 setup as shown here. In nginx conf, http section, I added: fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:10m max_size=1000m ...
0
votes
1answer
336 views

PHP fastCGI won't stop, trying to start PHP fpm

I installed php-fpm and tried to start it. Got the following error: ERROR: unable to bind listening socket for address '127.0.0.1:9000': Address already in use (98) So it would appear php-fastcgi ...
0
votes
0answers
49 views

qmailadmin and vqadmin on nginx

I am new to nginx, and everything works fine, except for qmailadmin and vqadmin. These are binary scripts and instead of running, they show garbage on the screen. Perl scripts are running fine. I ...
1
vote
2answers
2k views

How to set up nginx and fastcgi to run Laravel in a subfolder?

I'm setting up multiple Laravel apps under subfolders of a single domain (social network apps, need https, single certificate). Cannot figure out how to write nginx config to map HTTP requests to ...
0
votes
0answers
99 views

uri-specific fastcgi param in nginx

My end-goal is for different modules in our application to be segmented in New Relic differently. I basically want /admin to be recorded as "App-Admin" and /user to be recorded as "App-User", for ...
1
vote
1answer
3k views

nginx, alias, php-fpm = File not Found

I'm trying to set up nginx with DAViCal. However, I'm getting a "File not Found" with a "FastCGI sent in stderr: "Primary script unknown" in the log. Looks like something is wrong with my aliasing but ...
1
vote
2answers
1k views

PHP + Apache long wait time

I've run into a bit of a brick wall with troubleshooting my dedicated websever. Recently, my website spiked with the amount of request/per second and it crashed. The box original had 8GB of RAM, 8 ...
0
votes
0answers
56 views

Time to first byte on wordpress increased after url change

Goodmorning, i have this configuration nginx + php5 + mysql + memcache +fastCGI and i have this plug-in W3 Total Cache + Nginx Helper After change the url from subdirectory to root ...
1
vote
0answers
78 views

Setting up nginx, rewrite and fastcgi

This problem has been driving me nuts for the last couple of days... Working on an application that needs authentication and exists of different parts (CMS, API, frontend) we ran in to some problems ...
0
votes
2answers
67 views

Nginx not passing uri to php5-fpm, instead serving as text file

as stated above the uri isn't being passed to nginx. I've included the entire "try" block to show this. location / { # First attempt to serve request as file, then # as directory, then fall ...
2
votes
2answers
296 views

Nginx choose upstream depending on args

I need to two different sets of upstreams. But all my requests come from the same URL (same path). The difference is that some request will have a special argument and some won't. Depending on that, I ...
0
votes
0answers
560 views

How to configure Plesk 11 to use PHP-FPM with Apache only (without nginx)?

I'm quite new Plesk, running on my own private virtual server (CentOS x64). I was able to install nginx and php-fpm support using the add/remove components functionality. It was straightforward. ...
0
votes
1answer
53 views

OpenVZ sharing PHP5-FPM socket

I need a problem with sharing php5-fpm.sock between 2 vz containers I have 2 containers: 1. with NGINX 2. with PHP5 and PHP5-FPM Link containers over NFS I tried using: 1. mount --bind ...
1
vote
1answer
152 views

How to redirect URLs without break a FastCGI app?

(I consider this question a duplicate of Lighttpd redirect from www.domain.com to domain.com, but that one didn't get enough attention and it's too old). I'm trying to deploy an app over ...
0
votes
1answer
167 views

Different PHP-configs in Nginx

I have a web-server running multiple server (virtual hosts) using nginx and fastcgi passing to a unix-socket. What I want to accomplish is a set-up with beta.example.com and live.example.com, where ...
0
votes
0answers
329 views

FastCGI: server “…” stderr: Primary script unknown

I'm using Apache 2.2 + mod_fastcgi + PHP-FPM My fastcgi.conf (Apache): <IfModule mod_fastcgi.c> Action php-script /php5.fcgi virtual Alias /php5.fcgi /var/www/fcgi/php5.fcgi ...
0
votes
1answer
131 views

Apache FastCGI for PHP—increase resources

I would like to install a php based webapp on my server but during the install I get a »500 Internal Error«. On my search through the web I could figure out that this happens because the setup of my ...
0
votes
0answers
48 views

Django, fastcgi, loadbalancing extremely slow

I experience alot of problems with Django and I would be very grateful if you could help me: I run a lighttpd as a loadbalancer with the following settings: $HTTP["host"] =~ "myproject$" { ...
0
votes
1answer
81 views

Running WSAPI on ngninx via FastCGI

Using Lua 5.2 with wsapi 1.6-1 and wsapi-fcgi 1.6-1 installed via luarocks, I have the following nginx configuration: server { listen 127.0.0.1:8080; server_name localhost; location / { ...
0
votes
1answer
288 views

How to properly prevent 504 Gateway Time-out?

I've an script that can run for about 15 min as it is a large data migration tool. I have the problem that either if i set fastcgi_read_timeout 9900; it never times out or if i set it to less then it ...
0
votes
0answers
21 views

What do I set the 'socket' to in lighttpd/fcgi?

I want to configure lighttpd to run fastcgi but I'm not sure what I should set the 'socket' to. What is the socket? Surely it doesn't expect me to create a socket before the program is actually ...
-1
votes
1answer
197 views

Clean Wordpress installation shows Internal Server Error 500

I'm trying to install Wordpress installation on my dedicated server. Copied all files, but it shows Internal Server Error 500. Logs shows this: [Wed Nov 06 18:12:36 2013] [error] [client ...
0
votes
1answer
312 views

How can we configure the Bitnami Joomla stack to open a socket on startup?

I have deployed the Bitnami Ubuntu Joomla! 3.1.5-2 (64-bit) stack on Amazon Cloud: http://bitnami.com/stack/joomla/cloud/amazon By default, the stack is configured to run PHP using PHP-FPM. I have no ...
1
vote
2answers
391 views

Creating Multiple Users on Single PHP-FPM Pool

Have PHP-FPM/FastCGI up and running on my cPanel/WHM server but I'd like have it allow for multiple users off of a single pool. Getting all vhosts to run off a single pool is simple by adding this to ...
1
vote
0answers
99 views

Running PHP 5.2 FastCGI + Apache on CentOS 5 issue [closed]

I am trying to setup 2 versions of PHP on Centos 5.9 using this tutorial: http://linuxplayer.org/2011/05/intall-multiple-version-of-php-on-one-server. I have followed I have installed default 5.4.19, ...
0
votes
1answer
431 views

nginx & PHP: try_files inside alias block

I have nginx setup with an alias and am trying to do a rewrite rule with try_files. The problem is that it's preprending the document root and not finding the file. Configuration: server { listen ...
1
vote
0answers
75 views

Enable FastCGI on Litespeed

How would I enable my Litespeed server to process .fcgi files using a FastCGI module? I tried setting the handler to fcgid-script already but that doesn't work. Syntax: AddHandler fcgid-script ...
0
votes
1answer
453 views

setup apache and mod_fastcgi to work with php-fpm not working

I try to setup php-fpm with apache I am still missing a piece of the puzzle, because the page returns a 404 The requested URL /php-fpm/index.php was not found on this server. Apache/2.2.24 (Unix) ...
-1
votes
1answer
65 views

IIS can't find PHP files

I am running Windows Server 2012 with IIS. I have enabled CGI and installed PHP with IIS FastCGI and Multi-Byte strings. It is also the Non-Thread safe version. Though, I have made a PHP file to test ...
1
vote
0answers
207 views

Apache2 mod_proxy_fcgi closes a connection after each request

I set up mod_proxy_fcgi do go with apache and php-fpm. If I read the FCGI spec correctly, the typical flow for the communication between a server is to keep the connections between the web server and ...
1
vote
1answer
567 views

Major differences between mod_fastcgi and mod_proxy_fcgi

I noticed there are a couple of modules for Apache that provide FastCGI support. The two most popular seem to be mod_fastcgi and mod_proxy_fcgi. There seem to be other ones as well. My questions are: ...
0
votes
0answers
53 views

Nginx error with part of the path doubled

I'm trying to serve several thing on Nginx, including ttrss. When trying to access the site, I get the error: 2013/09/25 16:51:06 [error] 15010#0: *30 "/var/www/ttrss/ttrss/index.php" is not found ...
0
votes
1answer
190 views

php5-cgi gives 502 with varnish but is ok without

problem summary: php5-fastcgi works with nginx but doesn't work with nginx+varnish (502 Bad Gateway) does anyone have a suggestion of what I could change to get varnish working ? problem details: ...
0
votes
0answers
55 views

nginx + fastcgi No input file specified. when rewrite link

I am migrating from apache to nginx and am stuck at a rewrite issue. php pages are working fine, only when I access the seo friendly link I get No input file specified. For example ...
0
votes
1answer
463 views

NGINX and PHP-FPM is downloading index.php instead of processing it

php-fpm is running: # /etc/init.d/php5-fpm status php5-fpm is running php-fpm is listening: # netstat -an | grep :9000 tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN ...
0
votes
2answers
438 views

Apache 2.4 + PHP-FPM + mod_fastcgi (Problems setting up PHP-FPM)

I have been trying to get PHP-FPM to work with Apache 2.4, but mod_fastcgi does not work with 2.4. Is there any solution to this problem? I want to run it using an UNIX socket, but I cannot find any ...
0
votes
3answers
157 views

Nginx FastCGI on subdirectories

I'm trying to make Nginx proxy multiple web applications (among others, Tiny Tiny RSS and phpPgAdmin) onto different subdirectories under the same domain. For example, TT RSS is under ...
0
votes
0answers
122 views

Apache php-fpm + mod_fastcgi FD_SETSIZE error ubuntu 12.04

So i have an apache configured with mad_fastcgi ( i need FastCGIExternalServer ) I am running ubuntu 12.04 The problem is when i add mores vhosts i get this error from mod_fastcgi [Tue Sep 17 ...
2
votes
1answer
6k views

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

I know this isn't a unique question, but perhaps the manifesting situation is unique. Answers found elsewhere don't match what I believe are my circumstances. I have a box hosting a few sites and, ...
0
votes
0answers
22 views

Add a new Handler in vHost? How to get the right name?

if a simple question. I wan'to to edit a vHost file on an Apache-Server. I've listed all Modules with apachectl -t -D DUMP_MODULES There I've found the module : "fastcgi_module" -- In the vHost ...
0
votes
1answer
317 views

Odd permissions issue with php-fpm, session_start failed on some but works on others

Ok, I have php-fpm/apache/apc installed on ubuntu 12.04 with a website running a php shopping cart. I am getting flooded with perrmissions errors like "Failed to write session data (files). Please ...
1
vote
2answers
167 views

Unicode characters in nginx fastcgi links

I have a django project hosted over nginx with fastcgi. Django has some urls that user cyrillic characters. But when I try to open page with such link, django tells that it doesn't have such model, ...
2
votes
0answers
204 views

How to debug CGI over fcgiwrap/nginx

I serve executable scripts (mainly in C) through fcgiwrap connected with nginx. Since the scripts are complied, I can get the coding errors during compilation, but sometimes I receive CGI errors ...
6
votes
1answer
186 views

Htaccess application/type with PHP as FastCGI

Is there a way to use .htaccess with PHP as CGI/FastCGI? I would like to be able to have other extensions open as PHP. I have tried the following: AddType application/fcgid-script .phpd AddHandler ...
1
vote
1answer
224 views

Make mod_rewrite rules process before fcgi sees the request

Is there a way to have the mod_rewrite rules in my .htaccess file take effect before PHP behind fcgi sees the request? I have an email validation link that I want to redirect from root to the login ...
1
vote
1answer
31 views

Reinstall Apache with Apache Handler over FastCGI

We are currently running apache with fastcgi. Here is what it says on our phpinfo: Server API CGI/FastCGI We need to change that to be Apache. How do I do this?