Page 1 of 1

What file is responsible for mysql data?

Posted: Sat Apr 21, 2007 5:14 pm
by JACOBKELL
I need to edit file which contain information about mysql data.
What is name of that file and where is located?

Re: What file is responsible for mysql data?

Posted: Sat Apr 21, 2007 6:43 pm
by garvinhicking
Hi!

It's serendipity_config_local.inc.php.

Regards,
Garvin

Posted: Sun Apr 22, 2007 3:50 am
by JACOBKELL
You can screw it but i cant found that file anywhere.Does that file it's present before installation or it's created after installation?

Posted: Sun Apr 22, 2007 10:48 am
by aschlemmer
I'm not sure but I think that this file is created while installing Serendipity. It's placed in your installation directory and contains the following code:

Code: Select all

<?php
	/*
	  Serendipity configuration file
	  Written on Sat, 07 Apr 2007 19:03:41 +0200
	*/

	$serendipity['versionInstalled']  = '1.1';
	$serendipity['dbName']            = 'dnName';
	$serendipity['dbPrefix']          = 'serendipity_';
	$serendipity['dbHost']            = 'localhost:3306';
	$serendipity['dbUser']            = 'username';
	$serendipity['dbPass']            = 'password';
	$serendipity['dbType']            = 'mysql';
	$serendipity['dbPersistent']      = false;
	$serendipity['dbCharset']         = 'utf8';

	// End of Serendipity configuration file
	// You can place your own special variables after here:

?>

Posted: Sun Apr 22, 2007 3:48 pm
by JACOBKELL
That is exactly what i need.Well i will try to reinstall Sd and too see those where is that file now.Also,does anything change in sd directory after installation except appereance of that file?

Posted: Mon Apr 23, 2007 12:20 pm
by garvinhicking
Hi!

No, after s9y instalaltion only this file and .htaccess are written to the directory.

Best regards,
Garvin

Posted: Wed Apr 25, 2007 1:45 am
by JACOBKELL
I downloaded ENTIRE directory after install to local disk,search several time and i didnt found that file.Who is crazy here?

Posted: Wed Apr 25, 2007 10:49 am
by garvinhicking
Hi!

The file must be there, because without it, serendipity is not installed.

Are you sure that you really INSTALLED serendipity, as documented? You can't simply unpack the ZIP archive from Serendipity, because there the file is not yet created. The file is created through the use of the web-installer that you have to use, you get it via accessing http://yourhost/serendipity/...

Regards,
Garvin

Posted: Wed Apr 25, 2007 4:53 pm
by JACOBKELL
This is how proccess go-wget serendipity.tar.gz,tar xvzf serendipity.tar.gz
and then web installer,finishing instalation and start adding entrys to blog.
And there is no sing of that file.When i compared size of installed sd with unpacked sd,it is different in 300 kb-10.7 mb vs 11 mb.And only what i was notice it is creation of 4 files in templates_c folder.
Also i was try to search for text which is here posted with text search and it was'nt be founded.Like that config file is invisible.I spendend hour and half of searching and still nothing.

Posted: Thu Apr 26, 2007 11:17 am
by garvinhicking
Hi!

If you can post entries to your blog through the admin, then there is a serendipity_config_local.inc.php file!

Ask your provider about permissiosn if you cannot see that file. It definitely is there.

Serendipity cannot operate if that file were not there!

Best regards,
Garvin

Posted: Thu Apr 26, 2007 4:10 pm
by JACOBKELL
Heh the problem is i am my own provider hehe.Ah looks like i will have to forget about this and every time when i will want to backup copy entire directory :(

UPDATE:it seems you are right.I was little thinking and conclude let's take a look structure of directory as root user.And then i was notice that file,it has green color.(i entered over ssh)So i chmoded file to 776 and then it was visible by normal user over ftp.Btw which chmod should be for that file?I asking beacuse 776 chmod is security risk.

Posted: Fri Apr 27, 2007 12:47 pm
by garvinhicking
Hi!

Yes. Serendipity is usually the only one that should read that file (and root users), because it contains sensitive information. So the original setting it had was the optimal chmod for it. :)

Best regards,
Garvin

Posted: Fri Apr 27, 2007 2:22 pm
by JACOBKELL
Ah,now i lost few hours beacuse you have silly organization hehe

Posted: Fri Apr 27, 2007 2:38 pm
by garvinhicking
Hi!

Hm, what do you mean?

It's not a silly organization, it was just you not properly looking for the file. :-)

Best regards,
Garvin