Posted by phoenix on October 15, 2009 at 7:58pm
Hi
I tried to install aegir on ubuntu via the shell script. (On an ubuntu 9.04 VMWare image)
First question: in the wiki they mention to "su - aegir" to run the script instead of "sudo". But how can you do it when the aegir user isn't created yet (this is done in the script).
So i did sudo sh install.sh. Everything went fine, I tried to install the domain "aegir.local". After the installation, I'm not able to reach aegir.local. (firefox says address not found) What do I need to do?
Thanks for your help...
Comments
Actually, the install.sh
Actually, the install.sh fails unless it is run as root. So it has to be run as root.
The wiki docs say 'Make sure you run "su - aegir" and not sudo, as it has caused problems during setup.' and I've no idea what this means, so I'll remove it.
Secondly, your inability to reach aegir.local means you haven't configured DNS or your /etc/hosts file, or basically done anything to make your computer able to resolve the address 'aegir.local' to the IP address of your server.
This previous discussion might help you on DNS.
Good luck!
Thanks
Thanks for your help.
Now I'm sure I ran the script as it should be done. I was hoping the script was going to configure everything for me ;-)
I'll have a look at the DNS post and will try to configure the DNS this weekend.
Weird
I read the DNS post.
When I try http://localhost or http://ipaddressubuntuvm I get a page: "it works". But no installation of aegir...
So adding ipaddressubuntuvm aegir.local in the hosts file, isn't really helping. I'm just not able to get to the aegir installation page.
Yep, thats because the Aegir
Yep, thats because the Aegir site uses a ServerName variable in the apache config.. it's a VirtualHost configuration. So the main aegir site will only be served if you visit the correct URL, that matches what's in the ServerName directive, and is a url that resolves to that IP. This isn't an Aegir thing, this is an Apache and DNS thing.
If you put in your hosts file:
1.2.3.4 aegir.local
but visited http://localhost or http://1.2.3.4, you've missed the point so to speak. You've put that into /etc/hosts so that you are then able to visit http://aegir.local , and it is this url that you should be trying to visit. Basically whatever is in the ServerName parameter in /var/aegir/config/vhost.d/aegir.yoursite.com . I'm presuming it's aegir.local here.
Have a read of the Apache documentation as it might explain a few things better than I can http://httpd.apache.org/docs/2.0/vhosts/name-based.html