The cause was probably that I ran out of disk space, causing everything to work strangely. I will leave this question up anyways in case anyone else has a similar issue.
I have a few PHP scripts that have hung for a long time, but apparently they are not really using much CPU time as they don't get killed. Still they are making it impos...
I'm running a Django application. Had it under Apache + mod_python before, and it was all OK. Switched to Lighttpd + FastCGI. Now I randomly get the following exception (neither the place nor the time where it appears seem to be predictable). Since it's random, and it appears only after switching to FastCGI, I assume it has something to ...
I am getting an Interface Error/ Operational Error while running my Django application with FastCGI.On checking the access log ( of lighttpd) i find these errors pop up which are usually related to closing some db connection or the other.
The browser displays one of the two things - Unhandled Exception or Connection Terminated unsuccessf...
I just did a clean build and reinstall of lighttpd 1.4.20 on Mac OS X 10.5 and I can't find the configuration file.
My goal was to install lighty to a single directory instead of being spread around, so I used the following commands successfully:
./configure --prefix="/usr/local/lighttpd"
sudo make clean
sudo make
This successfully p...
We have a number of PDFs hosted using Lighttpd but when they are downloaded in IE (7.0.5730.13), the file download hangs at the end and does not complete. For example
http://static.vouchercodes.co.uk/printable/87-burger-king-voucher.pdf
http://static.vouchercodes.co.uk/printable/10-gbk.pdf
This works fine in Firefox (3.0.5) both on OS...
A bit more context, in case this question is too general: the uses I have in mind are running django and serving static content and name-based virtual hosting.
I am vaguely aware of the performance/resource tradeoffs between the different servers, but that is a secondary concern.
Anyone who has deployed all three in production?
...
Hello,
I have a dedicated server where i'm only the user in it.
Processor : AMD Sempron 3100+
Memory : 1GB DDR I
I'm using PHP for website. Its mostly used for downloading stuff and uploading and so.
I currently using apache, it eats too much processor.
So i came across few better then apache. I need to know which one of this good ...
I'm currently using Lighttpd on a VPS. Before that it was nginx, but I came back to Lighttpd because I needed CGI.
Apache's HTTPD is mainstream. All documentations include examples for Apache and most modules are only available for Apache.
Is the effort to use something different from Apache really worth it?
...
Hi,
i've installed Lighthttpd for windows and i'd created a simple program in c++ which uses fastcgi libraries. i'll post the code here...
#include "fcgi_stdio.h"
#include <stdlib.h>
int count;
void initialize(void)
{
count=0;
}
void main(void)
{
initialize();
while (FCGI_Accept() >= 0) {
printf("Content-type: text/html\r\n...
I'm trying to set up Ruby on Rails on lighttpd. The operating system is CentOS, though it may be notable that this is a Xen-based VPS.
The problem occurs something like this:
bash-3.2# /etc/rc.d/init.d/lighttpd start
Starting lighttpd: [ OK ]
bash-3.2# /etc/rc.d/init.d/lighttpd status
lighttpd ...
In lighthttpd, when I set:
server.network-backend = "freebsd-sendfile"
the file upload just hangs for files > ~1MB, but if I change it to:
server.network-backend = "writev"
It seems to work fine, but I'm getting lower performance by using that setting. Is there a better solution?
...
Is fprintf thread-safe? The glibc manual seems to say it is, but my application, which writes to a file using single call to fprintf() seems to be intermingling partial writes from different processes.
edit: To clarify, the program in question is a lighttpd plugin, and the server is running with multiple worker threads.
Looking at the...
Hello,
Lighty on windows using mod_dirlisting doesn't list Chinese, Japanese files. I'm missing anything or is it intended?
I already set dir-listing.encoding = "utf-8"
I'm using WLMP lighttpd
Thanks for help and advance answers.
...
I'm developing a CherryPy FastCGI server behind lighttpd with the following setup to enable using ORM SQLAlchemy sessions inside CherryPy controllers. However, when I run stress tests with 14 concurrent requests for about 500 loops, it starts to give errors like AttributeError: '_ThreadData' object has no attribute 'scoped_session_class'...
I'm writing some of my own rules for a few PHP scripts I'm writing, even though I have little experience with regexp. Note: little.
Basically I want to pass all URLs except a few as arguments to index.php, rewriting most URLs defined as slugs in a database.
ie: /admin, /config, /images, /lib and /template exists, but I do not want to b...
I'm looking to make my CGI forum software FastCGI compatible.
The forum software consists of a few dlls and .exe (.cgi) files written in C and x86 assembly language. I also have a SQlite3 database.
Lighttpd runs all these cgi scripts as child processes and I much say that the whole thing works pretty damn well.
But I want to experiment...
I've set up a few web servers in my day, but I'm not sure how they work internally. I'm setting up a new environment for myself and I'm interested in configuring my lighttpd server to support both PHP and Python. Is this possible?
...
I have my application entry point like this.
/app/index.php <-- this is the main dispatcher.
And application specific folders under /app/
/app/todo/
/app/calendar/
/app/bugtrack/
Each application folder cotains application specific files.
I would like to pass all requests unders app to pass through /app/index.php.
So that.
/app/...
I work on a very high trafficked website that uses a Smarty templating system.
When I upload a fresh copy of a template that is currently being used, the page turns blank (as if there is nothing in the template file itself). I have to shut down lighttpd, upload the template again, and start lighttpd back up.
Are there any settings in S...
The problem is my .pl script is downloaded as a blank file instead of being executed.
I read: http://redmine.lighttpd.net/wiki/lighttpd/ApplicationsUsingLighttpd
My dispatch.fcgi is the following: (it is located in usr/bin/
#!perl
#!/usr/bin/perl
use strict;
use CGI::Fast;
use Embed::Persistent; {
my $p = Embed::Persistent->new();
whi...