Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jan 09, 2012 1:36 pm 
Offline
Newbie

Joined: Mon Jan 09, 2012 1:18 pm
Posts: 2
I am trying to setup a site where i can simply test it by getting it up and running with no contest at all but i am getting Unable to connect: from Firefox.

I have Linode on Ubuntu 10.04(LTS) setup, booted and running fine. After logging to Putty i managed to setup my hostname and FQDN by commands

echo "plato" > /etc/hostname
hostname -F /etc/hostname

127.0.0.1 localhost.localdomain localhost
12.34.56.78 plato.example.com plato

I replaced plato with the name of my host and i replaced example.com with the name of domain added in dns manager as my domain zone

After this i moved on to
Set up a LAMP Server on Ubuntu 10.04 (Lucid) guide and followed instructions from there

After typing 2 test commands it seems hostname and fqdn are set properly

I created /etc/apache2/sites-available/example.com and edited it to reflect the domain(Site) i am trying to enable, according to the details provided

<VirtualHost *:80>
ServerAdmin webmaster@example.com
ServerName example.com
ServerAlias www.example.com
DocumentRoot /srv/www/example.com/public_html/
ErrorLog /srv/www/example.com/logs/error.log
CustomLog /srv/www/example.com/logs/access.log combined
</VirtualHost>

After that i followed the rest of the guide and tried to launch my site in Firefox(Firefox can't establish a connection to the server at....)


I also tried to create empty index.html in /srv/www/example.com/public_html/ dir that i created during the guide... Still cant connect.

Also after testing DNS servers with http://www.dnswatch.info/ my site normally returns all 5 name servers that i added in my domain provider cpanel yesterday.

So i really have no idea what am i doing wrong here?


Top
   
 Post subject:
PostPosted: Mon Jan 09, 2012 2:25 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
1. Is Apache running?
Code:
/etc/init.d/apache2 restart

(While you're at it, also make sure to enable the newly created site using the a2ensite command.)

2. Did you add A records in your DNS, pointing both your domain and the "www" subdomain to your Linode's IP address?


Top
   
 Post subject:
PostPosted: Mon Jan 09, 2012 2:50 pm 
Offline
Newbie

Joined: Mon Jan 09, 2012 1:18 pm
Posts: 2
thank you!

/etc/init.d/apache2 restart did the trick.

At first i realized i made error while setting up data in <virtualhost> but after i corrected it, it still didnt work ...

i just repeated lamp tutorial and since it only mentioned /etc/init.d/apache2 RELOAD that didnt fix it.

But after trying with RESTART everything seems to function perfect, thanks again


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