Note that there are some explanatory texts on larger screens.

plurals
  1. POMagento multiple website installation throws error on one website of two
    text
    copied!<p>I'm running one Magento 1.7.0.2 installation for two websites. This is my Apache server config:</p> <pre><code>&lt;VirtualHost 99.99.99.99:80&gt; DocumentRoot /magento ServerName domain1.com ServerAlias domain2.com SetEnvIfNoCase Host domain1\.com MAGE_RUN_CODE=domain1 SetEnvIfNoCase Host domain2\.com MAGE_RUN_CODE=domain2 SetEnv MAGE_RUN_TYPE website &lt;/VirtualHost&gt; </code></pre> <p>I have tested this configuration, <code>$_SERVER['MAGE_RUN_CODE']</code> and <code>$_SERVER['MAGE_RUN_TYPE']</code> contain <code>domain1</code> or <code>domain2</code> and <code>website</code>.</p> <p>I have configured both websites in the Magento backend. Two websites with codes <code>domain1</code> and <code>domain2</code>.</p> <p>When I visit domain1.com, I get the proper Magento webshop. But when I visit domain2, I get a <code>HTTP 500 internal server error</code> response.</p> <p>The logs show absolutely nothing, the Apache log is clean, the PHP log is clean, <code>var/log/exception.log</code> is clean, <code>var/log/system.log</code> is clean and no reports are generated. Logging is enabled and other errors are reported.</p> <p>What have I tried to find the issue:</p> <ul> <li>Set PHP's <code>display_errors</code> to true, reduced the error reporting level and set Magento to developer mode: still no errors.</li> <li>Created a brand new website, store and view in the Magento backend for domain2: no change.</li> <li>Set domain2 as default website (and refreshed caches): no change.</li> <li>Created a separate VirtualHost for domain2.com: as expected no change.</li> </ul>
 

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