Note that there are some explanatory texts on larger screens.

plurals
  1. POInstalling mod_wsgi into XAMPP on OSX Lion
    text
    copied!<p>I am trying to configure XAMPP 1.7.3 on OSX 10.7.2 Lion to use mod_wsgi 3.3. Here is what I am doing:</p> <ol> <li>Installed XAMPP for OSX 1.7.3 and the Developer Package. All is running well at this point.</li> <li>Downloaded and extracted <a href="http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz" rel="nofollow">http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz</a></li> <li><code>./configure</code></li> <li><code>make</code></li> <li><code>sudo make install</code></li> <li>This copies the compiled mod_wsgi.so file into the OSX apache, but I want it in XAMPP, so I copy: <code>sudo cp /usr/libexec/apache2/mod_wsgi.so /Applications/XAMPP/xamppfiles/modules/</code></li> <li>Add the module to the XAMPP httpd.conf <code>LoadModule wsgi_module modules/mod_wsgi.so</code></li> <li><p>Start XAMPP Apache, I get the following notice in the error_log:</p> <p><code>[notice] Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_wsgi/3.3 Python/2.7.1 PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations</code></p></li> </ol> <p>When I visit <a href="http://localhost" rel="nofollow">http://localhost</a>, i get this error (via Chrome): </p> <pre><code>`Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.` </code></pre> <p>and this error is printed to the error_log:</p> <pre><code> `[notice] child pid 22847 exit signal Bus error (10)` </code></pre> <p>I don't know how to troubleshoot this error or what I am missing. Any insight is appreciated!!</p> <p><strong>UPDATE</strong></p> <p>I found a blog <a href="http://www.mals.me/2011/10/running-django-with-xampp-on-os-x.html" rel="nofollow">here</a> that discusses using apache extensions module with this command:</p> <p><code>./configure --with-apxs=/Applications/XAMPP/xamppfiles/bin/apxs --with-python=/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7</code></p> <p>The configure looks good, but I get this compiler error:</p> <pre><code>/Applications/XAMPP/xamppfiles/bin/apxs -c -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE -Wc,'-arch i386' -Wc,'-arch ppc' mod_wsgi.c -Wl,-F/System/Library/Frameworks -framework Python -u _PyMac_Error /System/Library/Frameworks/ -arch i386 -arch ppc -ldl -framework CoreFoundation Use of assignment to $[ is deprecated at /Applications/XAMPP/xamppfiles/bin/apxs line 86. /Applications/XAMPP/xamppfiles/build/libtool --silent --mode=compile gcc -prefer-pic -I/Applications/XAMPP/xamppfiles/include -L/Applications/XAMPP/xamppfiles/lib -mmacosx-version-min=10.4 -arch i386 -arch ppc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/Applications/XAMPP/xamppfiles/include -I/Applications/XAMPP/xamppfiles/include -I/Applications/XAMPP/xamppfiles/include -I/Applications/XAMPP/xamppfiles/include -arch i386 -arch ppc -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -DENABLE_DTRACE -DMACOSX -DNDEBUG -DNDEBUG -DENABLE_DTRACE -c -o mod_wsgi.lo mod_wsgi.c &amp;&amp; touch mod_wsgi.slo llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory lipo: can't figure out the architecture type of: /var/tmp//cco5iCcm.out apxs:Error: Command failed with rc=65536 </code></pre>
 

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