What file is responsible for mysql data?

Having trouble installing serendipity?
Post Reply
JACOBKELL
Regular
Posts: 31
Joined: Tue Sep 05, 2006 3:33 pm

What file is responsible for mysql data?

Post by JACOBKELL »

I need to edit file which contain information about mysql data.
What is name of that file and where is located?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: What file is responsible for mysql data?

Post by garvinhicking »

Hi!

It's serendipity_config_local.inc.php.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JACOBKELL
Regular
Posts: 31
Joined: Tue Sep 05, 2006 3:33 pm

Post 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?
aschlemmer
Regular
Posts: 70
Joined: Fri Feb 23, 2007 6:13 pm
Location: Freiburg/Germany
Contact:

Post 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:

?>
www.ms-reporter.de
Pharma-unabhängige Infos für Multiple Sklerose-Betroffene
schnellze.it
Einzigartiges Zusammenspiel aus Popfetcher und s9y
JACOBKELL
Regular
Posts: 31
Joined: Tue Sep 05, 2006 3:33 pm

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

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

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JACOBKELL
Regular
Posts: 31
Joined: Tue Sep 05, 2006 3:33 pm

Post by JACOBKELL »

I downloaded ENTIRE directory after install to local disk,search several time and i didnt found that file.Who is crazy here?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JACOBKELL
Regular
Posts: 31
Joined: Tue Sep 05, 2006 3:33 pm

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JACOBKELL
Regular
Posts: 31
Joined: Tue Sep 05, 2006 3:33 pm

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
JACOBKELL
Regular
Posts: 31
Joined: Tue Sep 05, 2006 3:33 pm

Post by JACOBKELL »

Ah,now i lost few hours beacuse you have silly organization hehe
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply