Skip to main content

Questions tagged [mod-fastcgi]

Filter by
Sorted by
Tagged with
0 votes
1 answer
95 views

Understanding mod_fastcgi apache2 module

I'm working in a Ubuntu 22.04.3 LTS I'm creating my own apache "arquitecture". I called it "myApache". The idea is that every user can run its own apache listening in its UID as ...
icalvete's user avatar
  • 141
2 votes
1 answer
113 views

NGINX Autospawning of FastCGI Perl Scripts

For the last several years, I’ve been using a setup of NGINX as a reverse proxy that passes any dynamic content requests to Apache. Apache then uses mod_fcgid to autospawn FastCGI-enabled Perl scripts ...
Timothy R. Butler's user avatar
0 votes
0 answers
477 views

Can't make Apache connect to PHP-FPM: (13)Permission denied: AH00957: FCGI: attempt to connect to 127.0.0.1:9000

I'm trying to setup Apache with FastCGI work with PHP-FPM on AlmaLinux 9.3 and I'm stuck with this error. I can't find what I'm missing. This is the error: [Mon Mar 25 18:12:33.617487 2024] [proxy:...
El Barto's user avatar
  • 983
0 votes
1 answer
1k views

Nginx FastCGI Error in logs: 38 FastCGI sent in stderr: "PHP message: PHP Warning: hash_equals(): Expected known_string to be a string

I am running a LEMP server (Ubuntu 20.04 server) with fast cgi enabled, and am getting the following error message in the logs for one of my virtual hosts (one of my websites). Here is the full error ...
DanRan's user avatar
  • 113
0 votes
1 answer
672 views

Can't get PHP-FPM working so that multiple versions of php can be used

Server runs CentOs 6.10 Need to use php5 for some websites and php7 for others on the same server so I used the remi repository and enabled the php versions needed. I've uninstalled mod_php and ...
zigojacko's user avatar
  • 1,483
1 vote
1 answer
566 views

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 ...
user2845840's user avatar
0 votes
1 answer
275 views

Lighttpd stop responding to php calls

I am running 2 servers with Lighttpd 1.4.45 with fastcgi and php 5.6 on gentoo linux. We have a problem in both servers that about twice a day the Lighttpd stop responding to php calls, only restart ...
Miko Meltzer's user avatar
0 votes
1 answer
317 views

Why does my migrated apache2-fastcgi-django solution give me 'AH01630: client denied by server configuration'?

I have a solution to run a Django (1.3.1 on Python 2.7) site which is working on an old server. I'm trying to migrate this to a new server but I'm encountering the following error when I try to access ...
Jon Cage's user avatar
  • 329
1 vote
0 answers
999 views

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 ...
BradM's user avatar
  • 111
0 votes
1 answer
868 views

Directory structure with php-fpm

What's the best directory structure (aka "where to put websites html files") when php-fpm is running? Actually I have one user per website (so for example there is the website example.com and the ...
Oscar Fanelli's user avatar
1 vote
0 answers
2k views

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 ...
John Mc Murray's user avatar
0 votes
1 answer
1k views

How can I get apache to only pass through to fastcgi on .php files?

We're running a different version of PHP for one of the sites, so we've configured fastcgi. But requests to any files, even static css and js is being passed through. How can we limit it to php only? ...
Kit Sunde's user avatar
  • 946
1 vote
1 answer
2k views

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 ...
xuhdev's user avatar
  • 992
2 votes
1 answer
995 views

CentOS 7 / Apache 2.4 / FastCGI Configuration

Does anyone know how to properly configure PHP/FastCGI on a CentOS 7 machine using Apache 2.4? In the Apache Virtual Host config file, I have this: <FilesMatch \.php$> SetHandler "proxy:...
marp's user avatar
  • 23
2 votes
0 answers
3k views

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 ...
Mark1270287's user avatar
1 vote
0 answers
265 views

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: <Location ~ ^/(?!Public)> ...
user2787044's user avatar
0 votes
1 answer
3k views

How to configure Apache to use mod_fastcgi and php-fpm?

Now I am running Apache to serve php files using mod_php. Will I get a performance enhancement while running PHP in fastcgi mode? There are two virtualhosts on this server for now. I followed this ...
melvincv's user avatar
  • 111
8 votes
4 answers
44k views

PHP-FPM Failed to connect to FastCGI server

Error log: [Sat Nov 22 05:24:41 2014] [error] [client xx] (2)No such file or directory: FastCGI: failed to connect to server "/usr/lib/cgi-bin/php5-fcgi": connect() failed [Sat Nov 22 05:24:41 2014] ...
Shane's user avatar
  • 261
-2 votes
1 answer
22k views

CentOS 7 apache2 httpd + mod_fastcgi installation impossible

Has anyone tried to install mod_fastcgi on CentOS7/httpd yet? Since it's not in the epel or fusion repos, I tried the el6 rpm, which wasn't working (httpd said: Cannot load modules/mod_fastcgi.so ...
sgohl's user avatar
  • 1,362
2 votes
1 answer
7k views

mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

My Wordpress blog site has generally 200 users per minute but under 1000 users per minute load my site gets very slow and this warning appears in my error_log. [Sun Aug 17 16:44:41 2014] [warn] [...
NecNecco's user avatar
  • 221
2 votes
0 answers
520 views

Error with FastCGI install on CentOS 6.5

I'm trying to setup FastCGI but keep getting the following error message: Installing : mod_fastcgi-2.4.6-2.el6.rf.x86_64 Non-fatal POSTIN scriptlet failure in rpm package mod_fastcgi-2.4.6-2.el6.rf....
supmethods's user avatar
0 votes
1 answer
312 views

installed libapache2-mod_fastcgi on debian 7 - no php5-fcgi file

So I install Apache2 worker with libapache2-mod-fastcgi (non-free) on my Debian server. I found this snippet from the web, however, I don't have anything in my /usr/lib/cgi-bin/ folder. So how is my ...
ggstevens's user avatar
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
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
1 vote
0 answers
144 views

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 ...
MrNorm's user avatar
  • 153
0 votes
1 answer
1k views

mod_fastcgi not working with <IfModule...> and php-fpm

In the primary httpd.conf file I have the following for loading the fastcgi module: LoadModule fastcgi_module modules/mod_fastcgi.so In a different file for vhosts I have the following: <...
user avatar
1 vote
0 answers
617 views

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 ...
griffin's user avatar
  • 111
4 votes
1 answer
2k views

Lighttpd won't start when fastcgi.debug directive is used

I'm running lighttpd/1.4.28 (ssl) on Ubuntu 12.04 LTS. Everything's working, and I'm trying to do some performance tuning. I'd like to enable debug mode for the fastcgi module, however when I add ...
Alan's user avatar
  • 541
3 votes
1 answer
4k views

Major differences between mod_fastcgi and mod_proxy_fcgi

I noticed there are a couple of modules for Apache that provide FastCGI support. The two most popular seem to be mod_fastcgi and mod_proxy_fcgi. There seem to be other ones as well. My questions are: ...
julkiewicz's user avatar
0 votes
2 answers
3k views

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 ...
CakeSneer's user avatar
  • 109
10 votes
2 answers
17k views

Is it possible to have a fastcgi_cache_path for each website / virtual host?

I am using the following config on my http block on nginx.conf: fastcgi_cache_path /var/www/nginx_cache levels=1:2 keys_zone=NGINXCACHE:500m inactive=60m; fastcgi_cache_key "$scheme$request_method$...
ddutra's user avatar
  • 243
2 votes
1 answer
2k views

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 ...
iDen's user avatar
  • 51
0 votes
1 answer
431 views

mod_fastcgi.so + FCGI (perl) make 500 error with graceful restart on apache 2.2

We'd like to construct a perl (FCGI) application on apache2.2 with mod_fastcgi.so but it makes 500 error when I graceful it. Do you have any idea or solution for it? LoadModule fastcgi_module ...
freddiefujiwra's user avatar
0 votes
1 answer
1k views

Web site - delay under Apache 2.4.4 x64 FastCGI

I'm running a VPS server under Windows 2008 R2 x64 as a web server. I Was running Apache 2.2 x86 / Php 5.3.1 handle with the standard php5_module And I made an upgrade to Apache 2.4.4 x64 / Php 5.3....
Feu follet's user avatar
0 votes
1 answer
444 views

Nginx not parsing php when using try_files

I am basically trying to implement the Apache MultiViews behaviour so that my URLs do not require the .php extension. As far as I can see from other questions answered here on Server Fault, I should ...
nightowl's user avatar
  • 145
0 votes
1 answer
356 views

Deploying a FastCGI application

I'm trying to deploy my Wt application with Apache and FastCGI. Here's my config file: <IfModule mod_fcgid.c> NameVirtualHost *:9091 <VirtualHost *:9091> DocumentRoot /var/...
hank's user avatar
  • 111
1 vote
0 answers
1k views

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's user avatar
0 votes
1 answer
61 views

System administration problems

I recently had a problem with a dedicated server (LINUX) where the file system went read-only. Recent modifications include installation of fcgid using PHP 5,2 on certain <VirtualHost> accounts....
Mattrix's user avatar
  • 33
1 vote
0 answers
477 views

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 ...
Twain's user avatar
  • 11
2 votes
2 answers
807 views

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....
Michael Sh's user avatar
1 vote
1 answer
4k views

Apache + PHP via FastCGI

I'm running into some problems while attempting to run PHP via FastCGI in Apache. I have the FastCGI module loaded, but get the following error when attempting to load a page: The requested URL /...
Wilco's user avatar
  • 365
5 votes
1 answer
16k views

Apache and multiple PHP-FPM pools

I have two sites that I run from apache 2.2 vhosts with PHP-FPM 5.4 on Ubuntu 12.04. Until now I've been using a server-wide (stock) mod_fastcgi config, but now I want to split this into two FPM pools ...
Synchro's user avatar
  • 3,319
0 votes
1 answer
822 views

mod_fcgi produces random 500 Errors

php 5.4.7 via mod_fcgi when I run the site sometimes it works, sometimes it crashed with 500 Internal Error, this is what I see in error.log everytime I run the script [Mon Sep 24 18:50:43 2012] [...
DmitrySemenov's user avatar
1 vote
7 answers
4k views

mod_fastcgi installation error

I've compiled Apache 2.4.2 successfully, but I'm facing an error while trying to compile mod_fastcgi module. Any tips? root@local:/usr/src/libapache-mod-fastcgi# /usr/local/apache2/bin/apxs -o ...
Jari V.'s user avatar
  • 13
0 votes
1 answer
4k views

Apache mod_fastcgi

i am trying to configure an apache2 server with mod_fastcgi on solaris 10 so far i have everything installed using CSW here is my virtual host configuration <VirtualHost X.X.X.X:80> ...
maazza's user avatar
  • 254
2 votes
0 answers
915 views

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 (...
Ponytech's user avatar
  • 994
5 votes
4 answers
16k views

cant install fastcgi ubuntu server: Package libapache2-mod-fastcgi is not available

When i try to install fastcgi in ubuntu server 12.04 I get the following error: sudo apt-get install libapache2-mod-fastcgi Reading package lists... Done Building dependency tree Reading ...
brpaz's user avatar
  • 179
1 vote
1 answer
922 views

trying to "setup apache fastcgi"

my system is: wx3# uname -a FreeBSD wx3 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 wx3# packages installed:...
alexus's user avatar
  • 13.6k
2 votes
2 answers
4k views

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 ...
Thiago Padilha's user avatar
0 votes
1 answer
1k views

Can't configure trac to work with Apache2

I've been trying to set up trac to be deployed with apache for a little while now and I'm running into a wall. This is the response I'm receiving from my server Internal Server Error The server ...
Casey Flynn's user avatar