I've got the same problem to configure my Shared Host on QHoster, using 
fastCGI. 

I didn't find a valid tutorial so far.

my config:
/home/username/
        |---- /public_html/.htaccess
        |                       /index.fcgi
        |-----/mydjangoVirtualEnv
        |-----/MyDjangoProject_SRC
                  |----manage.py
                  |----MyDjangoProject
                              |--settings.py

My .htaccess :

> AddHandler fcgi-script .fcgi
> RewriteEngine On
> RewriteCon %{REQUEST_FILENAME} !-f
> RewriteRule ^(.*)$ index.fcgi/$1 [QSA,L]
>

My index.fcgi:

> #!/home/username/djangoenv/bin/python
> import sys
> import os
>
> sys.path.insert(0, "/home/username/djangoenv/lib/python3.4/site-packages")
> sys.path.append("/home/username/MyDjangoProject_SRC/MyDjangoProject")
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'MyDjangoProject.settings'
>
> from django.core.servers.fastcgi import runfastcgi
> runfastcgi(method="threaded", daemonize="false")
>

When I go to my home page, I get a 500 error.
The log from cPanel only displays: 
MY_IP - - [13/Dec/2015:09:34:29 +0000] "GET / HTTP/1.0" 500 - "-" 
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 
Firefox/42.0"


Any help or even a little suggestions welcome! I can go nowhere from here 
after days of searching... 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0eb8e651-7be8-42a3-bbed-59a7a8187a24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to