Website down and database blank?

Hi,

My website http://pollardlab.web44.net/booked has been down for the past few days. I’ve been checking cpanel and the status has been reporting as active all this time.
Today, the site appeared back up again, but I can’t log into my site using the admin username and password I set up.
I’m worried that the database side of my website has been blanked or deleted.
When I try and use mySQL or PhPAdmin I get told that I need to change my database password.

I’m not sure what’s gone wrong on the server but has all the data on my website been wiped?

thanks in advance for any help!

Working fine here.

Hi James. The trouble is that it only appears to be working fine. All the logins fail (including my admin login) and I can’t tell if we’ve lost one years worth of data. The website itself seems to be fine, but the database behind the website seems to have been wiped.
Do you know why the server was down and have any ideas why the downtiome would have wiped my database or ‘reset’ the website?

so it seems my database isn’t wiped.
The website just isn’t accessing it properly any more.
Unfortunately i’m not knowledgeable enough to work out how to fix it :frowning:

You got a screenshot of your members panel at 000webhost?

this?

Do your still have access to your files ^

And do any databases show up if you use them?

yes. I can see the database. Also - when I go into myphpAdmin, I can actually see all of the parts of the database are still populated with the values that I expect. This includes all of the user names and groups etc that I have created over the past two years.
However, those usernames cannot now be used to log into the website. When I log in ‘successfully’ the page just refreshes when it used to go to a dashboard with upcoming bookings and other links etc. When I log in ‘unsucessfully’ I do still get an error message warning that the username and password are incorrect.
So i’m totally perplexed as to what’s stopping the website from working.

Do you have TeamViewer?

no, but I can do pretty much the same thing with GoToMeeting and bring you in if that’s what OK?

I can grant mouse control etc with GoToMeeting

Yeah sure thing :stuck_out_tongue:

https://global.gotomeeting.com/join/716183245
You’ll get invited to a meeting organised by Jeff Pollard (my boss).
My name is Daniel.

Enabling Logging

Booked uses the log4php library to log multiple levels of information categorized into either application or database logs. By default, logging is turned OFF.
First, rename /config/log4php.config.dist.xml to /config/log4php.config.xml
To allow application logging, the PHP account requires write access (0755) to your configured log directory.
Logging is configured in /config/log4php.config.xml
This one below
For Unix, set the path to something similar to <param name="file" value="/home/your_user/tmp/bookedscheduler/log_%s.log" />
Logging is controlled by changing the of each
Levels used by Booked are OFF, DEBUG, ERROR. For normal operation, ERROR is appropriate. If trace logs are needed, DEBUG is appropriate.
To turn on application logging, change the to an appropriate level for either the default or sql loggers. For example,

Then we might see what is happening possibly…

Also back to the config.php file can you check

Lines 43, 56, 57

$conf['settings']['script.url'] = 'http://domain.com/Web/'; // public URL to the Web directory of this instance. this is the URL that appears when you are logging in. leave http: or https: off to auto-detect $conf['settings']['home.url'] = 'http://domain.com/Web/dashboard.php'; // the url to open when the logo is clicked $conf['settings']['logout.url'] = 'http://domain.com/Web/'; // the url to be directed to after logging out

Make sure your full directory path is there and no ? symbol is in the url either

$conf['settings']['script.url'] = 'http://pollardlab.web44.net/booked/Web';
$conf['settings']['home.url'] = '';
$conf['settings']['logout.url'] = '';

does that mean I should change those values for homeurl and logouturl to dashboard and we/ respectively?

1 Like

Try changing to

$conf['settings']['script.url'] = 'http://pollardlab.web44.net/booked/Web/';   	// public URL to the Web directory of this instance. this is the URL that appears when you are logging in. leave http: or https: off to auto-detect
$conf['settings']['home.url'] = 'http://pollardlab.web44.net/booked/Web/dashboard.php'; 	      					// the url to open when the logo is clicked
$conf['settings']['logout.url'] = 'http://pollardlab.web44.net/booked/Web/'; 	

Including the / after Web


Yeah give that a go :eyes:

changed to:

$conf['settings']['home.url'] = 'http://pollardlab.web44.net/booked/Web/dashboard.php';
$conf['settings']['logout.url'] = ''http://pollardlab.web44.net/booked/Web/';
1 Like

still no luck with that change

Try without the ending / and make sure to upload as config.php I’m sure you have though.