2011-11-02, 10:30
HarryRosen Wrote:damn I still can't get it to load properly.
I think i did everything right
all applications installed apache2, mod_wsgi python and all the setup tools
made my maraschino.wsgi that looks like this
import sys
sys.path.insert(0, "/var/www/maraschino")
from maraschino import app as application
renamed the settings.py
created the file in /etc/apache2/sites-available called maraschino
that looks like this
<VirtualHost *>
ServerName maraschino
WSGIScriptAlias / /var/www/maraschino/maraschino.wsgi
<Directory /var/www/maraschino>
WSGIProcessGroup maraschino
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
then I ran sudo a2ensite maraschino
then sudo /etc/init.d/apache2 restart
only error I get is
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue Nov 01 21:46:10 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[Tue Nov 01 21:46:11 2011] [warn] NameVirtualHost *:80 has no VirtualHosts
[ OK ]
but don't think that is a problem, am I missing something else?
when i goto http://192.168.1.146 which is my xbmc machine i get nothing
Please help Thanks
A couple of things to try.
First, in your wsgi file, try "from htpcfrontend import app as application" (as the .py file is still called htpcfrontend, I didn't want to break people's installations further).
Second, in your browser, try entering the local IP of the webserver (e.g. 192.168.0.3). To find it out type "ifconfig" in a terminal on the machine. If the page loads successfully then you'll need to set up port forwarding to view the site on your WAN IP.