Checking a site without the domain URL
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
11 Replies
In my hosts file I have:
127.0.0.1 localhost.localdomain localhost
my.IP.add.ress myhostname.pixelatedphotographer.com myhostname
Does this look ok or have I stuffed up?
/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.
I recommend not using phpmyadmin; instead, use something like
re: the document root. Sounds right; once you get your host file set up to test with you'll know for sure.
I have done all the settings in the host file, but it isn't working.
> 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:
> DocumentRoot /var/www
Options FollowSymLinks AllowOverride None
Options Indexes FollowSymLinks MultiViews AllowOverride None
Order allow,deny
allow from all
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!
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 ?
Add
11.22.33.44
Putting your LINODE PUBLIC IP ADDR for 11.22.33.44
***This is on your local workstation - NOT your LINODE.
Thanks guys!