Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Feb 13, 2011 7:03 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 10:09 pm
Posts: 64
Hi guys, I'm a new guy trying to wade through this stuff and I have a few questions.

I'm moving a site from another host over to linode, so I have setup the following:

Ubuntu 10.04
Php
PHPmyadmin
Apache2
Added virtual hosts file etc

I have put the files and folders in the public_html folder. Is there any way I can test this without the domain name yet? i.e. IPaddress/website or something. At the moment I don't know if everything is working because I don't know how to test it. It may be a really obvious answer but I can't find it.

I have put the IP address on its own and it tells me 'It works', so I guess i'm on the right path.

Any help would be great!

Chris


Last edited by crazyfruitbat on Sun Feb 13, 2011 9:21 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 8:06 am 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
Put your Linode's IP in your host file and point it to your domain (on your local machine).


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 8:59 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 10:09 pm
Posts: 64
Cheers Derfy, I don't have anything set up on my local machine at all, so it's just the server (unless I miss-read your post).

In my hosts file I have:

Code:
127.0.0.1        localhost.localdomain        localhost
my.IP.add.ress      myhostname.pixelatedphotographer.com             myhostname


Does this look ok or have I stuffed up?


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 9:26 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 10:09 pm
Posts: 64
The document root is
Code:
 /srv/www/pixelatedphotographer.com/public_html/
is this also the right place to put the files? I have phpmyadmin in there and that shows up fine.


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 9:40 am 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
Sorry, I was unclear. I should have put (on your local machine) after 'in your hosts file'. This makes your machine contact that IP for the domain and your Linode will pick up on the Host: header and use the proper virtual host.

I recommend not using phpmyadmin; instead, use something like http://www.heidisql.com/ Works over a tunnel (something PuTTY or SecureCRT can do) and doesn't leave database access open to the world.

re: the document root. Sounds right; once you get your host file set up to test with you'll know for sure.


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 11:23 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 10:09 pm
Posts: 64
Thanks, though still unclear what you mean (Sorry!).

I have done all the settings in the host file, but it isn't working.

Quote:
127.0.0.1 localhost.localdomain localhost
xxx.xxx.xxx.xx xxxx.pixelatedphotographer.com xxxxx
^^^ ^^^ ^^^^
Linode IP add Servername Servername

Do we have to change 'localhost.localdomain localhost' to something?

I don't have any errors when restarting, it seems to be happy - it just doesn't move.

In the default file, there is:
Quote:
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

Should it be DocumentRoot /srv/www.pixelated....... Because that is what my main setup is pointing to, not /var/ ?

Sorry to be a pain, just very new at all this!


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 11:32 am 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
Assuming you're using windows, open c:\windows\system32\drivers\etc (on your local machine). There you will see a 'hosts' file. Open it with notepad and make the changes there. Save it (as 'hosts', not 'hosts.txt' or anything else!) and you should be good to go.


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 11:47 am 
Offline
Senior Member

Joined: Sat Feb 12, 2011 10:09 pm
Posts: 64
cheers - I'm actually on a mac but I found the equivalent file.

what exactly should I enter here? it already has 127.0.0.1 localhost; do I add all the server info?:

xxx.xxx.xxx.xx xxxx.pixelatedphotographer.com xxxxx ?


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 11:50 am 
Offline
Senior Member

Joined: Wed Oct 20, 2010 12:11 pm
Posts: 142
ip.he.re.re <domain> is fine.


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 6:42 pm 
Offline
Senior Member

Joined: Sat Feb 12, 2011 10:09 pm
Posts: 64
I got no love with that at all


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 7:38 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
http://www.techwebtips.com/apple-mac/mo ... eopard-14/

Add

11.22.33.44 www.yourdomainname.com

Putting your LINODE PUBLIC IP ADDR for 11.22.33.44

***This is on your local workstation - NOT your LINODE.


Top
   
 Post subject:
PostPosted: Sun Feb 13, 2011 7:56 pm 
Offline
Senior Member

Joined: Sat Feb 12, 2011 10:09 pm
Posts: 64
Thanks to both of you. I got it working- i left out the www. which was throwing it off.

Thanks guys!


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