Note that there are some explanatory texts on larger screens.

plurals
  1. PODjango/mod_wsgi and PHP as Virtual Hosts on same Apache Server using MAMP
    primarykey
    data
    text
    <p><strong>UPDATE: My original question is below, but the code I posted with the question has been edited to the final working solution.</strong></p> <p>I am trying to run multiple sites on my MAMP development server. Some of the sites are wordpress sites that live in the htdocs in MAMP and some of the sites are django apps that live in a folder titled djangoprojects.</p> <p>I have been trying to implement the solutions from these stack questions:</p> <p><a href="https://stackoverflow.com/questions/1553165/multiple-django-sites-with-apache-mod-wsgi">multiple django sites with apache &amp; mod_wsgi</a></p> <p><a href="https://stackoverflow.com/questions/1020390/how-do-i-run-django-and-php-together-on-one-apache-server">How do I run Django and PHP together on one Apache server?</a></p> <p>but I have not been successful. I was able to run the django site on apache with the code you see in the first VirtualHost brackets (from the daemon process line onward) but then none of the php sites could be visited.</p> <p>Help is greatly appreciated. I am new with this and I can't work out the errors.</p> <p>Here is the code from my httpd.conf:</p> <p><strong>UPDATE: The code below works. Both the Django App and the PHP applications exist on the localhost server. The PHP related VirtualHost stuff was copied from further up in the MAMP httpd.conf file.</strong></p> <pre><code>&lt;VirtualHost *:80&gt; ServerName localhost:80 UseCanonicalName Off DocumentRoot "/Applications/MAMP/htdocs" &lt;Directory /&gt; Options Indexes FollowSymLinks AllowOverride None &lt;/Directory&gt; &lt;Directory "/Applications/MAMP/htdocs"&gt; Options All AllowOverride All Order allow,deny Allow from all &lt;/Directory&gt; WSGIDaemonProcess site1 display-name=%{GROUP} WSGIProcessGroup site1 Alias /media/ /Users/sequoia/djangoprojects/dynamics/media/ &lt;Directory /Users/sequoia/djangoprojects/dynamics/media&gt; Options ExecCGI Order deny,allow Allow from all &lt;/Directory&gt; WSGIScriptAlias /dynamics /Users/sequoia/djangoprojects/dynamics/apache/django.wsgi &lt;Directory /Users/sequoia/djangoprojects/dynamics/apache&gt; Order deny,allow Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    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