Yet another installation question (on Godaddy)

7 views
Skip to first unread message

rich

unread,
Oct 9, 2006, 7:12:47 PM10/9/06
to Django users
I've walked through the "Running Django on a shared-hosting provider
with Apache" -- but apparently I don't catch on that fast. My
largest challenge is that I don't have SSH access. I've read a few
things here and there about creating a script to install it, but I'm
not sure what type of script or what goes in it.

Details:
Trying to setup on the root of my domain
GoDaddy Deluxe Linux plan
Apache (mod_python not available)
Python 2.4
FastCGI
MySQL

Here is what I've done:
Added to the bottom of .htaccess (just copied from tutorial):
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]

Created mysite.fcgi (just copied from tutorial):
#!/usr/bin/python
import sys, os

# Add a custom Python path.
sys.path.insert(0, "/home/user/python")

# Switch to the directory of your project. (Optional.)
# os.chdir("/home/user/myproject")

# Set the DJANGO_SETTINGS_MODULE environment variable.
os.environ['DJANGO_SETTINGS_MODULE'] = "myproject.settings"

from django.core.servers.fastcgi import runfastcgi
runfastcgi(method="threaded", daemonize="false")


...Now what?

I know I need flup. And I need to put the Django source on the server.
But *where* do I upload them to, and *how* do I install them (how do i
run the setup.py) without SSH?

Any help would be awesome.

Thanks guys.
-rich

julián

unread,
Oct 10, 2006, 5:32:41 AM10/10/06
to Django users
> I know I need flup. And I need to put the Django source on the server.
> But *where* do I upload them to, and *how* do I install them (how do i
> run the setup.py) without SSH?
>
> Any help would be awesome.
>
I don't know about godaddy deluxe but it seems you should do everything
using CGIs.

Copy the django source somewhere in your home. Write a CGI to run the
setup.py, like

#!/bin/sh
echo Content-type: text/html
echo
cd /path/to/django/source
/path/to/python setup.py install --prefix=/path/to/your/home/python
2>&1

The same to sync the db, etc...

Hope this helps (a little)
(in case you didn't pay 12 months in advance you have some
alternatives: http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts)

Reply all
Reply to author
Forward
0 new messages