Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Provided that on the server I have:

  • mod_wsgi loaded and enabled
  • all-powerful htaccess,

can I use mod_wsgi without the need to edit the global apache config files? I don't have administrative privileges on the server.

With modpython is was possible to do everything from the root folder's htaccess.

If the answer is no, as the QuickConfigurationGuide seems to suggest, what is the best thing I can ask to my system administrator to do so that they can edit the configuration once and never talk to me again? Consider a multi-user system such as what you find in shared hosting or a University's user pages, for example.

I'm trying to deploy a framework like django, cherry py or web.py, but I don't think that should make a difference.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Read:

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

You can use AddHandler for wsgi-script.

That alone is as dangerous as it was in mod_python because you are running stuff in the main Apache child worker processes and any system administrator who has any level of paranoia shouldn't allow that on a shared system.

The system administrator should at least set up a mod_wsgi daemon process group for you and force anything you do in your directory to run in that separate daemon process group.

So presuming things are somewhere under your home directory, they should use something like:

WSGIDaemonProcess gozzilli user=gozzilli

<Directory /home/gozzilli>
WSGIProcessGroup gozzilli
</Directory>
share|improve this answer
    
But would they have to do this for each user? –  gozzilli May 17 '12 at 11:32
    
Yes. There is no way to have dynamic daemon process groups created on demand at this stage. –  Graham Dumpleton May 18 '12 at 2:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.