I followed this guide and managed to make Python with a Django installation work perfectly, but it seems to have rendered all the locally hosted PHP sites inaccessible returning a 404 error.
httpd.conf
LoadModule wsgi_module modules/mod_wsgi.so #This is placed right after the rule for <Directory "f:/WAMP/www/"> <Directory "f:/WAMP/www/python"> Options ExecCGI AddHandler wsgi-script .py Order allow,deny Allow from all </Directory> #This is placed at the end of the file <IfModule ssl_module> SSLRandomSeed startup builtin SSLRandomSeed connect builtin </IfModule> Include "f:/WAMP/alias/*" Include "F:/WAMP/www/python/sandbox/apache/apache_django_wsgi.conf"
apache_django_wsgi.conf
Alias /python/images/ "F:/WAMP/www/python/sandbox/images" <Directory "F:/WAMP/www/python/sandbox/images"> Order allow,deny Allow from all </Directory> WSGIScriptAlias /python "F:/WAMP/www/python/sandbox/apache/django.wsgi" <Directory "F:/WAMP/www/python/sandbox/apache"> Allow from all </Directory> <VirtualHost *:80> DocumentRoot f:/WAMP/www/python/sandbox/ ServerName 127.0.0.1 </VirtualHost>
django.wsgi
import os, sys sys.path.append('F:/WAMP/www/python/sandbox') os.environ['DJANGO_SETTINGS_MODULE'] = 'sandbox.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
PHP only renders when I comment out the lastline from httpd.conf.