Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7704211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:38:06+00:00 2026-05-31T23:38:06+00:00

I have recently deployed an app to a shared host (webfaction), and for no

  • 0

I have recently deployed an app to a shared host (webfaction), and for no apparent reason, my site will not load at all (it worked until today).

It is a django app, but the django.log is not even created; the only clue is that in one of the logs, I get the error message: “Premature end of script headers”, identifying my wsgi file as the source.

I’ve tried to add logging to my wsgi file, but I can’t find any log created for it. Is there any recommended way to debug this error? I am on the point of tearing my hair out.

My WSGI file:

import os
import sys

from django.core.handlers.wsgi import WSGIHandler

import logging

logger = logging.getLogger(__name__)


os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
os.environ['CELERY_LOADER'] = 'django'

virtenv = os.path.expanduser("~/webapps/django/oneclickcosvirt/")
activate_this = virtenv + "bin/activate_this.py"
execfile(activate_this, dict(__file__=activate_this))

# if 'VIRTUAL_ENV' not in os.environ:
#    os.environ['VIRTUAL_ENV'] = virtenv

sys.path.append(os.path.dirname(virtenv+'oneclickcos/'))

logger.debug('About to run WSGIHandler')

try:
        application = WSGIHandler()
except (Exception,), e:
       logger.debug('Exception starting wsgihandler: %s' % e)
       raise e
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:38:07+00:00Added an answer on May 31, 2026 at 11:38 pm

    It’s hard to define exact reason of error without webserver log:

    Probable solutions:
    http://code.google.com/p/modwsgi/wiki/InstallationIssues#Multiple_Python_Versions

    And d
    http://code.google.com/p/modwsgi/wiki/FrequentlyAskedQuestions

    Q: Why am I seeing the error message ‘premature end of script headers’ in the Apache error logs.

    A: If using daemon mode, this is a symptom of the mod_wsgi daemon process crashing when handling a request. You would probably also see the message ‘segmentation fault’. See answer for question about ‘segmentation fault’ above.

    This error message can also occur where you haven’t configured Apache correctly and your WSGI script file is being executed as a CGI script instead.

    Hope it will help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Ruby on Rails app that I've recently deployed to a remote
I have recently installed .net 3.5 SP1. When I deployed a compiled web site
I'm pretty new to ROR. I've recently deployed an app on heroku and have
Have a working rails app on development but issue deployed. Was recently working but
I have recently started seeing user agents like Java/1.6.0_14 (and variations) on my site
I recently bought some webspace with dailyrazor.com. I have deployed an application I have
I recently read that php applications can be deployed on Google App Engine using
I have recently deployed my web role to Windows Azure. In the properties of
I have a little project with some jsp deployed on an Tomcat 5.5. Recently
I am working on an old VB6 app and have recently added the Siemens

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.