mod-fastcgi

What is the best way to run ServiceStack on Linux / Mono?

北战南征 提交于 2019-12-28 02:20:25
问题 Listed on the ServiceStack website it shows that ServiceStack can run on Mono with either: XSP mod_mono FastCgi Console What are these different configurations and which is preferred for Web Services on Mono? 回答1: Update for Linux From the v4.5.2 Release ServiceStack now supports .NET Core which offers significant performance and stability improvements over Mono that’s derived from a shared cross-platform code-base and supported by Microsoft's well-resourced, active and responsive team. If

FastCGI script can't find libfcgi.so.0 in Apache 2.4.6 and mod_fastcgi

拥有回忆 提交于 2019-12-25 03:12:29
问题 This is my simple hello-world FastCGI script written in C. #include "fcgi_stdio.h" #include <stdlib.h> void main(void) { int count = 0; while(FCGI_Accept() >= 0) printf("Content-type: text/html\r\n" "\r\n" "<title>FastCGI Hello!</title>" "<h1>FastCGI Hello!</h1>" "Request number %d running on host <i>%s</i>\n", ++count, getenv("SERVER_NAME")); } It works fine if I compiled it using static linking. gcc -o "test.fcg" "test.c" /usr/local/lib/libfcgi.a But when using dynamic linking... gcc -o

mod_fcgid read timeout from pipe, end of script output before headers, multiple versions of PHP

房东的猫 提交于 2019-12-12 19:25:05
问题 I've set up several version of PHP under Apache on Windows using mod_fcgid. The configuration is like this: LoadModule fcgid_module modules/mod_fcgid.so FcgidInitialEnv SystemRoot "C:/Windows" FcgidInitialEnv SystemDrive "C:" FcgidInitialEnv TEMP "c:/php/tmp" FcgidInitialEnv TMP "c:/php/tmp" FcgidInitialEnv windir "C:/WINDOWS" FcgidIOTimeout 600 FcgidConnectTimeout 600 FcgidProcessLifeTime 3600 FcgidMaxRequestsPerProcess 900 FcgidMaxProcesses 10 FcgidMaxRequestLen 80131072 FcgidInitialEnv PHP

Custom 404 message when using PHP-FPM with Apache

醉酒当歌 提交于 2019-12-12 11:26:48
问题 I have Apache (2.2.22 on Debian) configured to handle PHP files via FastCGI: <FilesMatch ".+.php$"> SetHandler application/x-httpd-php </FilesMatch> Action application/x-httpd-php /fcgi-bin/php5-fpm virtual Alias /fcgi-bin/php5-fpm /fcgi-bin-php5-fpm FastCgiExternalServer /fcgi-bin-php5-fpm -socket /var/run/php5-fpm.sock -idle-timeout 600 -pass-header Authorization To show a custom File Not Found (HTTP 404) page is configured in Apache as follows: <Directory "/home/http/domain/root"> ..

Difference between FastCgiExternalServer and FastCgiServer in Apache FastCGI PHP?

大憨熊 提交于 2019-12-10 02:56:20
问题 Just let me state that I am new to FastCGI. I have MAMP's Apache on my OS X machine. Default PHP handler was Apache Handler 2.0 (libphp5.so). I wanted to change to FastCGI and followed the answer here: How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal? I added the following at the end of my httpd.conf: <IfModule mod_fastcgi.c> AddHandler php5.fcgi .php Action php5.fcgi /php5.fcgi Alias /php5.fcgi /Applications/MAMP/fcgi-bin/php5.fcgi FastCgiServer /Applications/MAMP

deploying a WSGI application on mod_python

巧了我就是萌 提交于 2019-12-07 04:08:31
问题 I wrote a WSGI application which I need to deploy to a server, however I've been given a server that already has mod_python installed. I am not allowed to remove mod_python since there are some mod_python applications running on it already. One option I considered was installing mod_wsgi alongside mod_python, however I went through sources and found that was a bad idea. Apparently mod_wsgi and mod_python don't mix well. Another option I considered was installing mod_fastcgi and deploying it

CentOS mod_fastcgi

旧巷老猫 提交于 2019-12-06 08:25:50
问题 I have server with installed CentOS 6.2 with nginx and php-fpm from remi repos httpd also installed, but when I try to install mod_fastcgi yum sais that no pachage availiable How I can install mod_fastcgi??? Googling different sites says that command yum install mod_fastcgi must install this package. But yum sais: Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * epel: mirror.cogentco.com * remi: remi-mirror.dedipower.com 196 packages excluded due to

deploying a WSGI application on mod_python

杀马特。学长 韩版系。学妹 提交于 2019-12-05 11:12:46
I wrote a WSGI application which I need to deploy to a server, however I've been given a server that already has mod_python installed. I am not allowed to remove mod_python since there are some mod_python applications running on it already. One option I considered was installing mod_wsgi alongside mod_python, however I went through sources and found that was a bad idea. Apparently mod_wsgi and mod_python don't mix well. Another option I considered was installing mod_fastcgi and deploying it using fastcgi. I would love to hear if someone has a better idea which doesn't break the current mod

Difference between FastCgiExternalServer and FastCgiServer in Apache FastCGI PHP?

拟墨画扇 提交于 2019-12-05 03:07:01
Just let me state that I am new to FastCGI. I have MAMP's Apache on my OS X machine. Default PHP handler was Apache Handler 2.0 (libphp5.so). I wanted to change to FastCGI and followed the answer here: How to configure Apache to run PHP as FastCGI on Ubuntu 12.04 via terminal? I added the following at the end of my httpd.conf: <IfModule mod_fastcgi.c> AddHandler php5.fcgi .php Action php5.fcgi /php5.fcgi Alias /php5.fcgi /Applications/MAMP/fcgi-bin/php5.fcgi FastCgiServer /Applications/MAMP/fcgi-bin/php5.fcgi -socket /Applications/MAMP/tmp/php-fcgi/php5-fpm.sock -pass-header Authorization

mod_fastcgi idle timeout not work

跟風遠走 提交于 2019-12-04 21:35:48
问题 I'm using Apache + mod_fastcgi + php-fpm. I'm trying parse big file and set in php script max_execution_time to 0, but script fails after 30 seconds with message in error log: "FastCGI: comm with server "/usr/lib/cgi-bin/lz-fcgi" aborted: idle timeout (30 sec)". In configs below you can see that -idle-timeout directive is set to 900 seconds and I'm confused where the server gets value 30s? When I switch to mod_php or mod_fcgid it's ok and all appropriate settings for this mods are working