I have an app running under Catalyst+FastCGI. And I want it to fork() to do some work in background.
I used this code for plain CGI long ago (and it worked):
defined(my $pid = fork) or die "Can't fork: $!";
if ($pid) {
# produce some response
exit 0;
}
die "Can't start a new session: $!" if setsid == -1;
close STDIN o...
Hi Everyone. I am experiencing an odd issue. I just switched to FastCGI (Apache) because of the big performance boost. Everything is working great, except when I attempt to use sendmail (Codeigniter Class or just raw PHP). I have tested with and without CI and still get a 500 internal server error when trying to send. Could this be ...
Hi,
Common situation: I have a client on my server who may update some of the code in his python project. He can ssh into his shell and pull from his repository and all is fine -- but the code is stored in memory (as far as I know) so I need to actually kill the fastcgi process and restart it to have the code change.
I know I can grace...
FastCGI is old but it still seems like it must be the right answer in some cases.
It seems like the preferred deployment of Perl/Catalyst web applications is with FastCGI.
FastCGI was popular with Rails but seems to no longer be. (Why?)
The Java world doesn't seem to have anything to do with FastCGI. Is something like Tomcat way bett...
I can't for the life of me fathom out why this RewriteCond is causing every request to be sent to my FastCGI application when it should in fact be letting Apache serve up the static resources.
I've added a hello.txt file to my DocumentRoot to demonstrate.
The text file:
ls /Sites/CioccolataTest.webapp/Contents/Resources/static
hello...
I downloaded the developerkit from fastcgi.com. The kit has an examples folder that has a few source files their final, runnable, compiled files. If I put these compiled files in a cgi-bin folder on my apache server (my macbook pro), add the extension fcgi, and go to the url that they are located, they run perfect.
I have a test c soru...
hi,
i have a joomla webshop with IIS 7 and PHP / MySQL.
I ever get the rrror 500, problems with FastCGI.
I google around 20 hours and tried everything, really everything but I have NO idea what to do.
I will pay 100€ by paypal for a right answer.
...
In my shell script that I run as a cgi application using fast cgi, when I echo as below, the log lines in apache error log appears broken up ( as shown below ). Anu idea why this happens?
echo "a few words - some other words" 1>&2
In the log file
[Tue Apr 27 12:27:54 2010] [warn] mod_fcgid: stderr: a few words -
[Tue Apr 27 12:27:54 ...
I have fastcgi installed and running. I downloaded a developerkit from fastcgi.com. It had some examples in it. One of the example files echos some stuff. It required a .libs and a .deps I put those folders along with a echo.fcgi file and into the webroot/cgi-bin. If I got to the echo.fcgi url, it works great.
I created a simple c file ...
I'm writing an Fast-CGI application that makes use of sqlAlchemy & MySQL for persistent data storage. I have no problem connecting to the DB and setting up ORM (so that tables get mapped to classes); I can even add data to tables (in memory).
But, as soon as I query the DB (and push any changes from memory to storage) I get a 500 Int...
Hi guys, i'm studying the fastcgi developement kit because i'm writing a new scripting language and i'd like to write a fastcgi version of the interpreter to run scripts as webpages.
I'm using this example from the sdk, located at
/srv/http/bin/echocpp
So, in my httpd.conf file, i have the following lines :
FastCgiServer /srv/http/b...
Edit: I have now discovered that the status code is returned correctly, it just isn't recorded correctly in Apache's access.log. Title amended. This is still a problem. Any ideas? Original question follows.
Hi all.
I run the following stack: Django(svn) on WSGI on FastCGI on Apache on Dreamhost. Every page served by Django returns HTTP...
I have installed PHP to work with IIS6 (with FastCGI). I am capable of viewing a sample test website that shows the PHP info with the following code:
<?php phpinfo(); ?>
Now that this works I tried to migrate my PHP website to IIS6 and here is a list of the errors/warnings I got:
PHP Warning: session_start(): open(C:\WINDOWS\Temp\sess...
EDIT: Update - scroll down
EDIT 2: Update - problem solved
Some background information:
I'm writing my own webserver in Java and a couple of days ago I asked on SO how exactly Apache interfaces with PHP, so I can implement PHP support. I learnt that FastCGI is the best approach (since mod_php is not an option). So I have looked at the ...
I created a question on serverfault.com, and it was recommended that I ask here.
http://serverfault.com/questions/140669/why-cant-php-script-write-a-file-on-server-2008-via-command-line-or-task-schedul
I have a PHP script. It runs well when I use a browser. It writes an XML file in the same directory. The script takes ~60 seconds to r...
I've written a simple perl script that I'm running via fastCGI on Apache. The application loads a set of XML data files which are used to lookup values based upon the the query parameters of an incoming request. As I understand it, if I want to increase the amount of concurrent requests my application can handle I need to allow fastCGI t...
FastCGI servers, for example, impose an execution time limit on PHP scripts which cannot be altered using set_time_limit() in PHP. IIS does this too I believe.
I wrote an import script for a PHP application that works well under mod_php but fails under FastCGI (mod_fcgid) because the script is killed after a certain number of seconds. ...
Hi!
I am building a cgi application, and now I would like it to be like an application that stands and parses each connection, with this, I can have all session variables saved in memory instead of saving them to file(or anyother place) and loading them again on a new connection
I am using lamp within a linux vmware but I can't seem to...
I'm trying to deploy Rails 2.1.2 with Apache 2.2.10 and FastCGI (yeah, bad, ancient, ugly, I know). And I know it's no programming question, but please bear with me.
My application can be accessed via example.com/app/public/, but I want to access it via example.com/app/.
In my .htaccess-File (in the app/-directory!) I have:
RewriteEng...
I have a Joomla site, integrated with virtuemart in it.
have almost 9,000 products.
it is not loading the site when i select a manufacturer from a module, which must list all products. Same problem is in the case of categories(have 2 categories).
error is
FastCGI Error Number: 258 (0x80070102)
when I have only 250 products, it was fas...