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

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 times out before my script finished…
Jonathan Thurft
  • 129
  • 1
  • 6
0
votes
0 answers

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 running, that's impossible.
Jeroen
  • 111
  • 5
0
votes
1 answer

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 problem getting the Joomla and phpmyadmin running…
bobo
  • 599
  • 2
  • 8
  • 24
0
votes
1 answer

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 80; server_name mysite.com; root …
Wells Oliver
  • 221
  • 6
  • 11
0
votes
1 answer

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) DAV/2 mod_fastcgi/2.4.6 Server at test.dev Port…
Richard
  • 97
  • 7
0
votes
1 answer

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 PHP but IIS just gives me an 404.3 error. I have…
cheese5505
  • 301
  • 1
  • 10
0
votes
1 answer

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: This is my configuration: (listening 80) nginx…
Raphael
  • 69
  • 2
  • 11
0
votes
1 answer

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 Nginx config in /etc/nginx/nginx.conf: # Nginx web…
Tomas Morgan
  • 111
  • 1
  • 4
  • 12
0
votes
2 answers

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 tutorial on this, they all use 127.0.0.1:9000
CakeSneer
  • 109
  • 1
  • 1
0
votes
3 answers

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 /home/ttrss/www/, served by a PHP5 FPM process running under user…
F.X.
  • 241
  • 2
  • 8
0
votes
1 answer

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 verify that the current setting of session.save_path…
john h.
  • 135
  • 1
  • 5
0
votes
1 answer

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 fcgid-script .phpd EDIT: With PHP as FastCGI does…
Jason
  • 3,931
  • 19
  • 66
  • 107
0
votes
2 answers

Running multiple versions of PHP under Apache, but requiring modules from .deb file

I have a setup where I've unfortunately hit a version limit between a library package required for an application, and my version of PHP. I'm now running PHP 5.4, but the module is only compatible with 5.3, leaving me in a bind. I'm aware that I can…
Clorith
  • 181
  • 1
  • 8
0
votes
2 answers

PHP extension is not loading when running fcgid

I need to use the libpuzzle extension for PHP, and so far I failed to make it run with fcgid. I have installed it (manually, unfortunately, because of the dependency issues) and added the extension=libpuzzle.so to my /etc/php.ini. Sadly, extension…
Septagram
  • 937
  • 1
  • 8
  • 13
0
votes
2 answers

flask, lighttpd with fastcgi can't get it to work

i'm tring to deploy a simple flask script to a lighttpd server with fastcgi. this is the configuration file for lighttpd builded using the flask documentation http://flask.pocoo.org/docs/deploying/fastcgi/#configuring-lighttpd server.modules = ( …
kurojishi
  • 113
  • 1
  • 3