Problem changing root url

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
ANUDesign
New Member
New Member
Posts: 6
Joined: Sun Jun 20, 2010 5:51 pm

Problem changing root url

Post by ANUDesign »

I had a client contact me regarding their urls which were still using the temp ip address when the site was first designed. We got the CMS up and running before they handed over the domain hence this situation.

I found a post on here earlier that said that all that was required was searching for 'root' in the config.php file and change the address accordingly. I did this and now I just have a small wall of code on any page I try and visit on the site. It appears I've done something wrong. I changed the root url and the ssl url which I don't know if I should've done or not.

The website is richardshakespeare.com and if you visit you'll see the mess I'm in. I've tried putting the original temp address in there but it's not working.

Any advice will be greatly appreciated as it'll take alot of time to rebuild. Maybe a fresh install with a database backup may be a solution if anyone could point me in the right direction of doing this lol.

Thanks for your time,
Dan.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: Problem changing root url

Post by Jeff »

The config.php file looks like it was corrupted when you edited it.

Make a backup of your database!

Then restore the install/ folder and run through the install process again. On step 5 uncheck the "Create Tables" and "Install Default Content" questions on the bottom.

That should rewrite the config.php file and you should be all set.

Jeff

If you accidentally forgot to uncheck the boxes then you will need to restore the db from the backup you made.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Problem changing root url

Post by Wishbone »

It looks like the beginning <?php is gone?
ANUDesign
New Member
New Member
Posts: 6
Joined: Sun Jun 20, 2010 5:51 pm

Re: Problem changing root url

Post by ANUDesign »

Hi thanks alot guys.

Feel silly for not spotted the alterations in there myself now. I've restored the php tags and we're back up and running. I wonder what the chances are that went unnoticed by the client ::)

I used an edit function through the host file management panel and got a slap for it. Thanks again for taking a look.

Cheers,
Dan.


Edit: I have no idea to set this to solved so apologies if anyone wastes their time checking this out from this point.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Problem changing root url

Post by Wishbone »

You might want to change your database password.. It was there for all to see.
Post Reply

Return to “CMSMS Core”