I have a django website running with PIP and a virtual environment. To launch apache, I just navigate to my django app folder, and:
As I start apache from my shell, it is aware of the current environment (which is my app virtualenv).
However, for some reason, apache get restarted (I guess by a cron job or something) and then doesn't know about my app's virtual environment). I get 500 errors over and over because of python imports.
What does restart my apache instance and why ? How to make it aware of my virtual environment each time it starts ?
asked Sep 09 '12 at 10:04
There are various reasons why your Apache server may be restarted. For example, your processes might be getting killed for memory overusage. To check this see the Messages section in your control panel.
You can activate the virtual environment within your WSGI script. You can also check mod_wsgi's docs on using virtualenvs.
If you run into any troubles, please open a ticket, so we can take a look.
answered Sep 09 '12 at 10:19