Moin!
Gibt es irgendwo eine Anleitung, wie man das genau macht?
Bisher sag Deine LocalSettings.php in etwa so aus:
------------------------------------------------------------------
<?php
/*
other settings
*/
$config['foo'] = 1;
/*
Settings 4 database & connection
*/
$config['db_typ'] =''; # e.g. mysql, postgres, mssql, oracle)
$config['db_server'] =''; # hostname (e.g. localhost, ip)
$config['db_server_port'] =''; # Mysql: 3306
$config['db_user'] ='';
$config['db_pass'] ='';
$config['db_database'] ='';
$config['tbl_preset'] =''; # none or string e.g. wiki_1_
/*
other settings
*/
$config['bar'] ='';
?>
------------------------------------------------------------------
Du willst LocalSettings.php:
------------------------------------------------------------------
<?php
/*
other settings
*/
$config['foo'] = 1;
/*
Settings 4 database & connection
*/
$file='../../datadir/dbsettings.php';
if (! is_file($file)) {
die ("Fatal in __FILE__ : __LINE__ : Die Datei $file gibt es nicht!" );
}
if (! is_readable($file)) {
die ("Fatal in __FILE__ : __LINE__ : Die Datei $file ist nicht lesbar!" );
}
require_once ; # stirbt und meckert sehr laut (siehe unten) , wenn es nicht klappt
/*
other settings
*/
------------------------------------------------------------------
und in ../../datadir/dbsettings.php:
------------------------------------------------------------------
<?php
$config['db_typ'] =''; # e.g. mysql, postgres, mssql, oracle
$config['db_server'] =''; # hostname (e.g. localhost, ip)
$config['db_server_port'] =''; # mysql: 3306
$config['db_user'] ='';
$config['db_pass'] ='';
$config['db_database'] ='';
$config['tbl_preset'] =''; # nothing or string e.g. wiki_1_
------------------------------------------------------------------
Wenn die Pfade und Rechte (lesen!) stimmen, dann sollte das gehen.
Andere Frage:
Warum trägst Du in der .htaccess nicht ein:
------------------------------------------------------------------
php_flag display_errors on
php_flag html_errors on
php_value error_reporting -1
<Files LocalSettings.php>
deny from all
</Files>
------------------------------------------------------------------
MFFG (Mit freundlich- friedfertigem Grinsen)
fastix