I recently setup a new ubuntu machine, with wordpress, spawn-fcgi and nginx.
Every morning, I'd try to see my blog and I got a 502 error Bad Gateway error.
I tried finding some kind of log of why php-cgi died but couldn't find anything.
I run spawn-fcgi like so:
sudo /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -u www-data -g www-data -f...
I am using PHP FastCGI SAPI on my web hosting environment to run PHP applications. To spawn FCGI processes I use spawn-fcgi helper program. My problem is whenever I make a change to php.ini file, I have to kill and respawn each FastCGI server for the new configuration to take effect.
Is there a way to reload PHP configuration(ie. php.i...
I run PHP via FastCGI with nginx web server on Gentoo. PHP is started by spawn-fcgi script from lighttpd, which is started run as a daemon using start-stop-daemon. Among other things, startup scripts cleans-up environment, so that only PATH, PHP_FCGI_CHILDREN and PHP_FCGI_MAX_REQUESTS are left when PHP is started. However on my machine, ...
I have an libfcgi program. It would be nice if it could detect if it has been started under FCGI (in which case it could go to the FCGI_Accept runloop) or if it's been started at the command line (in which case it could do something else).
Is there an environment variable I can check for? I know I could set these in the webserver, but ...
Hi, I'm using nginx with this script as FastCGI wrapper, that I start with:
spawn-fcgi -F 3 -u www-data -s /var/run/perl-fcgi.sock -P /var/run/perl-fcgi.pid -- ./perl-fcgi.pl
Now, suppose I have a simple script:
#!/usr/bin/perl
print "Content-type: text/plain\r\n\r\n";
print "hello\n";
The script runs fine, and I see the "hello" w...