Questions tagged [fastcgi]

35 questions
21
votes
2 answers

What's the difference between "mod_fastcgi" and "mod_fcgid"?

I'm writing a fast CGI application to use with my Apache 2.2 (prefork) on Ubuntu Linux. I need to choose between mod_fastcgi and mod_fcgid, but I can't find any resource that documents the difference (if any) to help me decide which one to enable…
skyeagle
  • 227
5
votes
0 answers

Apache2 MPM event: More threads vs more processes?

We're running an Apache2 web server with MPM event and PHP-FPM. To serve high traffic with minimal server resources I did some research about how to configure MPM best. Let's say we want to serve a maximum of 512 concurrent connections. So we gonna…
MichaIng
  • 595
3
votes
2 answers

Nginx & UserDir & PHP

I have a fairly simple nginx/1.4.7 installation (from Debian/unstable) and I'm trying to get PHP scripts to run inside a UserDir. server { listen 8083; server_name sid0.local; …
ckujau
  • 667
3
votes
1 answer

Hack/HHVM with Apache 2.4 results in HTTP 503 and unlimited loading

I've tried to set up an Apache 2.4 on Debian Wheezy to make calls to Hack/HHVM using mod_proxy / mod_proxy_fcgi according to this article. The installation of HHVM was through the APT package manager. When I run a single .hack-file using hhvm…
The Wavelength
  • 578
  • 2
  • 9
  • 24
3
votes
1 answer

In which protocol web server talks to CGI?

I'm wondering what protocol is used for communication between web server, e.g. Apache, Nginx and CGI, e.g. FCGI, UWSGI?
2
votes
1 answer

Setting up Lighttpd and FastCGI for my own web app?

I'm running Gentoo Linux, and I'm trying to get Lighttpd+PHP+FastCGI working. I discovered that Lighttpd doesn't have a FastCGI process manager. So, you're supposed to use spawn-fcgi. I have Lighttpd and PHP working. My problem is that I do not know…
Nick
  • 688
2
votes
1 answer

How can I enable streaming (flush/ob_flush) in CentOS 8 stream with PHP-FPM?

I have a new install of CentOS 8 Stream with Apache and PHP-FPM setup using all defaults (this defaults to PHP 7.2.24 FPM/FastCGI). My application uses Server Sent events using JavaScripts EventSource object. To have that working I need the…
Bart Friederichs
  • 1,876
  • 6
  • 25
  • 43
2
votes
1 answer

Configure Lighttpd to run python script using fastcgi

I have a lighttpd server that I want to run a python application using fastcgi. I followed the example on the lighty homepage, but I can't seem to get lighty to execute the python script. This is my fastcgi section in lighttpd.conf: fastcgi.server =…
Gasp0de
  • 257
2
votes
0 answers

spawn-fcgi -F other child processes not being used

I am running a Fastcgi app written in c++ with Nginx and it is working pretty well. The app starts via spawn-fcgi with 4 child processes using the following command: spawn-fcgi -f ./fcgiapp -p 9000 -F 4 HOWEVER.... I noticed that only one process…
TTKDroid
  • 141
2
votes
2 answers

Install libapache2-mod-fastcgi to Debian 8 Jessie

For supporting FastCGI feature into Apache web-server need to install libapache2-mod-fastcgi system package. The package is unavailable in default sources. How to install this package into Debian 8 Jessie?
karavanjo
  • 123
1
vote
1 answer

404 not found error for JavaScript files when accessing web page on localhost

The page loads up fine, but console shows a 404 not found error for JavaScript files. I have verified that the code contains the correct JavaScript file name. Any ideas? The JavaScript file is loaded like this of course by HTML:
1
vote
1 answer

nginx + cgi (c++ programs)

I am stuck setting my nginx to work with custom cgi programs (using xmlrpc-c library). I am trying with fcgiwrap/spawn-fcgi like this: $ spawn-fcgi -f /usr/bin/fcgiwrap -s /tmp/fcgi.sock Important section of nginx.conf file would be location…
kometonja
  • 141
1
vote
2 answers

fcgiwrap listening to a unix socket file: how to change file permissions

I have a web server (nginx) and a CGI application (gitweb) that is ran with fcgiwrap to enable Fast CGI access to it. I want the Fast CGI protocol to take place over a unix socket file. To start the fcgiwrap daemon, I run: setuidgid git fcgiwrap -s…
user36520
  • 3,171
  • 3
  • 24
  • 19
1
vote
0 answers

Trying to use regex as path for my nginx location

main page: (should be / or anything other than phpmyadmin and other folder....) location ~ (?!phpmyadmin|smf|zDev|DiscordCommunicator|wordpress|Monitor|announcements) { #... } fastcgi pages (should start with / and phpmyadmin or any of the other…
Zorono
  • 11
1
vote
0 answers

Problems installing OpenMediaVault on Raspberry Pi

BTW, I am trying to install OpenMediaVault on a Raspberry Pi 1, however, whenever I try and install OpenMediaVault on a Raspberry Pi 1, I get problems with the monit package, the FastCGI Process Manager and the openmediavault package too. Here is…
1
2 3