Questions tagged [mod-fastcgi]
The mod-fastcgi tag has no usage guidance.
58
questions
0
votes
0
answers
39
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:...
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 ...
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 ...
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 ...
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 ...
8
votes
4
answers
43k
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] ...
2
votes
2
answers
21k
views
Disable the timeouts on apache httpd and fastcgi
A debian lenny server, running apache httpd 2.2.11 and fastcgi, kills requests when they take more than a certain amount of seconds. I want to disable this timeout to enable me to debug an application ...
0
votes
1
answer
571
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 ...
5
votes
4
answers
15k
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 ...
0
votes
1
answer
257
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 ...
1
vote
1
answer
500
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 ...
-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 ...
0
votes
1
answer
301
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 ...
1
vote
0
answers
947
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 ...
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$...
0
votes
1
answer
772
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 ...
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 ...
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? ...
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":
...
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 ...
2
votes
1
answer
974
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:...
13
votes
2
answers
60k
views
How to enable error log in lighttpd properly?
I have a Centos 5 system with Lighttpd and fastcgi enabled.
It does log access but does not log errors. I have Internal Server Error 500 and no info in log and when I try to open not -existing file ...
2
votes
1
answer
6k
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] [...
2
votes
0
answers
2k
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 ...
1
vote
0
answers
259
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)>
...
1
vote
0
answers
476
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 ...
2
votes
0
answers
517
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....
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 ...
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 ...
1
vote
0
answers
134
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 ...
1
vote
0
answers
616
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 ...
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 ...
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:
<...
0
votes
1
answer
347
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/...
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 ...
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: ...
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 ...
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 ...
0
votes
1
answer
419
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 ...
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....
0
votes
1
answer
440
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 ...
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?
2
votes
2
answers
779
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....
0
votes
1
answer
59
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....
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 /...
5
votes
3
answers
16k
views
FastCGI and Apache 500 error intermittently
I have a FastCGI (mod_fastcgi)problem. It happens every once in a while, and does not casue a complete server meltdown, just 500 errors. Here are a couple things. First I am using APC so PHP is in ...
0
votes
1
answer
819
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] [...
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>
...
2
votes
0
answers
907
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 (...
1
vote
1
answer
916
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:...