fastcgi

c alternative to signal() + alarm()

I'm building some FastCGI apps and it sort of bugs me that lighttpd doesn't kill them off after they've been idle, so I'm trying to have them close on their own. I tried using signal(SIGALRM, close); alarm(300); and having the close function execute exit(0), and that works almost well. The problem is the close function is being call...

Questions regarding Lighttpd for Windows

I am using lighty for windows, yes i know it's not linux, but atm can only afford local hosting, which then allows me to do a lot of learning and practicing my web skills. I am aware that fast-cgi, does not work on windows, but I am wondering what other ways, to improve performance are there? Also I was wondering how to hide all those ...

PHP Error output - Plesk 9.2 with IIS7 and FastCGI

Hi All, Where can I view PHP errors that are generated by a Plesk 9.2 website? I currently get a generic 500 error when I create a test PHP error: 500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed. I have, unsuccessfully, tried to activate error reporting in the Plesk g...

I have the XCache jumpy Hits situation, don't know how to solve it

http://xcache.lighttpd.net/wiki/Faq#Iseejumpyhitsinadminpage (see section 1.10) The Xcache jumpy situation happens when different php instances don't share memory. I simply don't know how to solve it. I'm on dreamhost PS server. using the Xcache default installation. See server info below. I tried the following without success: Remov...

PHP Processes reaching limit along with FastCGI timeouts

I have a problem similar to http://stackoverflow.com/questions/1168384/how-to-troubleshoot-php-processes, but with a twist. We have a couple of managed servers that recently migrated to FastCGI. Since then we've been having problems. We have a content management system at a central place that we manage all our sites with. All the sites ...

How do I display real-time python script output on a website?

I have a Python script that outputs something every second or two, but takes a long while to finish completely. I want to set up a website such that someone can directly invoke the script, and the output is sent to the screen while the script is running. I don't want the user to wait until the script finishes completely, because then a...

Can I compile my PHP script to a faster executing format?

I have a PHP script that acts as a JSON API to my backend database. Meaning, you send it an HTTP request like: http://example.com/json/?a=1&b=2&c=3... it will return a json object with the result set from my database. PHP works great for this because it's literally about 10 lines of code. But I also know that PHP is slow and...

[PHP/IIS FastCGI]: Error after installing FastCGI and PHP 5.3.0 nts on windows

I am getting following errors when I try to execute any PHP application after I installed IIS FastCGI and PHP 5.3.0 non-thread-safe on Windows XP: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_enchant.dll' - The specified module could not be found. in Unknown on line 0 PHP Warning: PHP Startup...

CherryPy (or other Python framework) with FastCGI on shared host

I am trying to configure the Python mini-framework CherryPy with FastCGI (actually fcgid) on Apache. I am on a shared host, so I don't have access to httpd.conf, just htaccess. I have followed these tutorials to no avail: http://tools.cherrypy.org/wiki/FastCGIWSGI http://tools.cherrypy.org/wiki/BluehostDeployment I keep getting 500 e...

pylons/paste config files in fastcgi (deployment)

I'm running a pylons app using fastcgi and apache2. There are two versions (different revisions from my svn repo), one for staging and one for production. I'd like them to use different paste config files. Right now, my dispatch.fcgi inside htdocs in the pylons app just uses one config file (so both stage and live use the same confi...

How can I show a maintenance page when my FastCGI app is restarting?

I am serving my FastCGI application in Apache2 using the standalone FastCGI server and the FastCgiExternalServer directive. When I restart my FastCGI app my users get a 500 error. What can I do to prevent this? I want to show them a nice 'maintenance' page or something. It is a Catalyst application written in perl and I have followed t...

Django on Apache with FCGI

Solved: Unfortunately I wasn't able to solve the problem but I started over and followed the Django + FastCGI guide on the "A Small Orange" wiki and everything is working as expected. I am trying to setup Django with FCGI on Apache. The web hosting plan that I am using is A Small Orange's shared hosting plan. Django is installed, worki...

django fastcgi nginx

i m using django with fastcgi + nginx.I want to know were the logs (error) are stored in this case ...

Cannot Edit WordPress Themes - Various Errors

Our WordPress 2.8.6 installation is returning multiple different errors when trying to edit theme files via wp-admin. The errors are as follows: "Invalid index." "The data area passed to a system call is too small" "The parameter is incorrect." We've tried deactivating all plugins to no avail. We also tried creating a blank "plugins"...

Recommendations (and Differences) between different Ruby on Rails Production Web Servers

Very soon I plan on deploying my first Ruby on Rails application to a production environment and I've even picked a webhost with all the managed server and Capistrano goodness you'd expect from a RoR provider. The provider allows for Mongrel, Thin, Passenger & FastCGI web servers, which seems very flexible, but I honestly don't know the...

nginx errors readv() and recv() failed

I use nginx along with fastcgi. I see a lot of the following errors in the error logs readv() failed (104: Connection reset by peer) while reading upstream and recv() failed (104: Connection reset by peer) while reading response header from upstream I don't see any problem using the application. Are these errors serious or ...

IIS 7 and FastCGI Problem

Today I was configuring IIS 7 with FastFGI in Windows 7. I followed all the steps but I get the following error: C:\php\php-cgi.exe - The FastCGI process exited unexpectedly IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which ...

How to in asp.net mvc to get $_SERVER["REQUEST_URI"] ?

I have the following url in my web browser: http://www.mysite.com/Form/Go#key=100 I want from my controller to get the value from key, so I want to get this '100'. How can I accomplish this. I have Windows server 2008 with IIS7. The only way I found on google is to get Request.ServerVariables["REQUEST_URI"] like in php: $_SERVE...

Can the APC cache be shared among multiple PHP processes running as fastcgi/fcgid?

I'm running a LAMP box with PHP running as fcgid. APC is installed and working well. However, each PHP process gets its own cache. This is a problem, because it would make far more sense to have 10 PHP processes with 300MB shared APC cache than 10 PHP processes, each with a redundant 30MB unshared APC cache. There was a prior thread on ...

FastCGI for C++

I've found only two FastCGI libraries for C++. There's the "official" one, and fastcgi++. How is either one better than the other? Do any others exist? ...