All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
131 views

opensuse php fpm lighttpd 403 is it a permissions-issue

So far I have configured php-fpm configured and is up and running listening to port 9000 lighttpd is running and serves static files the problem that I have seems to be a permissions issue, so i chmod ...
garsev's user avatar
  • 1
0 votes
1 answer
2k views

Lighthttp FastCGI unable to start due to permission denied on Linux Mint 20

I get that in /var/log/lighttpd/error.log after start attempt: 2021-04-04 14:47:21: (server.c.1488) server started (lighttpd/1.4.55) 2021-04-04 14:47:21: (gw_backend.c.1404) invalid "bin-path&...
Грузчик's user avatar
0 votes
0 answers
1k views

Trying to deploy my flask web app using lighttpd

I'm trying to deploy my flask web app using lighttpd. I created this hello.fcgi file #!/usr/bin/python from flup.server.fcgi import WSGIServer from hello import app if __name__ == '__main__': ...
user8481790's user avatar
0 votes
0 answers
856 views

Lighttpd running FastCGI script hangs and give 500 internal error

I'm attempting to use lighttpd and fastcgi to run a small flask application. When I try to start lighttpd, it starts the server just fine, but when I try to connect in the browser, it hangs without ...
Michael's user avatar
  • 153
1 vote
2 answers
2k views

lighttpd + PHP-fcgi slow response

We have a problem regarding lighttpd as the webserver with php5 as backend via fast-cgi. Sometimes the server's response is taking more than 5 seconds (up to 20 seconds) when requesting a simple file ...
robert's user avatar
  • 11
1 vote
0 answers
101 views

Lighttpd fastcgi remote instance operation

This article suggests that it is relatively easy to scale an application by getting lighttpd to spawn php-fastcgi instances on multiple machines. What I do not understand is this - how does a PHP ...
DroidOS's user avatar
  • 173
0 votes
1 answer
708 views

Redirect with lighttpd and fastcgi on Django App

I have setup my lighttpd in a fashion which redirects all subdomains to my primary domain in following fashion * .domain.com -> domain.com. Unfortunately when i type in a subdomain such as www.domain....
JavaCake's user avatar
  • 111
1 vote
1 answer
1k views

How to redirect URLs without break a FastCGI app?

(I consider this question a duplicate of Lighttpd redirect from www.domain.com to domain.com, but that one didn't get enough attention and it's too old). I'm trying to deploy an app over lighttpd+...
Tae's user avatar
  • 113
0 votes
0 answers
289 views

What do I set the 'socket' to in lighttpd/fcgi?

I want to configure lighttpd to run fastcgi but I'm not sure what I should set the 'socket' to. What is the socket? Surely it doesn't expect me to create a socket before the program is actually ...
Jeroen's user avatar
  • 111
0 votes
2 answers
3k views

flask, lighttpd with fastcgi can't get it to work

i'm tring to deploy a simple flask script to a lighttpd server with fastcgi. this is the configuration file for lighttpd builded using the flask documentation http://flask.pocoo.org/docs/deploying/...
kurojishi's user avatar
  • 113
1 vote
0 answers
410 views

Can lighttpd be configured to spawn it's own instances of PHP on Windows7?

Currently, this is how I start PHP and lighttpd and it works fine: start /b php-cgi -c .\php-debug.ini -b 127.0.0.1:521 start /b LightTPD.exe Once and awhile PHP crashes and I get 503 errors until ...
Larry's user avatar
  • 235
0 votes
2 answers
5k views

lighttpd: backend is overloaded

I have a high traffic site I'm trying to maintain, but from time to time at spikes get stuck with: (mod_fastcgi.c.2900) backend is overloaded; we'll disable it for 2 seconds and send the request to ...
Aaron A's user avatar
  • 239
2 votes
2 answers
755 views

FastCGI on lighttpd no data received

I have a simple FastCGI script: public static void main (String args[]) { int count = 0; while(new FCGIInterface().FCGIaccept()>= 0) { count ++; System.out....
Michael Sh's user avatar
0 votes
2 answers
290 views

How to increase simultaneous requests for LIGHTTPD

I have Red Hat 6 and I've installed Lighttpd + MySQL and at the moment in getting 500 internal server error, logs shows that I have arround 2000 requests / sec, while as soon as requests drop below ...
ProDraz's user avatar
  • 231
1 vote
3 answers
1k views

Security implications of adding www-data to /etc/sudoers to run php-cgi as a different user

What I really want to do is allow the 'www-data' user to have the ability to launch php-cgi as another user. I just want to make sure that I fully understand the security implications. The server ...
BMiner's user avatar
  • 125
1 vote
0 answers
433 views

Lighttpd with FastCGI configuration running ViewVC - rewrite problems

At the moment I am struggling with the configuration of lighttpd together with ViewVC. The configuration was ported from Apache 2.2.x, which is still running on the machine, serving the WebDAV/SVN ...
0xC0000022L's user avatar
  • 1,516
4 votes
1 answer
1k views

Lighttpd, Python, MySQLdb Python Module and Permissions

After restarting a lighttpd server recently I haven't been able to get it up and running again. I am running a python built API service on it, and am relying on the web.py module to run the ...
breezy's user avatar
  • 41
2 votes
0 answers
700 views

Serving videos (mod_h264_streaming) using lighttpd with a fastcgi authorizor causing problems

So my goal is to serve streaming video, but only after authentication. Since authentication could use one of many methods, I'm writing a fastcgi authorizer to handle them. Each part (streaming, ...
laughingbovine's user avatar
1 vote
2 answers
1k views

lighttpd fastcgi unix bind error

I am trying to configure Lighttpd to run Redmine using FastCGI. I have added the following code to my standard lighttpd.conf: $HTTP["host"] =~ "^foo.bar.com$" { server.document-root = "/usr/share/...
wonbyte's user avatar
  • 115
1 vote
2 answers
2k views

Using multiple FCGI binaries on one lighttpd instance - possible?

It seems to me that it will be more maintainable to keep separate functions of my site in separate FCGI binaries. What I want is for requests like these: http://mysite.com/funcA.fcgi http://mysite....
ACK_stoverflow's user avatar
6 votes
1 answer
9k views

How to setup Python with Lighttpd and FastCGI (like PHP)

Running Lighttpd on Linux, I would like to be able to execute Python scripts just the way I execute PHP scripts. The goal is to be able to execute arbitrary script files stored in the WWW directory, ...
johndir's user avatar
  • 305
1 vote
0 answers
289 views

lighttpd + php-cgi: Memory increase crazily if there's syntax error in the php file

I use lighttpd as the webserver, and module mod_fastcgi is on. So I can fetch php file with lighttpd. Here is a segment of my configure file. fastcgi.server =( ".php"=> ( ( "bin-...
Miaonster's user avatar
  • 111
1 vote
1 answer
436 views

When restarting ligttpd, how do I get fastcgi php-cgi's to restart

I'm running lighttpd with php5-cgi. Running /etc/init.d/lighttpd restart does not cause the php-cgi processes to restart. Should I just killall them, or is there a more appropriate way to get them to ...
fratrik's user avatar
  • 111
0 votes
3 answers
2k views

Optimizing fastcgi + php5

Running a debian system with lighttpd, php5, xcache and fastcgi. 2GB ram, 2 cores, less than 10% cpu load in 5 min averages peak time, less than 1GB of ram in use. The system runs a custom build ...
3molo's user avatar
  • 4,330
0 votes
1 answer
2k views

Segmentation fault lighttpd

Hey guys, I can't figure this out, when I add the fastcgi module to lighttpd when I try to connect to a php page, I get a segmentation fault error. Nothing is in the error log, and nothing else is ...
Jess's user avatar
  • 399
2 votes
2 answers
2k views

Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?

I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock. If I'm creating the file by ...
Marlon's user avatar
  • 21
1 vote
1 answer
5k views

500 Internal Server Error with PHP application

I have written a PHP application using Windows and XAMPP. I've been trying to run it on Ubuntu 10.10 with Lighttpd 1.4.26. Parts of the application work fine, but whenever I try to log in, I get a 500 ...
James's user avatar
  • 153
2 votes
0 answers
890 views

lighttpd + FastCGI + Mono not working with evhost enabled

I've started the migration of a Windows VPS to linode.com, choosing lighttpd over nginx and apache to host some sites built on asp.net mvc, and I'm stuck with what I think is a "document-root" ...
rodrigoi's user avatar
2 votes
1 answer
476 views

lighttpd and mod_proxy with PHP

I am trying to create a rather complex setup using a combination of lighttpd, some custom Ruby proxies, rails/ramaze (running on Thin), and PHP. Currently it is setup like this: A browser issues the ...
user avatar
0 votes
2 answers
938 views

Lighttpd: requesting local URLs via PHP

I have a webserver which serves content for a site, let's call it "domain.com". On that site, I have several PHP scripts that serve content. When someone browses to that site, everything works. If I ...
Mojah's user avatar
  • 876
1 vote
1 answer
2k views

Can not restart lighttpd? Receiving strange errors with regards to fcgi?

I received the following error when I tried to restart lighttpd. I'm running a rails application, and when I deploy a new version of the site I usually do /etc/init.d/lighttpd restart This used to ...
Janak's user avatar
  • 264
2 votes
1 answer
6k views

How can I debug what's causing lighttpd errors with fastcgi?

I tried enabling mod_fastcgi in my lighttpd server (running on Ubuntu), with the following config (straight from the example in conf-available): fastcgi.server = ( ".php" => (( "...
Chris B.'s user avatar
  • 337
0 votes
1 answer
204 views

lighttpd not reliable

I have a lighttpd running which serves a django-based webservice. It was running well for some months, but from today on, it returns a 410 sometimes, and sometimes fails silently. To test, I make a ...
schneck's user avatar
  • 155
13 votes
2 answers
59k views

How to enable error log in lighttpd properly?

I have a Centos 5 system with Lighttpd and fastcgi enabled. It does log access but does not log errors. I have Internal Server Error 500 and no info in log and when I try to open not -existing file ...
Tom Smykowski's user avatar
6 votes
2 answers
13k views

How to diagnose Internal Server error on Lighttpd?

I have Lighttpd on Centos 5 with Fcgi and Memcached. Periodically, once per week or two i get internal server error 500 and i must manually restart lighttpd to get it to work again. In my lighttpd ...
Tom Smykowski's user avatar
1 vote
1 answer
1k views

lighttpd, ngingx, fastcgi, static content, What are they, and when do you need them

i am working on an web application that requires the page to be updated every second. You can think of a websites with stocks where the data has to be updated real time. Background For this real ...
Saif Bechan's user avatar
1 vote
2 answers
15k views

How to configure fastcgi to work with ligttpd in ubuntu

I am able to run lighttpd on ubuntu 9.10. But when i tried to setup fastcgi with lighttpd by putting this in the ligttpd.conf file: #### fastcgi module fastcgi.server = ( "/fastcgi_scripts/" => ...
michael's user avatar
  • 23
3 votes
1 answer
3k views

How to configure fastcgi with lighttpd

I am trying to configure FastCgi with ligttpd server. I was able to run vanilla lighttpd like this: ./lighttpd -f lighttpd.conf And then I compile/install the source of fastcgi, and I add the ...
user avatar
1 vote
1 answer
2k views

Lighttpd wont restart due to an fastcgi.server error

Here is what comes up when I try to restart lighttpd user:/# /etc/init.d/lighttpd restart Stopping web server: lighttpd. Starting web server: lighttpdDuplicate config variable in conditional 0 ...
Mint's user avatar
  • 476
1 vote
4 answers
2k views

How to scale beyond 150 page views per minute?

I have a Facebook app written in PHP. It has 150 page views per minute and will have up to 300 page views per minute till end of this year. While getting more PV I start to have problems with ...
Tom Smykowski's user avatar
5 votes
1 answer
4k views

Where to set "PHP_FCGI_MAX_REQUESTS" (lighttpd)

I want to setup the max requests to keep my system RAM from filling up when there is a memory leak. But I dont know where it is.
user avatar
2 votes
2 answers
635 views

Apache2 and Lighttpd on the same machine: how to share php APC?

I have a Debian machine where I use both apache2 (with mod_proxy) and Lighttpd (for a long-polling service and static contents). Both apache and lighttpd run php5, with APC. Lighttp use FastCGI for ...
Strae's user avatar
  • 467
1 vote
1 answer
147 views

Getting waaay too many "Spawning Local" fastcgi messages

I've got Lighttpd running 7 Python apps via fastcgi on an Ubuntu server. I turned on fastcgi debugging in the Lighttpd configuration and noticed something very weird in the logs: Normally, when you ...
Gabriel Hurley's user avatar
4 votes
2 answers
3k views

Better webserver performance for Python Django: Apache mod_wsgi or Lighttpd fastcgi

I am currently running a high-traffic python/django website using Apache and mod_wsgi. I'm hoping that there's a faster webserver configuration out there, and I've heard a fair number of ...
BrainCore's user avatar
  • 161
5 votes
6 answers
19k views

Lighttpd cannot create php-fastcgi.socket

I have installed FastCGI using yum, and edited my lighttpd.conf, but when restarting the server I receive this error. 2009-06-24 12:44:43: (log.c.97) server started 2009-06-24 12:44:43: (mod_fastcgi....
James's user avatar
  • 171
3 votes
1 answer
2k views

Lighttpd big uploads memory consumption

Consider the following scenario: I am running lighttpd-1.4.19 and I am handling big uploads (hundreds of MBs but less than 1GB) through it. Server is running on Ubuntu 8.04 LTS. Files are ...
lpfavreau's user avatar
  • 439