fastcgi

ExpressionEngine not functioning properly after hosting transfer

Just transferred an Expression Engine web site to a new hosting environment. New server is Windows 2003 Standard running PHP 5.2.44 via FastCGI and IIS 6. Other PHP sites run fine on this server (WordPress, CMSMadeSimple, etc.). This is the first ExpressionEngine site we've worked with. We've restored the database, setup a user account f...

Apache HTTP Web Server Requests

Hi, When an http request is processed by the Apache web server it typically forks a new process unless one is using something like fastcgi. My question is related to "simultaneous requests" when using fastcgi. If I'm using fastcgi and I have a tree-like datastructure in main memory, do I need to worry about concurrent read/write acc...

Using FastCGI on IIS 6 to test new application

I'm trying to use IIS6 and FastCGI to test a new application I'm writing. I've set up fcgiext.dll in a virtual directory on a wildcard mapping, but I get Could not find entry for "(null)" on site 1 in [Types] section Even though I have this in fcgiext.ini: [Types] *:1=fcgitest [fcgitest] ExePath=C:\test\fcgitest.exe Protocol=NamedPip...

Using Apache to test a FastCGI application.

I'm trying to use Apache 2.2 and mod_fastcgi.dll on Windows to test a FastCGI appliction I'm making. I've added this to httpd.conf: LoadModule fastcgi_module modules/mod_fastcgi.dll FastCgiExternalServer "C:\test\fcgitest.exe" -socket fcgitest <Location /fcgitest> SetHandler fastcgi-script </Location> I'm using FastCgiExternalServ...

How can I write a Perl web app that supports CGI, FastCGI and mod_perl?

How can I write a web application in Perl so that it can work as plain CGI script, as FastCGI / FCGI script, and from mod_perl / mod_perl2 (preferably using only core Perl modules and those from libwww-Perl, and minimizing number of Perl CPAN modules one has to install)? I'd like to minimize changes one has to do to change script from u...

Why doesn't my Perl script start under FastCGI?

I am getting this error in error_log one of my Perl CGI application. I am pretty sure I haven't changed my script at all and all of a sudden i have started getting this error. This is what I see in error_log: [Wed Jul 8 15:18:20 2009] [warn] FastCGI: server "/local/web/test/cgi-bin/test.pl" (pid 17033) terminated by calling exit ...

lighttpd mod_rewrite vs. apache mod_rewrite with Django and FastCGI

I am in the process of migrating from a Django FastCgi setup in Apache to one in lighttpd. On Apache, I was using the fcgi config described in the Django docs. The core part being rewriting all my non-static URLs to be /mysite.fcgi/$1: RewriteRule ^/(.*)$ /mysite.fcgi/$1 [QSA,L] and then forwarding all requests for /mysite.fcgi for F...

fastcgi does not work - wrapper dowloaded not run

On my fresh Ubuntu 8.04 I installed virtualmin. Then I set up fastcgi as I did on my other server (Debian). Bu I have small problem. When I open website It instead of running fastcgi wrapper it downloads it. Here is config: <IfModule mod_fastcgi.c> FastCgiIpcDir /usr/lib/apache2/fastcgi AddHandler fastcgi-script .fcgi Fas...

Understanding CGI / FastCGI in Rails

This is more to understand the request-response mechanism in web apps. A client sends a request (GET / POST) to a web app. The web app has an application server running which serves as the container for the application specific programs. I don't understand the part when the app server starts a FastCGI / CGI process. What is the significa...

How to install latest lighttpd PHP (fastcgi) and MySQL on centOS 5.3

yum always install old version but i want to install latest versions. Thanks. ...

Writing for FastCGI in VB6?

While I'm busy here reading the FastCGI documentation (yeah, reading the 'friendly' manual), does anyone know whether anyone has had any success writing FastCGI apps in VB6? Starting to get close to finding a solution myself at Coast Research and Development's FastCGI Dll Library (with SIGTERM handler) for Windows Web Servers ...

Can I configure environment specific content?

In the same way that you can generate specific content based on browser type is there a way to generate specific content based on the server running PHP without reference to the server or site name? For example, a way for PHP to automatically detect the environment it was in and configure things like DB connections, ini_set for errors e...

php-cgi.exe - does it detect and handle both CGI and FastCGI? If so, how?

The impression I get both from Microsoft's discussions about FastCGI and PHP, and also from Coast R&D's site, is that php-cgi.exe is able to detect whether it is being used in either a CGI or FastCGI context. If so, how does it do it, as I'd like to have similar functionality in my own product. ...

Apache vs. IIS PHP performance comparison

Does anyone know of any links to realistic performance comparisons of IIS vs. Apache for PHP hosting? I am looking to utilise existing infrastructure for a change of technologies from .NET to a PHP application but I cannot find any information about PHP hosted on varying platforms. There is heaps out there about IIS vs. Apache in genera...

FastCGI on port vs. on socket

I was setting up Django on Cherokee today (using SCGI), and I noticed that the Django docs say that you can use either a host/port combination or a socket for communication between the webserver and Django. The only thing they have to say on the matter is What you choose is a manner of preference; a TCP socket is usually easier due ...

Django and fcgi - logging question

I have a site running in Django. Frontend is lighttpd and is using fcgi to host django. I start my fcgi processes as follows: python2.6 /<snip>/manage.py runfcgi maxrequests=10 host=127.0.0.1 port=8000 pidfile=django.pid For logging, I have a RotatingFileHandler defined as follows: file_handler = RotatingFileHandler(filename, maxByt...

How does FastCGI work on a web server (eg. Apache 2.2+)?

Hi, I had a look at the sources of FastCGI (fcgi-2.4.0) and actually there's no sign of fork. If I'm correct the web server spwans a process for FastCGI module (compiled in it or loaded as a SO/DLL) and handles control of the main socket (the port TCP:80 usually) over to it. On *nix the FastCGI module "locks" that socket using a file w...

Can I get a Java Socket from a file descriptor number?

When a program is started via FastCGI, it is exec'd with a socket already open to talk to the web server. The socket's file descriptor number is handed to the program, but how can that be converted to something useful in Java, such as a Socket instance? My hosting service uses mod_fastcgi for Apache httpd. They won't allow me to configu...

How to setup nginx + php-fpm + wordpress for only certain URLs?

I'm trying to get nginx + php-fpm +wordpress to serve some pages from my site while acting as a proxy to other pages. ie: host/foo -> proxy to another www server host/bar -> wordpress (via fpm) the proxy part works fine, but the nginx -> wordpress part just keeps redirecting to the root page. When i strace the php-fpm process, i ...

HTTP 500 error on IE7

For my development environment I recently moved to PHP 5.3 w/ fastCGI on IIS from php 5.2 w/ ISAPI on IIS and when I have an error (such as function name is incorrect) I'm used to PHP reporting back FATAL ERROR etc... to the browser. Intermittently instead of receiving the error I receive a HTTP 500. If browsing with firefox this does ...