I've been trying to get MOD_WSGI working on Apache via XAMPP on my Mac OS X Snow Leopard all day today without any success. I've followed all the instructions, searched the internet for solutions, etc but no luck so far. Below are my exact steps and details. When I run localhost all I get is a white screen. When I remove "LoadModule wsgi_module modules/mod_wsgi.so
" from httpd.conf localhost runs as expected.
- Downloaded and installed Xcode.
- XAMPP is already installed and working.
- I Don't need to install Python as OS X already has Python 2.6 in 64-bit mode.
- Download and unpack mod_wsgi-2.6.tar.gz to desktop.
- Terminal "./configure --with-apxs=/Applications/XAMPP/xamppfiles/bin/apxs --with-python=/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6" (no errors)
- Terminal "make" (message "make: Nothing to be done for `all'.")
- Terminal "sudo make install" (no errors)
- Add to XAMPP's httpd.conf file:
LoadModule
wsgi_module modules/mod_wsgi.so
AddType text/html .py
WSGIScriptAlias /app-sample "/Applications/xampp/xamppfiles/htdocs/app-sample/main.py"
<Directory "/Applications/xampp/xamppfiles/htdocs/app-sample">
Order deny,allow
Allow from all
</Directory>
- Restart Apache via XAMPP
cannot open /Applications/xampp/xamppfiles/build/config_vars.mk: No such file or directory at /Applications/XAMPP/xamppfiles/bin/apxs line 218.
Any idea how this can be corrected? – user201788