Questions tagged [fastcgi]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
530 views

User Uploaded Images– Blank Post – Connection reset by peer / FastCGI: incomplete headers

To give a little background, I have a website that permits users to upload images. WordPress is used as a content management system and the posts are immediately published with the image inserted as ...
panoramic's user avatar
2 votes
1 answer
6k views

Apache FastCGI server connection failure

I have a virtual machine base box for Debian wheezy that I've been using with vagrant for the last few months without any issues, however yesterday when I brought up a new machine and updated/upgraded ...
bruchowski's user avatar
1 vote
1 answer
2k views

Correct way to open ports for fastcgi using iptables

I'm running a server with nginx and fastcgi. I'm using TCP sockets for fastcgi rather than Unix sockets as I've read that this scales better. The fastcgi server is running on fastcgi://127.0.0.1:9000. ...
xtpu's user avatar
  • 11
0 votes
1 answer
102 views

What tools available for Ubuntu are best suited for starting a FastCGI application, monitoring, and restarting if it stops? [closed]

Note: This is not in regards to PHP; Language is C++ I will be using spawn-fcgi to launch the FastCGI application. I've already found the supervise tool (http://manpages.ubuntu.com/manpages/precise/...
Coder's user avatar
  • 101
4 votes
1 answer
3k views

Enable FastCGI on Apache with Puppetlabs/Apache

I'm using Puppetlabs/Apache to configure Apache. In the main puppet file, I call and configure it: class { '::apache': } class { '::apache::mod::fastcgi': } apache::vhost { "${::fqdn} non-ssl": ...
kaiser's user avatar
  • 1,241
2 votes
2 answers
5k views

Php file are not parsed by fastcgi in nginx

I m new to nginx my server block is server { listen 25552; server_name *.example.com; root /usr/share/myPackage; rewrite ^/$ /index.php permanent; location ~ ((\.php$)|(^/(...
level_0's user avatar
  • 31
1 vote
1 answer
1k views

Joomla Extension Uninstall Causes 502 Bad Gateway

We have a VPS with some PHP websites hosted on our Ubuntu 12.04 LTS servers using NGINX. In a Joomla 3 site, when uninstalling an extension that errors out, the page shows an NGINX error page with a ...
RNickMcCandless's user avatar
0 votes
0 answers
205 views

nginx Returning 404 After Server Move (AWS)

Moved my site to a larger instance size at AWS which allocated me a new private IP and Public DNS value. The Public, elastic IP is the same. The site loads fine from Apached, but when enabling nginx ...
user1030135's user avatar
0 votes
0 answers
141 views

Altering Cache value based on php response of an image or html in Nginx

I'have a set up where a PHP script dynamically creates images based on size and the device requesting them. Everything is working fine apart setting a higher cache expiry for images when they are ...
Matt Gaunt's user avatar
1 vote
0 answers
107 views

Lighttpd fastcgi remote instance operation

This article suggests that it is relatively easy to scale an application by getting lighttpd to spawn php-fastcgi instances on multiple machines. What I do not understand is this - how does a PHP ...
DroidOS's user avatar
  • 173
1 vote
2 answers
5k views

nginx fastcgi rewrite: primary script unknown

I have following nginx configuration: location / { try_files $uri $uri/ index.html =404; if (!-e $request_filename) { rewrite ^/(.+)$ index.php?url=$1 last; } } ...
Tombart's user avatar
  • 2,193
0 votes
2 answers
973 views

Setting up Apache VirtualHost for multiple sites

I'm trying to set up a website on my machine, and am having some trouble. I've prototyped the website using Flask and the debug server, and now would like to host it for a bit while I further debug it....
polkid's user avatar
  • 103
0 votes
1 answer
347 views

nginx: storing a fastcgi php output as file

I'm trying to save the output of a fastcgi, but I seem to be getting a blank output. If a user requests a file like /thumbnail/someuniquefilename.jpg and the file exists, it should just serve it. If ...
Grumpy's user avatar
  • 3,009
2 votes
2 answers
7k views

Go(lang) with nginx - Serving Static Files

Currently I have the following HTTP server written in Go: func main() { http.HandleFunc("/", func(response http.ResponseWriter, request *http.Request) { http.ServeFile(response, request, "...
Alix Axel's user avatar
  • 2,813
1 vote
0 answers
622 views

Running two different PHP fast-cgi instances on windows with OPCache enabled

I'm trying to run two different php 5.5 instances on Windows (one with XDebug, one without, same php executable, different php.ini files) over fast-cgi in Apache 2.4, ideally both with opcache enabled....
Patrick Huy's user avatar
0 votes
1 answer
289 views

FastCGI protocol over the network

For a reason that is beyond my control, there is a web server (fairly standard Debian/Apache deployment) sitting on our NAT'd network which takes all traffic to ports 80 and 443. I can't change that. ...
Libbux's user avatar
  • 295
0 votes
2 answers
6k views

Setting up HHVM for apache2.2 with mod fastcgi in a virtual host

I want to setup a virtualhost running HHVM to try out the new "Facebook Hack" language. I followed the instructions here on Apache 2.2: https://github.com/facebook/hhvm/wiki/FastCGI currently hhvm is ...
timing's user avatar
  • 111
0 votes
1 answer
733 views

Redirect with lighttpd and fastcgi on Django App

I have setup my lighttpd in a fashion which redirects all subdomains to my primary domain in following fashion * .domain.com -> domain.com. Unfortunately when i type in a subdomain such as www.domain....
JavaCake's user avatar
  • 111
0 votes
0 answers
283 views

APC Cache files expire Issue with FastCgi

we have properly installed APC cache on our WHM based server, we have set to expire each file in few hours, but all cached file lost in few seconds. Our APC Settings: apc.cache_by_default 1 apc....
user1218948's user avatar
1 vote
0 answers
540 views

PHP-FPM errors only when running as a system service on Fedora 20. (File not found / Primary script not found)

I am trying to setup NGINX with PHP-FPM on a Fedora 20 box and I am getting the "File not found / Primary script unknown" errors only when starting php-fpm as a system service. I am using a default ...
Marcus's user avatar
  • 11
1 vote
1 answer
3k views

nginx wont cache images when they are read through php files

I have .php file which is loading images to hide their location. Every images are correctly caching through this directive: location ^~ \.(jpg|jpeg|png|gif|ico|css|js)$ { expires max; ...
Slupek's user avatar
  • 11
8 votes
2 answers
30k views

real solution for `No input file specified.` (nginx, fpm)

Most answers to this question are, set fastcgi_param SCRIPT_FILENAME and it will work (italic formatting is broken?!). I have set this variable (correct) but it still shows the error instead of a 404 ...
Daniel W.'s user avatar
  • 1,749
0 votes
1 answer
547 views

nginx php-fpm random/temperamental "No input file specified" error

I've got a page, I'm not using redirects, just going directly to /invite/index.php?code=f13dc6c9be in the browser and it serves up about 50% of the time. The rest of the time the browser displays "No ...
Pete's user avatar
  • 303
0 votes
3 answers
162 views

Most efficient way to serve less than 10 http requests per day using cgi

Our company manages over one hundred servers and we would like to "ask" these servers for basic usage info once or twice a day using http. The usage info can be easily found with a perl cgi script ...
Ricardo Marimon's user avatar
0 votes
1 answer
2k views

php/mod_fcgid script terminating after 30 seconds

I have the following issue : When running a long-running php script (file upload) it timeouts after exactly 30 seconds of activity. Bizzarely, it only occurs in certain cases - the one i know for sure ...
Sherif Buzz's user avatar
0 votes
1 answer
1k views

Using Puppet with complex Nginx VirtualHosts

I'm trying to use Puppet and a Nginx plugin to manage a virtual host config file. I have everything working, but now that I need to add some rewrite rules I'm running into issues. I know I can use ...
andrewvnice's user avatar
0 votes
2 answers
4k 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 ...
nachito's user avatar
  • 255
0 votes
2 answers
10k 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 ...
Giovanni's user avatar
1 vote
2 answers
3k 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 ...
MultiformeIngegno's user avatar
5 votes
1 answer
19k 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 is ...
Brad Rice's user avatar
  • 149
4 votes
2 answers
13k 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 /...
Sergiks's user avatar
  • 249
11 votes
2 answers
35k 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 ...
Martin's user avatar
  • 411
4 votes
2 answers
19k 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 ...
Moe's user avatar
  • 167
1 vote
0 answers
261 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 ...
thomasjonas's user avatar
0 votes
2 answers
562 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 ...
133794m3r's user avatar
  • 155
4 votes
3 answers
5k 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 ...
Mariano Martinez Peck's user avatar
0 votes
1 answer
168 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 /var/lib/vz/...
init0's user avatar
  • 39
1 vote
1 answer
1k 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 lighttpd+...
Tae's user avatar
  • 113
5 votes
3 answers
6k 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 ...
kd35a's user avatar
  • 151
0 votes
1 answer
851 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 ...
philipp's user avatar
  • 137
0 votes
1 answer
705 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 / { ...
petsagouris's user avatar
0 votes
1 answer
4k 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 ...
Jonathan Thurft's user avatar
0 votes
0 answers
310 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 ...
Jeroen's user avatar
  • 111
-1 votes
1 answer
703 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 62.21.61....
Spacedust's user avatar
  • 568
0 votes
1 answer
893 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 ...
bobo's user avatar
  • 619
0 votes
1 answer
3k 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 ...
Wells Oliver's user avatar
1 vote
1 answer
1k 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 ....
Jeroen's user avatar
  • 111
0 votes
1 answer
2k 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) ...
Richard's user avatar
  • 97
0 votes
1 answer
1k 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 ...
cheese5505's user avatar
1 vote
0 answers
3k 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 ...
julkiewicz's user avatar

1
5 6
7
8 9
15