Page 1 of 1
[SOLVED] Site is broken - Please help..!
Posted: Thu May 21, 2009 8:37 am
by Charmie
Really hoping someone can help.
I was playing around with the ownership of my site and change all the modules ownership to 'admin' using SSH and now my site can not be seen on the Internet.
All the information of the site is still there in the database, which I have made a back-up.
I also have the stylesheets and templates backed up too.
Does anyone know of a way I can maybe change back the ownership?
If not can I do a clean install of the site and point it at my old database and hopefully get all the pages and images back.
I know I may have to re-install the modules but just want to make sure that I don't make the situation worse.
If yes how do I do the install to get my old site back?
And no I did not back my site up, am not sure how to do this....
If it helps this is the site address:
www.christchurchnorthfinchley.co.uk
Please help..... :'( :'(
Re: Site is broken
Posted: Thu May 21, 2009 9:04 am
by Charmie
When viewing the site in IE it comes up with the message that the site is down for maintenance.
I have looked in the index.php file and found this:
=================
if (!isset($_SERVER['REQUEST_URI']) && isset($_SERVER['QUERY_STRING']))
{
$_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING'];
}
if (!file_exists(CONFIG_FILE_LOCATION) || filesize(CONFIG_FILE_LOCATION) MaintenanceSite down for maintenance.";
exit;
}
=================
Does anyone know why it is going to this part of the if statement and how to correct it?

Re: Site is broken
Posted: Thu May 21, 2009 1:25 pm
by jmcgin51
look for the SITEDOWN file in your tmp directory
Re: Site is broken
Posted: Thu May 21, 2009 10:29 pm
by Charmie
Hi jmcgin51,
I have looked in the tmp folder but there is no SITEDOWN file.
Should I create one?
Re: Site is broken
Posted: Thu May 21, 2009 10:40 pm
by reneh
All files should be changed back to be the name of your ftp-user or the apache-user (correct me someone if I'm wrong here)
And you should clean the /tmp/cache and /tmp/templates_c folders complete.
Re: Site is broken
Posted: Fri May 22, 2009 8:57 am
by Charmie
Hi Reneh,
Thanks for the advice. I have done as you have said but still no luck.
The site is still down.
Does anyone know why this problem would have occurred just because I changed the ownership?
Also if I downloaded the modules again from the Forge and uploaded via FTP would this be a solution?
Should I try or will this only make things worse?
Re: Site is broken
Posted: Fri May 22, 2009 9:12 am
by Rolf
Charmie,
Did you contact your provider yet.
Might be possible that they did something wrong at the same moment that you were working on your site.
Yes I know, it is a very small chance but you have nothing to lose, who knows...
Grtz. Rolf

Re: Site is broken
Posted: Sat May 23, 2009 3:08 am
by replytomk3
You said you have a backup of your database. I suggest creating a subfolder on your server, installing most recent version of CMSMS, and restoring from database backup to test if it works. If it does, trash the old site files other than the ones I said you need to transfer on my website.
http://forum.cmsmadesimple.org/index.php/topic,30390.msg160337.html
http://mkrd.info/software-discussions/cms-made-simple/backin-up-and-restoring-cmsms.html
Re: Site is broken
Posted: Tue May 26, 2009 3:37 pm
by Charmie
Thank you, thank you, thank you.
I think you may have saved me.
Sorry for the late reply, I went away for the Bank Holiday weekend.
I have not tried it out yet but am hoping/praying that it works.
I am taking Thursday offof work to get the site back online.
Will definitely let you know how it goes.
Once again thank you

Re: Site is broken - Please help..!
Posted: Mon Jun 01, 2009 7:19 am
by Charmie