Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Feb 17, 2011 6:42 am 
Offline
Newbie

Joined: Thu Feb 17, 2011 6:25 am
Posts: 2
Hi!

I am installing the Django (with mod_wsgi) on Debian 6. I followed the Django installation guide, but after restarting apache I got
Code:
Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
error.

When I try the address (lets say, foo.lv) in browser - i get error 500 (internal server error), but the last messages in apache error log are like this:
Code:
[Thu Feb 17 10:33:05 2011] [notice] caught SIGTERM, shutting down
[Thu Feb 17 10:33:06 2011] [notice] Apache/2.2.16 (Debian) mod_wsgi/3.3 Python/2.6.6 configured -- resuming normal operations


The file in /etc/apache2/sites-available/foo.lv looks exactly like the one in tutorial (with the correct folders).

My /etc/hosts looks like this:

Code:
127.0.0.1 localhost


# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Do I need to add some extra lines to /etc/hosts? If so, what is the right syntax? Or something else is wrong here?

Thanks in advance!

UPDATE: I did a VM rebuild, started all from scratch (carefully reading the docs) and now it works :)


Last edited by kazhy on Thu Feb 17, 2011 9:58 am, edited 1 time in total.

Top
   
PostPosted: Thu Feb 17, 2011 6:52 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
kazhy wrote:
...after restarting apache I got
Code:
Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
error.


I also receive this in my Apache error logs, and the http://zunzun.com/ Django site runs fine - so this might not be the problem.

On the linode, try the address 127.0.0.1 in a browser and see if you receive additional Django error detail. If you do not run a GUI remotely on your Linode, try using the lynx text browser. On my linode, both graphical and non-graphical browsers return a web page. Normally any Django errors give additional detail when the web pages are run from the server itself.

James


Top
   
PostPosted: Thu Feb 17, 2011 7:29 am 
Offline
Newbie

Joined: Thu Feb 17, 2011 6:25 am
Posts: 2
zunzun wrote:

I also receive this in my Apache error logs, and the http://zunzun.com/ Django site runs fine - so this might not be the problem.

On the linode, try the address 127.0.0.1 in a browser and see if you receive additional Django error detail. If you do not run a GUI remotely on your Linode, try using the lynx text browser. On my linode, both graphical and non-graphical browsers return a web page. Normally any Django errors give additional detail when the web pages are run from the server itself.

James


When I try to run lynx on localhost, it shows the index.html in apache`s document root, not django index page. i tried running it with dev server and the django works fine.

What do you have in your /etc/hosts file (for running your django page)?


Top
   
PostPosted: Thu Feb 17, 2011 11:55 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
kazhy wrote:
What do you have in your /etc/hosts file (for running your django page)?


Here you go. I do have virtual hosts set up in apache, though.

zunzun@none:~$ cat /etc/hosts
127.0.0.1 localhost


# The following lines are desirable for IPv6 capable hosts
# (added automatically by netbase upgrade)

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group