Page 1 of 1

SQL Settings

Posted: Mon Aug 08, 2005 4:18 am
by Leth
I have recently changed the SQL password for the webblog as i could no longer recall it, however I now can't remember how to update the settings for Serendipity.

Any ideas as to where the SQL password is stored?

Thanks for your help

Re: SQL Settings

Posted: Mon Aug 08, 2005 2:06 pm
by garvinhicking
The SQL password is stored in the file "serendipity_config_local.inc.php". It is set with restrictive permissions, so if you cannot edit it via FTP, you can execute this PHP script:

Code: Select all

<?php
chmod("serendipity_config_local.inc.php", 0777);
?>
to reset permissions and edit the file.

Regards,
Garvin

Posted: Thu Aug 11, 2005 7:43 pm
by Guest
Thanks, worked a treat.

Incase anyone else stumbles across this thread, the code below will set the permissions back afterwards.

Code: Select all

<?php
chmod("serendipity_config_local.inc.php", 0600);
?>