Page 1 of 1

loose the mysql pass

Posted: Thu May 26, 2005 4:09 pm
by Guest
hi, i want to add some plugins to serendipity but there is one problem:
i forgot the pass, then i tried to download the config.php but it looks like that i dont have enough permissions to download the file from my own server. is there anyway to find the old pass without setting a new one? greetz

Re: loose the mysql pass

Posted: Fri May 27, 2005 12:22 pm
by garvinhicking
Yes, you can write a simple PHP script and upload it via FTP:

Code: Select all

<?php
echo htmlspecialchars(file_get_contents('serendipity_config_local.inc.php'));
?>
Then open that script via HTTP and you'll see your configuration.

Regards,
Garvin

doesn't work

Posted: Fri May 27, 2005 12:54 pm
by novox
thx for your reply, but when i download the script via ftp, my browser tried to download the script and don't open it.. have you a idea why it doesn't work?

Re: doesn't work

Posted: Fri May 27, 2005 12:59 pm
by garvinhicking
You must save the file in your s9y directory via FTP. Save it as "password.php".

Then open http://yourblog/password.php and in your browser you will see the content of the file...

Regards
Garvin