Now I know that it is always hard to comment on specifics but I have just discovered something very strange on my server.... and could someone please help...
I am running Django on Textdrive which requires Lightpd. I went through the setup... and boy that was difficult, so many config files and calls but eventually I got it running...But my server was really slow... I then tweaked my lighttpd.conf file and it all fell over... I was panicking... but then noticed people were still accessing my server... what? how? So.. what I have now discovered is that, because of an Apache directive to map / onto /my_port_number... ACTUALLY, lighttpd isn't serving the pages at all... apache is... and my django install is running in development mode!!!!!!! (I think)... I'd followed the Lighttp The Painless Way, http:// manuals.textdrive.com/read/chapter/62 , and somewhere, somehow I've messed it up... Could someone explain how the hell the django-fcgi.py, main.fcgi, lighttpd.conf, apache and django work together.... or even better help me... I had created some scripts to try to a. start the django-fcgi.py stuff b. start lighttpd c. start django... But they fail at b... giving me... [EMAIL PROTECTED] 2006-11-08 11:07:16: (mod_fastcgi.c.1048) the fastcgi-backend /home/tomsmith/domains/burningahole.co.uk/web/public/ django-fcgi.py failed to start: 2006-11-08 11:07:16: (mod_fastcgi.c.1052) child exited with status 0 / home/tomsmith/domains/burningahole.co.uk/web/public/django-fcgi.py 2006-11-08 11:07:16: (mod_fastcgi.c.1055) if you try do run PHP as FastCGI backend make sure you use the FastCGI enabled version. You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT (cgi) NOR (cli) For more information check http://www.lighttpd.net/documentation/ fastcgi.html#preparing-php-as-a-fastcgi-program 2006-11-08 11:07:16: (mod_fastcgi.c.1060) If this is PHP on Gentoo add fastcgi to the USE flags 2006-11-08 11:07:16: (mod_fastcgi.c.1356) [ERROR]: spawning fcgi failed. 2006-11-08 11:07:16: (server.c.834) Configuration of plugins failed. Going down. ... but at some point it DID work (even if it wasn't actually responsible for serving the files) Any advice gratefully received... SHOULD my server.document-root be set to my django instance, with port number? rather than.../home/tomsmith/domains/burningahole.co.uk/ web/public/ tom p.s my scripts were... python /users/home/tomsmith/domains/burningahole.co.uk/web/public/ django-fcgi.py --projects=/users/home/tomsmith/domains/ burningahole.co.uk/bah/ --settings=bah.settings --socket=/users/home/tomsmith/domains/burningahole.co.uk/tmp/ django.socket --daemon /usr/local/sbin/lighttpd -f /home/tomsmith/domains/burningahole.co.uk/ lighttpd/lighttpd.conf nohup python /users/home/tomsmith/domains/burningahole.co.uk/bah/ manage.py runserver www.burningahole.com:port_number & --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---