On Fri, 03 Mar 2006 01:18:42 -0000 "Bryant" <[EMAIL PROTECTED]> wrote:
> > I posted once, earlier, about problems I've been having getting Django > to run on a basic Dreamhost account. I've followed the instructions at > http://wiki.dreamhost.com/index.php/Django to the letter, and Django > is running just fine, from a command line. FCGI is working - my > hello.fcgi correctly responds with it cheery "Hello World!" Something > in the middle just isn't happening, though - every time that I request > django.fcgi, django.fcgi/admin, /admin (when I've got my .htaccess > file turned on), etc. I get the following in my error log: > > FastCGI: comm with (dynamic) server > "/home/[username]/[domainname]/django.fcgi" aborted: (first read) idle > timeout (120 sec) > FastCGI: incomplete headers (0 bytes) received from server > "home/[username]/[domainname]/django.fcgi" Yup. Seen that. > > Pleas: > 1) Are there any users out there who got Django working on Dreamhost > who can share the secret? How do you make it work? Yes. First of all, fastcgi is a pain in the rear. Maybe it's just how Dreamhost has it setup, but it's quirky as anything. 1) When you're trying to get your app working, assuming you've followed the instructions precisely, check your permissions. I believe I have my file permissions all set to 755. And you probably want to make sure the user for that domain is the same user who owns your files. I suspect this probably isn't your problem since you are getting the incomplete header thing. That seems like it's at least attempting to execute. 2) Kill all of your fcgi processes and wait 15 minutes before trying again. This seems to have been the majority of my problem. I think Dreamhost has some fastcgi process monitor setup to not allow fastcgi processes to die and spawn back too quickly. Also, sometimes after you get the incomplete header, if you make the request again, it just magically works. > 2) Since Dreamhost supports FCGI "only for use with Ruby on Rails," > should they be on the list > (http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts) of > Django-supporting hosts? Yes, because Django will work, but I don't think the official policy of Dreamhost is to support Django apps like it will Dreamhost. >I chose them because they appeared here on > the list and fit my (admittedly pitiful) student budget... Hee hee. Likewise, here, only I'm not a student. > 3) Please forgive my creation of yet another newbie Dreamhost post if > you're not involved. I just want to be one of the cool kids! > I'm starting to think if you want to be one of the cool kids, you need to find hosting elsewhere. I've been moderately unhappy at times with my Dreamhost account. I'll have to do some soul-searching when my year is up as to whether I want to renew with them. Hope this has been of even a small amount of value. - jmj --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---