Page 1 of 1

Suddenly find myself back at installation page

Posted: Wed Jul 12, 2006 2:38 pm
by accampbell
I installed Serendipity a couple of days ago and it was fine. After some uploads today I find I can no longer log in. Instead of connecting to .../serendipity/index.php I find I am at .../serendipity/serendipity_admin.php and I am restarting the installation process again.

What should I do? Reinstall everthing and lose my entries??

Re: Suddenly find myself back at installation page

Posted: Wed Jul 12, 2006 2:41 pm
by garvinhicking
Hi!

This can actually only happen if hte "serendipity_config_local.inc.php" file is missing or not readable for the webserver.

This file tells s9y that it is installed and holds the credentials to connect to the database. Is it in place?

If not, you could easily create it manually. The file looks like this:

Code: Select all

<?php
	/*
	  Serendipity configuration file
	  Written on Thu, 07 Apr 2005 16:03:58 +0200
	*/

	$serendipity['versionInstalled']  = '0.8-beta6';
	$serendipity['dbName']            = 'serendipity';
	$serendipity['dbPrefix']          = 'serendipity_MERGE_';
	$serendipity['dbHost']            = 'localhost';
	$serendipity['dbUser']            = 'root';
	$serendipity['dbPass']            = 'password';
	$serendipity['dbType']            = 'mysql';
	$serendipity['dbPersistent']      = false;

	// End of Serendipity configuration file
	// You can place your own special variables after here:
?>
HTH,
Garvin

Posted: Wed Jul 12, 2006 3:03 pm
by accampbell
I made this file but something is still wrong. I get error
messages:

Warning: mysql_connect(): Access denied for user: 'root@localhost' (Using password: YES) in /users/a/acampbell/website/serendipity/include/db/mysql.inc.php on line 251

Warning: mysql_select_db(): Access denied for user: 'www-data@localhost' (Using password: NO) in /users/a/acampbell/website/serendipity/include/db/mysql.inc.php on line 252

Warning: mysql_select_db(): A link to the server could not be established in /users/a/acampbell/website/serendipity/include/db/mysql.inc.php on line 252
DATABASE_ERROR

Posted: Wed Jul 12, 2006 4:03 pm
by garvinhicking
Hi!

This means that you've entered the wrong password information in that file! You need to replace the ones I told you with your actual credentials to the database. :)

Best regards,
Garvin

Posted: Wed Jul 12, 2006 4:18 pm
by accampbell
Yes, completely silly of me. But still I couldn't get things working right- probably other files had got corrupted. So I just reinstalled Serendipity from scratch, which didn't take long, and I'm back in business because the database was OK.

Thanks for your help here -much appreciated.