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.

I am attempting to put WSGI (python) on a WAMP server (Apache 2.2.21, Python 2.7, WAMP 2.2a). Unfortunately, when i add just a simple directory directive and restart, Apache won't start. here is the code:

LoadModule wsgi_module modules/mod_wsgi.so

<Directory “C:/wamp/www/python”>
#Options ExecCGI
#AddHandler wsgi-script .py
#Order allow,deny
#Allow from all
</Directory>

If I comment out the directory tags, like this:

LoadModule wsgi_module modules/mod_wsgi.so

#<Directory “C:/wamp/www/python”>
#Options ExecCGI
#AddHandler wsgi-script .py
#Order allow,deny
#Allow from all
#</Directory>

It starts. Why won't this work (it also doesn't work with everything uncommented)? I followed all of the directions on this tutorial. Other than the changes in the code snippets, I have changed nothing in httpd.conf, other than including the file that contains the code snippet. I did that with:

Include conf/extra/changes.conf

on the very last line.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Don't write your configs in MS Word or Wordpad; your quotes are broken.

Change:

<Directory “C:/wamp/www/python”>

to:

<Directory "C:/wamp/www/python">

There's also a space in your AddHandler filename, you'll want to fix that too in order to get the whole thing working.

share|improve this answer
    
hmm... i wrote it in plain old notepad... that fixed it. TY. –  invisible bob Nov 18 '11 at 22:22
    
@invisiblebob Oh, it's actually wrong in the tutorial that you linked - that would be the issue, not the text editor that you used. I guess the author made that mistake, instead! –  Shane Madden Nov 18 '11 at 22:27

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.