Django + fastCGI + bluehost

388 views
Skip to first unread message

Carlos Yoder

unread,
Apr 7, 2006, 5:16:29 AM4/7/06
to django...@googlegroups.com
Hey there, FP and all that :-)

Does anyone of you have experience with running Django on Bluehost?

They don't support mod_python, but according to their support people,
they do FastCGI. I include their reply, to see if it helps:

----------------
We do not have mod_python installed, but we do have Fast CGI on all of
our servers. The following are a list of mods installed on our
servers which may differ slightly between versions:

Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8
mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635
mod_ssl/2.8.25 OpenSSL/0.9.7a PHP-CGI/0.1b
-----------------------------------------------------------------

Is there anything else I should ask, or this setup could run Django
successfully? Thanks a lot!

--
Carlos Yoder
carlos...@gmail.com

James

unread,
Apr 7, 2006, 12:04:24 PM4/7/06
to Django users
Carlos,

I have django running on my bluehost account with fcgi. The best notes
on how to get things running I have found are here:

http://wiki.dreamhost.com/index.php/Django

Bluehost is setup pretty much the same as dreamhost. I recommend
Bluehost for the price and support.

James

gabor

unread,
Apr 9, 2006, 6:05:59 PM4/9/06
to django...@googlegroups.com
James wrote:
> Carlos,
>
> I have django running on my bluehost account with fcgi. The best notes
> on how to get things running I have found are here:
>
> http://wiki.dreamhost.com/index.php/Django
>
> Bluehost is setup pretty much the same as dreamhost. I recommend
> Bluehost for the price and support.

hi, could i ask you some questions regarding bluehost:

- python version
- do they offer postgresql (form their webpage it seems so. just wanted
to make sure)
- do i have to buy at least an one-year subscription? can't i just pay
for the first month at the beginning? (it seems that you either buy a
12month subscription for 7.95$/month, or a 24month one for 6.95$/month)

thanks,
gabor

Carlos Yoder

unread,
Apr 10, 2006, 4:11:56 AM4/10/06
to django...@googlegroups.com
James wrote:

>> I have django running on my bluehost account with fcgi. The best
notes on how to get
>> things running I have found are here:
>>
>> http://wiki.dreamhost.com/index.php/Django
>>
>> Bluehost is setup pretty much the same as dreamhost. I recommend
>> Bluehost for the price and support.

Thanks for the tip! I'll be moving to Bluehost very soon, then.


Gabor wrote:

> hi, could i ask you some questions regarding bluehost:
>
> - python version
> - do they offer postgresql (form their webpage it seems so. just wanted
> to make sure)
> - do i have to buy at least an one-year subscription? can't i just pay
> for the first month at the beginning? (it seems that you either buy a
> 12month subscription for 7.95$/month, or a 24month one for 6.95$/month)
>
> thanks,
> gabor

I guess you'll have to ask Bluehost about that!


--
Carlos Yoder
carlos...@gmail.com

Rick

unread,
May 4, 2006, 2:39:55 AM5/4/06
to Django users
Hi James,

I'm hoping you have a bit of time to describe your success at
getting django to work on BlueHost, perhaps by describing the
differences between the DreamHost document and what you
had to do.

I've been trying to set up django on my new BlueHost account.
While I've gotten django to do the project and PostgreSQL table setup,
and I've gotten a simple hello.fcgi to work,
when I try the recomennded django.fcgi, I get a "string index out of
range"
deap in django. You can see the error I get by going to:
http://www.bestdealphonecards.com/django.fcgi

Just to describe my divergence from the DreamHost script:
1. "which svc" reports nothing, so I downloaded Django-0.91.tar.gz
and install it locally
2. "django-admin.py init" wouldn't run without psycopg.
So I built it from psycopg-1.1.20.tar.gz after creating a local
build of postgresql from postgresql-7.4.8.tar.gz
(the same version that BlueHost is running).

So now "django-admin.py init" works, but django.fcgi doesn't.

Can you shed any light on this?

Thanks,

Rick

ivo....@gmail.com

unread,
May 5, 2006, 4:31:36 PM5/5/06
to Django users
Hi,

I ave the exact same problem.
I have also setup mod_fastcgi on my home box and then fired up my site
locally. Got the same error.

Please help

Rick

unread,
May 5, 2006, 10:51:21 PM5/5/06
to Django users
Hi,

James Crasta, over at django-developers talks about a patch he wrote to
django 0.95 for making django work easily in a fastcgi environment.

See:
http://groups.google.com/group/django-developers/browse_thread/thread/eb7ddd45ec78883f/b3914435747e139c

He's intending to do a write up on it (hopefully soon).

Rick

ivo....@gmail.com

unread,
May 6, 2006, 9:51:33 AM5/6/06
to Django users
Hi,

Just to reply to Rick, I kind of succeeded in configuring django.
At least I access the admin interface for the tutorial application
(polls).
In summary:
- I followed the 'django on dreamhost' instructions
- Compiled in psycopg (not avail by default), used bluehost's porstgres
headers.
- The 'string out of range' error is gone once I set up the mod_rewrite
rules.

That's all

Rick

unread,
May 8, 2006, 1:51:31 AM5/8/06
to Django users
Thanks,

It turns out I had the mod_rewrite rules wrong.
I've also gotten rid of my python error.

How did you get svn working?

Rick

ivo....@gmail.com

unread,
May 13, 2006, 10:19:03 PM5/13/06
to Django users

No svn although I'm thinking in installing the binaries locally.

Saludos,
IvO

Reply all
Reply to author
Forward
0 new messages