Questions tagged [fastcgi]

23 questions
28
votes
9 answers

Ensure a process is always running

I started hosting sites a while back using Cherokee. For external sources (FastCGI, etc) it has an option to launch the process if it can't find one running on the designated socket or port. This is great because it means if PHP or a Django site…
Oli
  • 15,808
  • 10
  • 42
  • 51
10
votes
3 answers

FastCGI library for C#/Mono

I'd like to write a couple of fastcgi applications in c#. I know that Mono can run ASP.NET on fastcgi enabled web servers, but that is not what I need. Is there any FastCGI library working for .NET/Mono?
Giacomo Tesio
  • 975
  • 1
  • 9
  • 18
4
votes
1 answer

problem with default fcgiwrap socket access rights and nginx (Alpine Linux)

I want to run git-daemon (git-http-backend) in Alpine Linux using nginx and fcgiwrap. However, the default installation of nginx and fcgiwrap leads to a 502 Bad Gateway error. Apparently the group access rights seem to miss the write rights for the…
3
votes
2 answers

Nginx on FreeBSD: fcgiwrap.sock permission denied

I'm trying to setup nginx and cgit on FreeBSD but nginx can't access /var/run/fcgiwrap/fcgiwrap.sock. In my /etc/rc.conf I already set fcgiwrap_user="www", and www is also the user nginx runs as. When I make fcgiwrap.sock owned by www by performing…
Jessica Nowak
  • 57
  • 1
  • 8
2
votes
2 answers

Asynchronous Child Process in FastCGI Script

Suppose that I want my server to sleep on any HTTP request to the path /sleep (i.e. http://hostname/sleep), but also send a complete response (HTTP 200) before sleeping. Using nginx with FastCGI, I have configured the path in the nginx…
palswim
  • 4,919
  • 6
  • 37
  • 53
2
votes
1 answer

Nginx version agnostic php-fpm configuration

When I create a new webapp conf in Nginx I use the following template: server { root /var/www/html/${domain}; server_name ${domain} www.${domain}; location ~* \.(jpg|jpeg|png|gif|ico|css|js|ttf|woff|pdf)$ { expires 365d; } …
Arcticooling
  • 1
  • 12
  • 44
  • 103
2
votes
0 answers

proper permissions under HTTP root with Apache2 + FastCGI + Suexec

I currently have a setup which runs Apache2 + FastCGI PHP + Suexec. As an example, I'm using /mnt/data/www/vhosts/inflex.co.uk/htdocs as a DocRoot for one of my virtual hosts. I have a script /mnt/data/www/php5-cgi/inflex.co.uk/php5-cgi which…
dunks
  • 21
  • 1
2
votes
0 answers

Nginx & FastCGI Buffering

I want to ask few questions regarding nginx and fastcgi buffering that i can't find an answer for. 1) Is the fastcgi_buffering values / request or for entire nginx? 2) Assuming that i want to have exactly buffer size of 3MB, what should i do? 3)…
user3393046
  • 143
  • 1
  • 9
2
votes
2 answers

Can't get Perl FastCGI script to run on Apache Server: Error 500

I'm trying to run an Apache server that executes some scripts over fast CGI, but I can't figure out for the life of me how to actually get it to work. My problem in particular is the "Error 500: End of script output before headers". I've been…
elpato
  • 145
  • 1
  • 7
1
vote
1 answer

fastcgi php nginx errorlog messed up

I have a strange problem, the errorlog of my nginx server is somehow messed up: PHP errors seem to be all written in one line and repeating itself recursively. This way the llog grows a few GB within one day! This is one line in the error…
rubo77
  • 27,777
  • 43
  • 130
  • 199
1
vote
0 answers

How do I fix my FastCGI Pinax / Django deployment?

I'm running OSX Lion (posted here because this is a Unix-specific question), and am trying to deploy a Pinax project via FCGI. I have the FastCGI daemon running: $ ps wwaux | grep fcgi jonathan 522 0.0 0.2 2480420 4216 ?? S …
Christos Hayward
  • 529
  • 1
  • 6
  • 17
1
vote
1 answer

Building dynamically driven web sites with Mason (Perl) with httpd on OpenBSD current

Is it possible to build dynamically driven web sites with Mason (Perl) with httpd on OpenBSD current? See The Mason Book and the introduction to OpenBSD's httpd.
Vim
  • 229
  • 1
  • 4
  • 15
1
vote
1 answer

How to configure which user fcgiwrap runs as on FreeBSD?

I have Redmine/Git/nginx/fcgiwrap running in a jail on FreeBSD 9.3 for (potentially) authenticated Git commits over HTTP/S. Everything works until I restart the jail. In order for a commit to work I need to manually change…
Samuel Harmer
  • 285
  • 3
  • 10
1
vote
1 answer

lighttpd2 and php under fast-cgi returns 403 "Permission denied"

lighttpd2 is under development but it's faar enough to where i want to start using it. I've overcome the hurdle of installing it and getting vhost etc working. PHP 5.6.6 (cgi-fcgi) (built: Feb 20 2015 17:27:21) lighttpd-angel/2.0.0 - a fast and…
Torxed
  • 3,567
  • 7
  • 27
  • 44
1
vote
1 answer

goaccess won't run when called from CGI script

I'm trying to make a CGI script (for nginx) that outputs an html page containing the usage statistics for my server. I'm using goaccess 0.7.1 and CentOS 5 x86. I've configured nginx to run my bash script (stats.sh) for requests on port 8080. The…
1
2