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 8014899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:05:12+00:00 2026-06-04T20:05:12+00:00

I use Apache in Embedded mode as my production server. whenever I make some

  • 0

I use Apache in Embedded mode as my production server.

whenever I make some modifications to my django core files (urls.py, settings.py, views.py, etc), I simply touch project.wsgi file and changes appear on the webpage instantly. Sometimes it works.

However sometimes it doesn’t. Apache just hangs. It cannot serve requests and needs a restart (giving the users for 1-2 seconds an “Internal Server Error” message). Then I need to restart (restart, actually doesn’t work too. It needs to stop and start again).

I am pasting some code from my httpd.conf

MaxSpareThreads 3
MinSpareThreads 1
ServerLimit 1
SetEnvIf X-Forwarded-SSL on HTTPS=1
ThreadsPerChild 5
WSGIDaemonProcess myproject processes=4 threads=12 python-path=[...]
WSGIProcessGroup myproject
WSGIRestrictEmbedded On

Why is that? Is it because Apache sometime it uses all processes at the same time and cannot reload core files? (this is what ‘touch’ should do, right?)

EDIT: I am sorry. Apache runs in embedded mode. My mistake. I updated the question.

EDIT2: Included WSGIProcessGroup line

  • 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-06-04T20:05:14+00:00Added an answer on June 4, 2026 at 8:05 pm

    Touching the WSGI script file doesn’t do anything in embedded mode, so not surprising it doesn’t work all the time. When it appears to, it is just that the request got handled by a new Apache process that hadn’t handled requests before.

    For touching the WSGI script file to work you need to use daemon mode. Your configuration is half broken though. You have define WSGIDaemonProcess for daemon mode, but then aren’t delegating the application to run under that daemon process group using WSGIProcessGroup.

    Go read:

    http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode

    http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide#Delegation_To_Daemon_Process

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

Sidebar

Related Questions

My server guy wants to use apache, and also he wants to program a
Can I use recaptcha with apache wicket 1.5.3? Is there some good example?
I use play to develop my project and embedded netty3 as my application server
I'm trying to use embedded ActiveMQ broker for unit testing, as explained here: http://activemq.apache.org/how-to-unit-test-jms-code.html
I use Apache's DefaultHttpClient() with the execute(HttpPost post) method to make a http POST.
We have several applications that use Apache HTTPClient 3 to make HTTP requests. Recently
I have some Java projects that use Apache Commons Configuration and they get deployed
I have some Java projects that use Apache Commons Configuration and they get deployed
We use Apache as a reverse proxy server. This has been working well, but
I use Apache Commons FileUpload to receive uploaded files in a Servlet, as described

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.