problem about lighttpd-Collection of common programming errors


  • T. Brian Jones
    php syntax-error runtime-error fastcgi lighttpd
    I’m running a Lighttpd webserver using FastCGI and the webserver does not output PHP Parse Errors.My php.ini file has the following settings:error_reporting = E_ALL display_errors = Off display_startup_errors = Off log_errors = On html_errors = OnI enable error output for development in my PHP scripts like this ( with redundancy for other environments ):error_reporting( E_ALL ); ini_set( ‘display_errors’, 1 ); ini_set( ‘html_errors’, ‘On’ );Most errors output fine. Parse Errors do not. Below i

  • Pradeep Gupta
    lighttpd
    I am using Debian 7 based host and configure PHP-FPM and lighttpd along with rutorrent on this host. I wants to use user directories instead of default /var/www path.I already run following command to activate user directories.But unable to use [email protected]# lighty-enable-mod userdirOne thing more what should write in following line of /etc/lighttpd/conf-available/10-userdir.conf file; so that www://x.x.x.x./project should point to /home/user/www/project? I am also using authentication here

  • user
    linux apache2 nginx vps lighttpd
    I want an alternative for apache, lighthttpd has memory leaks problems so i can’t go for it, i keep reading that nginx is good for static content but is it good for php-mysql dynamic video sharing content?I have read also that a good option is to run apache and nginx together for dynamic content, but i don’t want to use apache at all – apache uses so much ram, that’s why i want to use nginx in the first place!and my last question, is lighthttpd still suffering from memory leaks problems or did t

  • savruk
    python lighttpd ifconfig browser busybox
    Problem is I cannot run “ifconfig” or similar commands via browser.Environment: Programming language : python Server : lighttpd(CGI) , running on busybox. Well machine is really small and so I am really restricted. Tried techniques:chown every script to root. But there is no differences.Why?Because lighttpd runs under another user, I mean not under root. As it is not root, when I try to run script from browser it always calls the python file with its uid. So it makes it impossible to run “ifcon

  • tztxf
    lighttpd mod-proxy
    this is weird, i use mod_proxy_backend_http to forward request to my backend http-server, when my backend server crashed for some reason, lighttpd response 200 with content-length=0 to the client.is this a bug or something? or if there is some configration options for this feature?

  • 2013Asker
    lighttpd fcgi
    This is the first time I install lighttpd and I’m having a hard time configuring fcgi to work on /var/www/site/I keep getting 403 Forbidden and so far have only found guides specific to php or that use workarounds.What is the proper way to get fastcgi working on another folder?My configuration files:lighttpd.confserver.modules = (“mod_access”,”mod_alias”,”mod_compress”,”mod_redirect”,#”mod_rewrite”, )server.document-root = “/var/www” server.upload-dirs = ( “/var/cache/lighttpd/up

  • Larry
    windows php lighttpd fastcgi
    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 I start it again. I would like to configure lighttpd to manage PHP instances so it can restart PHP for me. I modified my lighttpd config by adding bin-path.server.modules = (“mod_access”,”mod_accesslog”,”mod_rewrite”,”mod_redirect”,”mod_evhost”,”mod_fastcgi”,”mod_status” )fastcgi.server = ( “.php” =&

  • Wilshire
    apache2 php nginx wordpress lighttpd
    I am going to be live blogging from an event and expect huge spikes in traffic. I am currently using apache with modphp and it died last year under heavy traffic and I don’t want it to happen again.I am thinking of setting up a separate VPS for this blog running on wordpress.What http server should I use? apache, lighttpd, or nginx?Which will perform the best under heavy load?The content will be very dynamic with AJAX updates.

  • ivoba
    apache2 lighttpd php5
    I am running apache2 and lighthttp paralell on the same machine. Both use php as fast_cgi and that works fine, until i enable APC. Then lighty fails with: PHP Startup: apc_mmap: mmap failed.andthe fastcgi-backend /usr/bin/php5-cgi failed to start: 2011-06-06 14:50:12: (mod_fastcgi.c.1061) terminated by signal: 11 2011-06-06 14:50:12: (mod_fastcgi.c.1066) to be exact: it segfaulted, crashed, died, … you get the idea. 2011-06-06 14:50:12: (mod_fastcgi.c.1068) If this is PHP, try removing the b

  • James
    php lighttpd fastcgi 500-error
    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 – Internal Server Error page.The only thing that shows up in /var/log/lighttpd/error.log is 2011-02-25 13:43:13: (mod_fastcgi.c.2582) unexpected end-of-file (perhaps the fastcgi process died): pid: 1169 socket: unix:/tmp/php.socket-0 2011-02-25 13:43:13: (mod_fastcgi.c.3367) response not received,

  • womble
    nginx performance lighttpd
    We wanted to switch all our servers from lighttpd to nginx but while the Web server migration went fine, the static files server migration was disastrous.We ended up with up to 10 seconds of latency for loading pictures, using this config with nginx:main config: https://gist.github.com/1089283 on site example: https://gist.github.com/1089276There are 4 sites, with about 120k visitors/day that consume massively streamed videos and picures.A hint we had was that after rebooting nginx, loading pict

  • mgorven
    php lighttpd
    I’m using Lighttpd / PHP-CGI on a Windows XP machine.I was using the normal CGI interface which is very stable, but I tried FastCGI and I love the speed boost. However, even under light load, the PHP-CGI daemon will just crash after an hour or so.I’ve taken care to eliminate all warnings and notices that get pushed to the error log. My server has about 1500MB excess RAM when it crashes, so that’s not the issue.Just by visiting the site and holding down F5 for about 30 seconds will crash PHP-CGI

  • Joe
    python django logging crash lighttpd
    I’m running Django on Linux using fcgi and Lighttpd. Every now and again (about once a day) the server just dies. I’m using the latest stable release of Django, Python and Lighttpd.The only thing I can think of is that my program is opening a lot of files and executing a lot of external processes, but I’m fairly sure that side of things is watertight. Looking at the error and access logs, there’s nothing exceptional happening (i.e. load isn’t above normal). On those occasions where I have had ex

  • Patrick
    lighttpd
    What’s the difference betweensudo /etc/init.d/lighttpd restartand/etc/init.d/lighttpd force-reload?

  • Paul
    webserver lighttpd
    I am trying to run lighttpd on a switch. I installed it with buildroot and with the default config I can see the test page generated from index.html.However I need to use another config provided to me with third party software, softcore and now lighttpd wont work. Here is the config that works:http://pastebin.com/meqbTawnHowever they give me some .so files and a config to use I use this command: lighttpd -f /usr/sbin/lighttpd.conf and I can access the webpage.and this is the config provided. ht

  • Atm
    php memcached fastcgi lighttpd php-extension
    I am using the following:lighttpd/1.4.31 (ssl) lighttpd-fastcgi php 5.3.16 php-pecl-memcache CentOSI have memcached service running. phpinfo() reports that memcache extension is installed. My application is using memcache extension successfully, servicing thousands of queries. This is how I am initialising memcache:$memcache = new Memcache; $memcache->connect(‘localhost’, 11211);However, after reading error log, I notice that right after I restarted lighttpd, and then once in a while log g

  • Henrik Skogmo
    php ldap lighttpd arch-linux
    I’m experiencing some difficulties enabling LDAP in an Archlinux environment with Lighttpd (lighty) and PHP. I have downloaded and installed the php-ldap module, enabled it in php.ini and the phpinfo() shows this under “Configure command”‘–with-ldap=shared’ ‘–with-ldap-sasl’ Which for me indicates that it is enabled. But when I use a LDAP command, such as ldap_connect(), it throws an “undefined function” error back. I did kill the Lighttpd process and start it again before testing.I have also

  • H4Z3Y
    configuration lighttpd linux
    gah, I just noticed, the lighttpd config is somehow corrupted. It was literally working fine 3 hours ago.Starting lighttpd: Undefined config variable: var.home_dir 2010-08-29 17:29:31: (configfile.c.912) source: find /etc/lighttpd/conf.d -maxdepth 1 -name ‘*.conf’ -exec cat {} \; line: 77 pos: 49 parser failed somehow near here: + 2010-08-29 17:29:31: (configfile.c.912) source: /etc/lighttpd/lighttpd.conf line: 329 pos: 1 parser failed somehow near here: (EOL)[FAILED]any ideas? the line in quest

  • Sk8erPeter
    post get lighttpd php
    I installed lighttpd web server on my Windows computer and I have a problem: in PHP files no $_GET and $_POST variables are defined.For example I have this simple script (tmp.php):<?phpecho “x: ‘” . $_GET [‘x’] . “‘<br />”;?>When I go to the address: http://localhost/tmp.php?x=123I get this error message:Notice: Undefined index: x in /srv/www/htdocs/tmp.php on line 3 x: ”Whilst when I put the same file on public hosting I get:x: ‘123’Also the php command:empty ($_GET)returns true.Th

  • Dio
    php sqlite ubuntu lighttpd
    Okay, so this is my first server I’m setting up. I have a system running Ubuntu 11.10. I’m running Lighttpd and have PHP set up, but I want PHP and SQLite to work together. I installed them using: sudo apt-get install lighttpd sudo apt-get install php5-cgi sudo apt-get install sqlite sudo apt-get install php5-sqlitePHP works fine, but any script with a sqlite command in it just returns a blank page. I turned on php error messages and ran this script: <?php echo sqlite_libversion(); echo “<

  • genjix
    php c++ zend-framework swig lighttpd
    I made a custom PHP module with C++ and Swig. It works from the command line, but not with my webserver:php index.php php-cgi index.phpBoth of those work fine.I’m using lighttpd and php. I didn’t configure these in any special way. I just installed them using sudo apt-get install.Unfortunately if I make a webpage I get this:Fatal error: Call to undefined function minikey_to_wif() in /var/www/index.php on line 6 Calling function_exists(“minikey_to_wif”) returns False too.The phpinfo() does not sh

  • MikeHoss
    django lighttpd
    I’m trying to get a Django app running with Lighttpd. I followed the directions here:http://ca.rroll.net/2009/07/12/deploying-your-django-app-on-joyent-shared-accelerators/But when I go to the URL, it downloads the script instead of executing it. It seems like a MIME problem to me, but I have no idea what is missing. Of course, it could be something totally different.

  • Sam
    redirect lighttpd
    So I’m trying to do this redirect under lighttpd, but for whatever reason I just can’t get it to work. I’ve tried looking a debug logs and all.Say I have entered http://mydomain.com/http://test.com I would like lighttpd to redirect it to http://mydomain.com/test.com.Here is my conf, as far as I can tell it should work. It’s like lighttpd is just ignoring the redirect rule (the other one’s are working though).The redirect is the last one at the bottom.# Debian lighttpd configuration file ########

  • lal
    tomcat lighttpd mod-proxy
    i am trying to set up an server with lighttpd and tomcat my conf is belowserver.modules = (“mod_access”,”mod_alias”,”mod_accesslog”,”mod_compress””mod_proxy”,”mod_fastcgi”, # “mod_rewrite”, # “mod_redirect”, # “mod_evhost”, # “mod_usertrack”, # “mod_rrdtool”, # “mod_webdav”, # “mod_expire”, # “mod_flv_streaming”, # “mod_evasive” )## a static document-root, for virtual-hosting take look at the #

  • mazzzzz
    linux lighttpd fastcgi
    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 printed on the crash. It seems to only be a problem with php pages; if I connect to an html page, while the fastcgi module is on, the server doesn’t crash. Also, I get a Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error. when I connect to a php page.The conf files. lighttpd.conf var.log_root = “

  • Paul
    php soap lighttpd
    I am using buildroot to build an image and put it on a switch. I enabled lighttpd/soap/php but I get an error when I try to run the web interface. A normal php test file works find. I had this web interface working fine on another system, I know the code is fine. SO it is a configuration issue.Here is the error I receive:Warning: SoapClient::SoapClient(http://127.0.0.1:18083/SoftCoreSOAP.wsdl) [soapclient.soapclient]: failed to open stream: Connection refused in /jffs2/usbflash0/ran/www/includes