Plesk installation problem, cant view site properly
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:
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…
…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.
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
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?
Mine was located in:
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!
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.
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.