PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : vBulletin 3.5.0 - config.php <- Konfigurationsdatei


h75
21.06.2005, 23:40
Halloo. Ich hab da ma ein paar Fragen zu der /includes/config.php :)

Hier erstmal die config.php

<?php
/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.5.0 Beta 2 (English) - Licence Number XXXXXXXXX
|| # ---------------------------------------------------------------- # ||
|| # All PHP code in this file is ©2000-2005 Jelsoft Enterprises Ltd. # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

/*-------------------------------------------------------*\
| ****** NOTE REGARDING THE VARIABLES IN THIS FILE ****** |
+---------------------------------------------------------+
| If you get any errors while attempting to connect to |
| MySQL, you will need to email your webhost because we |
| cannot tell you the correct values for the variables |
| in this file. |
\*-------------------------------------------------------*/

// ****** DATABASE TYPE ******
// This is the type of the database server on which your vBulletin database will be located.
// Valid options are mysql and mysqli. Try to use mysqli if you are using PHP 5 and MySQL 4.1+
$config['Database']['dbtype'] = 'mysql';

// ****** DATABASE NAME ******
// This is the name of the database where your vBulletin will be located.
// This must be created by your webhost.
$config['Database']['dbname'] = 'betatestvb';

// ****** TABLE PREFIX ******
// Prefix that your vBulletin tables have in the database.
$config['Database']['tableprefix'] = '';

// ****** TECHNICAL EMAIL ADDRESS ******
// If any database errors occur, they will be emailed to the address specified here.
// Leave this blank to not send any emails when there is a database error.
$config['Database']['technicalemail'] = 'dbmaster@halloo.de';



// ****** MASTER DATABASE SERVER NAME ******
// This is the hostname or IP address of the database server.
// It is in the format HOST:PORT. If no PORT is specified, 3306 is used.
// If you are unsure of what to put here, leave it at the default value.
$config['MasterServer']['servername'] = 'localhost';

// ****** MASTER DATABASE USERNAME & PASSWORD ******
// This is the username and password you use to access MySQL.
// These must be obtained through your webhost.
$config['MasterServer']['username'] = 'BENUTZERNAME';
$config['MasterServer']['password'] = 'PASSWORT';

// ****** MASTER DATABASE PERSISTENT CONNECTIONS ******
// This option allows you to turn persistent connections to MySQL on or off.
// The difference in performance is negligible for all but the largest boards.
// If you are unsure what this should be, leave it off. (0 = off; 1 = on)
$config['MasterServer']['usepconnect'] = 0;



// ****** SLAVE DATABASE CONFIGURATION ******
// If you have multiple database backends, this is the information for your slave
// server. If you are not 100% sure you need to fill in this information,
// do not change any of the values here.
$config['SlaveServer']['servername'] = '';
$config['SlaveServer']['username'] = '';
$config['SlaveServer']['password'] = '';
$config['SlaveServer']['usepconnect'] = 0;



// ****** PATH TO ADMIN & MODERATOR CONTROL PANELS ******
// This setting allows you to change the name of the folders that the admin and
// moderator control panels reside in. You may wish to do this for security purposes.
// Please note that if you change the name of the directory here, you will still need
// to manually change the name of the directory on the server.
$config['Misc']['admincpdir'] = 'admincp';
$config['Misc']['modcpdir'] = 'modcp';

// Prefix that all vBulletin cookies will have
// Keep this short and only use numbers and letters, i.e. 1-9 and a-Z
$config['Misc']['cookieprefix'] = 'bb';

// ******** FULL PATH TO FORUMS DIRECTORY ******
// On a few systems it may be necessary to input the full path to your forums directory
// for vBulletin to function normally. You can ignore this setting unless vBulletin
// tells you to fill this in. Do not include a trailing slash!
// Example Unix:
// $config['Misc']['forumpath'] = '/home/users/public_html/forums';
// Example Win32:
// $config['Misc']['forumpath'] = 'c:\program files\apache group\apache\htdocs\vb3';
$config['Misc']['forumpath'] = '/home/halloo.de/www/testvb';



// ****** USERS WITH ADMIN LOG VIEWING PERMISSIONS ******
// The users specified here will be allowed to view the admin log in the control panel.
// Users must be specified by *ID number* here. To obtain a user's ID number,
// view their profile via the control panel. If this is a new installation, leave
// the first user created will have a user ID of 1. Seperate each userid with a comma.
$config['SpecialUsers']['canviewadminlog'] = '1';

// ****** USERS WITH ADMIN LOG PRUNING PERMISSIONS ******
// The users specified here will be allowed to remove ("prune") entries from the admin
// log. See the above entry for more information on the format.
$config['SpecialUsers']['canpruneadminlog'] = '1';

// ****** USERS WITH QUERY RUNNING PERMISSIONS ******
// The users specified here will be allowed to run queries from the control panel.
// See the above entries for more information on the format.
// Please note that the ability to run queries is quite powerful. You may wish
// to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = '';

// ****** UNDELETABLE / UNALTERABLE USERS ******
// The users specified here will not be deletable or alterable from the control panel by any users.
// To specify more than one user, separate userids with commas.
$config['SpecialUsers']['undeletableusers'] = '1';

// ****** SUPER ADMINISTRATORS ******
// The users specified below will have permission to access the administrator permissions
// page, which controls the permissions of other administrators
$config['SpecialUsers']['superadministrators'] = '1';

// ****** MySQLI OPTIONS *****
// PHP can be instructed to set connection paramaters by reading from the
// file named in 'ini_file'. Please use a full path to the file.
// Used to set the connection's default character set
// Example:
// $config['Mysqli']['ini_file'] = 'c:\program files\MySQL\MySQL Server 4.1\my.ini';
$config['Mysqli']['ini_file'] = '';

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 17:57, Sat Jun 18th 2005
|| # CVS: $RCSfile: config.php.new,v $ - $Revision: 1.27 $
|| ####################################################################
\*======================================================================*/
?> Und zwar würde ich gerne wissen, ob die Angabe $config['Mysqli']['ini_file'] = ''; erforderlich ist, und wie ich duie Datei finde. Is damit nicht eher die my.cnf gemeint? Denn eine my.ini oder mysql.ini gibts auf meinem server nicht. zumindest konnte ich die über 'locate' nicht finden.

Und dann die nächste Frage. Wie kann ich eine 2.te Datenbank nutzen? Und kann ich festlegen, was in der 2.ten Datenbank gespeichert wird?

Vielen Dank schonmal.. :)

Hoffi
22.06.2005, 09:07
Die Angabe vom INI File ist nicht erforderlich. Bei mir zumindest läuft es ohne das ich da etwas eingetragen habe.

Wie das mit der zweiten DB aussieht kann ich Dir leider nicht sagen.

Tomek
22.06.2005, 09:53
Der Konfigurationsabschnitt für die zweite Datenbank ist vermutlich für eine Backup-Datenbank, falls die erste ausfällt.

Man kann ja mit MySQL eine Replikation mit einem weiteren Datenbankserver führen (Master/Slave). Falls der erste Datenbankserver dann ausfällt, kann vBulletin dann die zweite Datenbank nutzen.

Colin F
22.06.2005, 10:21
Die zweite Datenbank wird in einem Master/Slave Modus genutzt, welche untereinander abgeglichen werden.

Schreibvorgänge in der Datenbank werden jeweils auf dem Master ausgeführt, Lesevorgänge auf dem Slave.

Dies entlastet beide Datenbanken.

h75
22.06.2005, 10:35
Also lohnt sich das nur, wenn man mindestens 2 Server hat, bzw. die DBs auf 2 unterschiedlichen Servern liegen.. Oder bringt es auch schon auf einem Server Vorteile, wenn man statt einer Datenbank gleich 2 benutzt?

Tomek
22.06.2005, 10:57
Zwei Datenbankserver auf dem selben Server macht nicht wirklich Sinn. :rolleyes:

Milchi
01.07.2005, 11:32
Zwei Datenbankserver auf dem selben Server macht nicht wirklich Sinn. :rolleyes:


Doch sogar ziemlich viel :eek:

Man darf sie natürlich nicht auf die gleichen Platten zugreifen lassen .... Wenn man mit großen Datenbanken arbeitet sind normalerweise nur die Zugriffszeiten auf die Festplatten das Problem.

Bei einem Blade System wäre es noch dazu nochmal sinnvoller mehrere DB Server mit einzubauen da man dann auch Speicher und Prozessor trennen kann :)

Also nicht so voreilig und in kleinen Welten denken sondern mal über den Tellerrand schaun

h75
01.07.2005, 16:59
Also nicht so voreilig und in kleinen Welten denken sondern mal über den Tellerrand schaun Danke. :) Ich wusste doch, das ich davon schon mal gehört hatte.. :)

Aber leider hab ich zur Zeit nur 1 HD. Mal sehen, kann sich ja noch ändern.. :D

Gandalf2003
01.07.2005, 17:44
FULL PATH TO FORUMS DIRECTORY

kann mir jemand mal ne info geben, was genau das bedeuten soll?
ich hab ehrlich gesagt null plan, was ich dort reinschreiben soll:(

danke


svenna

h75
01.07.2005, 17:45
z,b, /home/domain.de/www :)

Gandalf2003
01.07.2005, 17:51
z,b, /home/domain.de/www :)

aso. danke:) boah wie blind man doch ab und an ist^^

h75
01.07.2005, 18:01
Wie man den herausfinden kann, weisst du? z.b. über die PHP-Info _SERVER["DOCUMENT_ROOT"] /home/admin/www oder auch etwas drunter bei SCRIPT_FILENAME steht der Pfad inklusive der Datei php.php, wo diese sich befindet. _SERVER["SCRIPT_FILENAME"] /home/admin/www/php.php Demo-php-info
http://hollii.de/php.php

Um eine phpinfo-Datei anzulegen, erstelle eine leere Text-Datei mit folgendem Inhalt, und benenne die z.b. in php.php um. <?php
phpinfo();
exit();
?>

Ne0
01.07.2005, 20:13
<?php phpinfo(); ?>

reicht auch shcon ;)

Stussi
02.07.2005, 00:10
Musste aber meine ich nichts eintragen.. das ist glaub ich für Windows Server...

h75
02.07.2005, 00:22
Ich denke doch... ;) Denn einige Hacks benötigen diese Pfadangabe.. z.b. nen Portal.

Gandalf2003
02.07.2005, 13:32
also irgendwie bekomme ich das bei mir net hin!
das wäre als beispiel nen pfad von mir: home/htdocs/web/html/beispiel/testvb

wenn ich den pfadso eintrage, dann bekomme ich es nicht hin, die installroutine zum starten zu bewegen:(

Mystics
02.07.2005, 13:35
Fehlt da nicht der / am Anfang?

Gandalf2003
02.07.2005, 13:42
in der config steht der drin;)

Gandalf2003
02.07.2005, 13:46
wie gesagt, ich hab meines wissen alles richtig eintragen, und kommt bis zu eingabe der kundennummer, und nachdem ich die dort eintrage und dann auf enter klicke passiert nix:(

Mystics
02.07.2005, 20:29
wie gesagt, ich hab meines wissen alles richtig eintragen, und kommt bis zu eingabe der kundennummer, und nachdem ich die dort eintrage und dann auf enter klicke passiert nix:(Dann lasse den Pfad doch weg...wie die Beschreibung schon sagt, braucht man diesen nur in Ausnahmefällen anzugeben.

Gandalf2003
02.07.2005, 20:37
hi mike,

klappt so auch nicht;(

Mystics
02.07.2005, 21:40
auf enter klicke passiert nixWas heißt das? Lädt die Seite erneut? Kannst du auch nicht 3.0.7 installieren? Was ist das für ein Server? Bist du sicher, du hast die richtigen Daten eingegeben? Überprüfe mal, was für eine Kundennummer in der install/authenticate.php steht.

Gandalf2003
02.07.2005, 21:52
Was heißt das? Lädt die Seite erneut? Kannst du auch nicht 3.0.7 installieren? Was ist das für ein Server? Bist du sicher, du hast die richtigen Daten eingegeben? Überprüfe mal, was für eine Kundennummer in der install/authenticate.php steht.


hi mike,

jupp, die seite wird "neu" geladen. eigentlich passiert garnichts. vb 3.0.7 ist kein problem. was meinste mit server?

CUSTOMER_NUMBER => meinst du das?
wenn ja, dann ist die nicht identisch mit meiner Kundennummer:(

Gandalf2003
02.07.2005, 21:56
und genau das war der fehler! die falsche nummer:(

ist das normal?

Mystics
02.07.2005, 22:04
ist das normal?Nein, natürlich nicht. Also hast du das Paket von jemand anderem bekommen oder dich mit anderen Kundendaten im Kundenbereich angemeldet.

Gandalf2003
02.07.2005, 22:38
überschrieben bekommen;)

DeluXXXe
11.08.2005, 23:08
ich hab das Forum auf 3 Servern laufen, www1, www2 und DB.... also kann ich mit dem Master und Slave die DB auch auf 2 Server aufteilen ? Ist es denn auch so das Master "schreiben" und Slave "lesen" ist ? oder doch nur "slave" Datenbank falls Master ausfällt ?

Mystics
12.08.2005, 20:11
Soweit ich weiß, wird ein Server zum Lesen, und der andere zum Schreiben verwendet, wenn man Master- und Slave-Server in der config.php angibt.

h75
12.08.2005, 21:24
Ja genau. Das hat Colin_F auch geschrieben ...
http://www.vbulletin-germany.com/forum/showpost.php?p=109203&postcount=4

wallpaper
21.08.2005, 15:48
danke für info :)

hab mich schon gefragt, wie das funktioniert.

Seminor
28.10.2005, 11:36
Grüße ,

Habe heute mein VB bekommen.:rolleyes: Und bin in der config auch über die Funktion Slave-Datenbank gestolpert. :eek:

Leider stehen hier im Thread nur Vermutungen. :confused: Daher habe ich mal einige fragen.

Wenn man beide Datenbanken auf einen Server lässt sollte es doch trotzdem Sinn machen da die Datenbank Zugriffe auf die einzelnen Banken weniger werden.

Ist es überhaupt möglich später eine die Slave Datenbank in zu zufügen.

Gruß Seminor

Ein alter Wbb Nutzer.

Milchi
30.10.2005, 09:13
Wenn du genügend Platten in deinem Server hast um die beiden Datenbanken Physikalisch zu trennen und ihnen eventuell sogar noch einzelne Prozessoren zuweisen kannst, dann bringt es performance, ja.

Ansonsten bringen Master/slave Datenbanken nur Performance, wenn sie auf einzelnen Servern laufen.

Der Master ist der Server für die Schreibzugriffe, der Slave der für die Lesezugriffe. Fällt einer der beiden aus, steht das Forum.