Questions tagged [mod-fastcgi]

56 questions
2
votes
1 answer

PHP-FPM not working as global PHP handler on Apache, CentOS 6.4

I'm trying to switch PHP handler on my server from mod_php to PHP-FPM. But something with my setup is worng. When I'm trying to open server.com/info.php, it's being opened as standard text showing contents of file, not parsed via php:
iDen
  • 51
  • 7
2
votes
2 answers

FastCGI on lighttpd no data received

I have a simple FastCGI script: public static void main (String args[]) { int count = 0; while(new FCGIInterface().FCGIaccept()>= 0) { count ++; System.out.println("Content-type: text/html\n\n"); …
Michael Sh
  • 123
  • 2
2
votes
0 answers

Lighttpd mod_accesslog not logging fastcgi requests

I have recently installed a lighttpd for serving a python script via mod_fastcgi. Everything works fine except that I don't get the requests handled by mod_fastcgi logged in the access.log file (requests on port 80 are logged though). My lighttpd…
Ponytech
  • 894
  • 1
  • 7
  • 14
2
votes
2 answers

How to create a very simple external FastCGI configuration in apache?

I have an externally started FastCGI application that listens on socket '/tmp/foo.sock' and a directory of static files in '/srv/static'. Apache has all needed permissions on the socket and the directories. What I need : All requests starting with…
Thiago Padilha
  • 289
  • 1
  • 4
  • 10
2
votes
1 answer

suexec and docroot problem

I've got a problem with running a FastCgiServer under apache2. When I define a virtual host with a static fcgi server configured, I get an error from suexec: command not in docroot (/var/www-blah/dispatcher.fcgi) Which is correct, because docroot…
viraptor
  • 1,264
  • 6
  • 21
  • 40
1
vote
1 answer

PHP + mod_fastcgi + suexec can't read vars set via SetEnv in .htaccess

We have PHP running via mod_fastcgi + suexec and it seems that PHP processes run this way don't see environment variables set via SetEnv in a .htaccess file. I checked via a perl script and a shell script (both run via mod_cgid) that SetEnv indeed…
user2845840
  • 213
  • 1
  • 8
1
vote
0 answers

AWS Linux EC2 - How to install suPHP or FastCGI php hander

Seems I'm having permissions issue with AWS Linux EC2. Specifically, I am migrating a Joomla site, and extension and core updates from Joomla Admin won't install because of Apache user/group permission issues. I've done some digging and seems an…
BradM
  • 111
  • 3
1
vote
0 answers

mod_fcgid: error reading data from FastCGI server

This is my first post here although I often do search and find answers here. This time I've spent a couple of days searching various sites but unfortunately none of the answers in other threads helped in my case. I manage a few LAMP servers each…
1
vote
1 answer

Apache: virtual host and mod_fastcgi -- how does it work?

I read this article to set up virtual host with mod_fastcgi, but I don't quite understand the following configuration: FastCgiExternalServer /var/www/php5.external -host 127.0.0.1:9000 AddHandler php5-fcgi .php Action php5-fcgi…
xuhdev
  • 800
  • 2
  • 6
  • 19
1
vote
0 answers

Apache + Event_MPM + FastCgiExternalServer + php5-fpm : php-fpm hangs emergency_restart_threshold does not reset

Sorry if this seems rambled. I have been trying to troubleshoot / solve this for the past 20 hours straight, while having to babysit the server and restart php5-fpm every time it goes down. I imagine there is an underlying problem with a plugin…
Mark1270287
  • 111
  • 4
1
vote
0 answers

Location directive not working when using php-fpm (via mod_fastcgi)

I've configured a virtualhost which should be completely restricted with a SSL client certificate, except one location (/Public). My configuration in my virtualhost: SSLRequireSSL SSLVerifyClient require …
1
vote
0 answers

OOM Issues with FastCGI - FastCgiServer config getting ignored

I'm using apache2 with mod_fastcgi to run PHP on a private shared server. I have combined this with suexec so I can run each virtual host as it's own UNIX user, keeping Wordpress owners happy. One site occasionally gets a wave of traffic due to…
MrNorm
  • 153
  • 9
1
vote
0 answers

HHVM through Apache mod_fastcgi on debian

I've been able to rather easily get facebooks hhvm working from prebuilt debian packages as well as compile it, and afterwards to run it behind apache as a proxy. The problem with the proxy setup is though, that I can't get response headers other…
griffin
  • 111
  • 1
1
vote
0 answers

Should I use mod_fastcgi or mod_fcgid for PHP and Django?

I would like to use FastCGI to host the program, what are the differences between mod_fastcgi and mod_fcgid? How to decide which to use?
Harold Chan
  • 503
  • 1
  • 5
  • 11
1
vote
0 answers

APC using mod_fastcgi only caching apc.php

I'm on Debian 6.06, using Plesk 11.09, with Apache2 and nginx as reverse proxy. I'm trying to setup the APC, but it seems not to work properly. The APC Webinteface, apc.php, tells me, that APC is only caching apc.php. I managed to get fastcgi…
Twain
  • 11
  • 1