Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango/mod_wsgi WAMP with PHP
    primarykey
    data
    text
    <p>I followed <a href="https://stackoverflow.com/questions/11602653/installing-mod-wsgi-on-wamp-server-running-on-windows-7/11602894?noredirect=1#comment30631187_11602894">this guide</a> 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.</p> <p><strong>httpd.conf</strong></p> <pre><code>LoadModule wsgi_module modules/mod_wsgi.so #This is placed right after the rule for &lt;Directory "f:/WAMP/www/"&gt; &lt;Directory "f:/WAMP/www/python"&gt; Options ExecCGI AddHandler wsgi-script .py Order allow,deny Allow from all &lt;/Directory&gt; #This is placed at the end of the file &lt;IfModule ssl_module&gt; SSLRandomSeed startup builtin SSLRandomSeed connect builtin &lt;/IfModule&gt; Include "f:/WAMP/alias/*" Include "F:/WAMP/www/python/sandbox/apache/apache_django_wsgi.conf" </code></pre> <p><strong>apache_django_wsgi.conf</strong></p> <pre><code>Alias /python/images/ "F:/WAMP/www/python/sandbox/images" &lt;Directory "F:/WAMP/www/python/sandbox/images"&gt; Order allow,deny Allow from all &lt;/Directory&gt; WSGIScriptAlias /python "F:/WAMP/www/python/sandbox/apache/django.wsgi" &lt;Directory "F:/WAMP/www/python/sandbox/apache"&gt; Allow from all &lt;/Directory&gt; &lt;VirtualHost *:80&gt; DocumentRoot f:/WAMP/www/python/sandbox/ ServerName 127.0.0.1 &lt;/VirtualHost&gt; </code></pre> <p><strong>django.wsgi</strong></p> <pre><code>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() </code></pre> <p>PHP only renders when I comment out the lastline from httpd.conf.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload