Plesk installation problem, cant view site properly

Permalink
Afternoon all,

I’m in the process of developing a site for a client; I’m at the stage where I want to migrate from our development sever to the live production server ready to deploy the site.

The client already has an existing website with the DNS for the domain pointing to the files located on a server they no longer wish to use for the new c5 website.

The new server is a shared ip server and has Plesk installed on it, which is what I’ve used to set up a new domain and upload all files to.

As the DNS currently points at the clients existing website, the only way to currently view the site is to use the “Site preview ” from the Plesk control panel which will bring up an address like:

https://xx.xxx.xxx.xx:8443/sitepreview/http/DOMAIN_GOES_HERE/...

I’ve edited the BASE_URL and DIR_RE within /config/site.php to reflect this temp domain but I seem to get some of the following scenarios:

- The c5 default page not found (for index.php)
- Homepage with broken styling / no images and then when navigating to internal pages I get 500 internal server error messages.
- Redirect loops
- Redirected back to Plesk control pannel

With the last point I’ve had to add…

define('REDIRECT_TO_BASE_URL', false);

…to the config/site.php file to stop it redirecting back to Plesk.

Any help would be greatly appreciated as the client wants to approve the site on the new server prior to making any DNS changes.

Cheers,

Charlie

 
netaffairs replied on at Permalink Reply
netaffairs
Why don't you just add the site to your Hosts file (Windows) instead of using the preview?
You can then view it on the new server by putting the IP of it in your hosts file.

When you are done you can then just remove it from the hosts file and change the DNS
Charlie replied on at Permalink Reply
Hi netaffairs,

Thanks for the quick response, I'll be honest I don't fully understand what you mean by this? Are you able to explain further? I have no prior experience with editing host files.

Is this something that could be edited with the plesk?
thephilm replied on at Permalink Reply
thephilm
http://en.wikipedia.org/wiki/Hosts_(file)

Mine was located in:
C:\WINDOWS\system32\drivers\etc

Note - you just put the IP address then the name you want to be able to type in your browser...

Save and your done. Fun to prank people with as well!
-Phil
nickratering replied on at Permalink Reply
nickratering
Perfect!! This worked for me with the same issue!
On a mac it's in a hidden system folder: /private/etc/host
You can edit this with TextWrangler. I use Tinkertool to make the system files visible.
RadiantWeb replied on at Permalink Reply
RadiantWeb
you do't need to do all that. just set up a domain alias to the parent shared host like so: yoursite.sharedhost.com

so in the case of my chadstrat site on c5spot.com, in development I set up a plesk domain alias to chadstrat.c5spot.com.

this took me a while to figure out on Plesk as well.

hope this helps.

ChadStrat