Page 1 of 1
Kann nach bakup/restore nicht mehr auf phpwcms zugreifen
Posted: Sat 2. Jun 2007, 17:07
by helloimac
Hallo zusammen
Wollte gestern auf dem Server einen Upgrade von moodle vornehmen.
Habe vorgängig ein vollständiges Backup (html und db) gemacht und auch auf dem lokalen Rechner gespeichert.
Der Upgrade ist fehlgeschlagen (müsste da irgendetwas in der Datenbank auf deutsch_utf8 umstellen). Habe anschliessend auf dem Server einen restore gemacht, was in der Vergangenheit immer funktioniert hat.
Nun kann ich nicht mehr auf phpwcms (1.2.8 – sobald ich Zeit habe, wage ich mich an den Upgrade auf 1.3.3) zugreifen, erhalte folgende Fehlermeldung:
Code: Select all
Warning: main(/home/www/xxxxxx/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php): failed to open stream: No such file or directory in /home/www/xxxxxx/html/phpwcms/login.php on line 31
Fatal error: main(): Failed opening required '/home/www/xxxxxx/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/share/php') in /home/www/xxxxxx/html/phpwcms/login.php on line 31
Wenn ich die Page aufrufe, kommt folgende Fehlermeldung:
Code: Select all
Warning: main(/home/www/xxxxxx/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php): failed to open stream: No such file or directory in /home/www/xxxxxx/html/phpwcms/index.php on line 57
Fatal error: main(): Failed opening required '/home/www/xxxxxx/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/share/php') in /home/www/xxxxxx/html/phpwcms/index.php on line 57
Der Support hat mich darauf hingewiesen, dass die Verzeichnisstruktur wahrscheinlich nicht korrekt sei: unterhalb von phpwcms befindet sich nochmals ein Ordner phpwcms -> siehe Fehlermeldungen (phpwcms/phpwcms). Wenn ich auf dem Server die Struktur (auf dem Server direkt, wie auch über das FTP-Programm) überprüfe, ist da kein zweiter Ordner /phpwcms zu finden?
Wurde da beim Backup irgendwas auf der Datenbank zerschossen?
Wo wie kann ich da eine entsprechende Korrektur vornehmen?
Offenbar ist da in den Datenbanken grundsätzlich was nicht mehr okay (kenne mich damit überhaupt nicht aus), denn bei moodle erhalte ich ebenfalls eine Fehlermeldung:
Code: Select all
Error: Database connection failed.
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
Oder wurden durch den Installationsversuch irgendwelche Spracheinstellungen verstellt (da sehe ich als Laie aber keinen Zusammenhang zu dem zweiten Ordner "phpwcsm").
Danke im voraus für eure Tipps, und gutes Wochenende.
Martin
PS: Die Informationen bez. moodle sollen nur der Fehleranalyse dienen.
Posted: Sun 3. Jun 2007, 13:51
by Strahlemann
Hallöchen!
Zwar bin ich kein PHPWCMS Pro aber der Fehler scheint eindeutig zu sein...
Code: Select all
'/home/www/web553/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/share/php') in /home/www/web553/html/phpwcms/login.php on line 31
Du rufst im Ordner PHPWCMS die Datei login.php auf und PHPWCMS sucht auf Grund seiner vorgegebenen Einstellungen die abhängigen Dateien (in dem Fall die DB Verbindung) in der Ordnerstruktur PHPWCMS/PHPWCMS welche ja nicht existiert...
Hier musst du in der config (config/phpwcms/conf.inc.php) deine Einstellungen überprüfen - speziell $phpwcms['DOC_ROOT'] und $phpwcms['root']...
Eventuell kann man dir auch helfen wenn du deine Config hier ins Forum stellst (ohne PW's )
LG. Lukas
Posted: Mon 4. Jun 2007, 15:56
by helloimac
Hallo zusammen
Wollte gestern auf dem Server einen Upgrade von moodle vornehmen.
Habe vorgängig ein vollständiges Backup (html und db) gemacht und auch auf dem lokalen Rechner gespeichert.
Der Upgrade ist fehlgeschlagen (müsste da irgendetwas in der Datenbank auf deutsch_utf8 umstellen). Habe anschliessend auf dem Server einen restore gemacht, was in der Vergangenheit immer funktioniert hat.
Nun kann ich nicht mehr auf phpwcms (1.2.8 – sobald ich Zeit habe, wage ich mich an den Upgrade auf 1.3.3) zugreifen, erhalte folgende Fehlermeldung:
Code: Select all
Warning: main(/home/www/xxxxxx/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php): failed to open stream: No such file or directory in /home/www/xxxxxx/html/phpwcms/login.php on line 31
Fatal error: main(): Failed opening required '/home/www/xxxxxx/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/share/php') in /home/www/xxxxxx/html/phpwcms/login.php on line 31
Wenn ich die Page aufrufe, kommt folgende Fehlermeldung:
Code: Select all
Warning: main(/home/www/xxxxxx/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php): failed to open stream: No such file or directory in /home/www/xxxxxx/html/phpwcms/index.php on line 57
Fatal error: main(): Failed opening required '/home/www/xxxxxx/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/share/php') in /home/www/xxxxxx/html/phpwcms/index.php on line 57
Der Support hat mich darauf hingewiesen, dass die Verzeichnisstruktur wahrscheinlich nicht korrekt sei: unterhalb von phpwcms befindet sich nochmals ein Ordner phpwcms -> siehe Fehlermeldungen (phpwcms/phpwcms). Wenn ich auf dem Server die Struktur (auf dem Server direkt, wie auch über das FTP-Programm) überprüfe, ist da kein zweiter Ordner /phpwcms zu finden?
Wurde da beim Backup irgendwas auf der Datenbank zerschossen?
Wo wie kann ich da eine entsprechende Korrektur vornehmen?
Offenbar ist da in den Datenbanken grundsätzlich was nicht mehr okay (kenne mich damit überhaupt nicht aus), denn bei moodle erhalte ich ebenfalls eine Fehlermeldung:
Code: Select all
Error: Database connection failed.
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
Oder wurden durch den Installationsversuch irgendwelche Spracheinstellungen verstellt (da sehe ich als Laie aber keinen Zusammenhang zu dem zweiten Ordner "phpwcsm").
Danke im voraus für eure Tipps, und gutes Wochenende.
Martin
PS: Die Informationen bez. moodle sollen nur der Fehleranalyse dienen.
Posted: Mon 4. Jun 2007, 18:31
by helloimac
helloimac wrote:Hallo Lukas
Danke für Deine Antwort. Im Anhang die config.inc.php und die login.php. Hoffentlich lässt sich da was finden. Komisch für mich, dass sich da im Zusammenhang mit backup/restore was verstellen kann?
config.inc.php
Code: Select all
<?php
/*************************************************************************************
Copyright notice
(c) 2002-2006 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
This script is part of PHPWCMS. The PHPWCMS web content management system is
free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
A copy is found in the textfile GPL.txt and important notices to the license
from the author is found in LICENSE.txt distributed with these scripts.
This script is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/
// phpwcms base values -> needed in any document
// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "xxxxxx";
$phpwcms["db_pass"] = "xxxxxx";
$phpwcms["db_table"] = "usr_xxxxxx_1";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;
$phpwcms['db_charset'] = 'utf8';
$phpwcms['db_collation'] = 'utf8_general_ci';
// site values
$phpwcms["site"] = "http://hsb-marketing.ch/";
$phpwcms["admin_email"] = "info@hsb-marketing.ch";
// paths
$phpwcms["DOC_ROOT"] = $_SERVER['DOCUMENT_ROOT'];
$phpwcms["root"] = "phpwcms"; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"
// content values
$phpwcms["file_maxsize"] = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 538; //max width of the large preview image
$phpwcms["img_prev_height"] = 400; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds
// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"] = 0; //whether URL should be rewritable
$phpwcms["wysiwyg_editor"] = 2; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 1; //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"] = "en"; //default language
$phpwcms["charset"] = "UTF-8"; //default charset 'iso-8859-1'
$phpwcms["allow_remote_URL"] = 0; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled
$phpwcms["jpg_quality"] = 75; //JPG Quality Range 25-100
$phpwcms["sharpen_level"] = 1; //Sharpen Level - only ImageMagick: 0, 1, 2, 3, 4, 5 -- 0 = no, 5 = extra sharp
$phpwcms["allow_ext_init"] = 1; //allow including of custom external scripts at frontend initialization
$phpwcms["allow_ext_render"] = 1; //allow including of custom external scripts at frontend rendering
$phpwcms["cache_enabled"] = 0; //cache On/Off - 1 = caching On / 0 = caching Off (default)
$phpwcms["cache_timeout"] = 0; //default cache timeout setting in seconds - 0 = caching Off
$phpwcms["imgext_disabled"] = ''; //comma seperated list of imagetypes which should not be handled "pdf,ps"
$phpwcms["multimedia_ext"] = 'aif,aiff,mov,movie,mp3,mpeg,mpeg4,mpeg2,wav,swf,swc,ram,ra,wma,wmv,avi,au,midi,moov,rm,rpm,mid,midi'; //comma seperated list of file extensiosn allowed for multimedia
$phpwcms["inline_download"] = 1; //1 = try to display download documents in new window; 0 = show safe under dialog
$phpwcms["form_tracking"] = 1; //make a db entry for each form
$phpwcms["formmailer_set"] = array('allow_send_copy' => 0, 'global_recipient_email' => 'form@localhost'); //for better security handling
$phpwcms["allow_cntPHP_rt"] = 1; //allow PHP replacement tags and includes in content parts
// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"] = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms["site_ssl_url"] = ''; //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"] = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'
// smtp values
$phpwcms['SMTP_FROM_EMAIL'] = 'info@hsb-marketing.ch'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'phpwcms webmaster'; // reply/from name
$phpwcms['SMTP_HOST'] = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER'] = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS'] = ''; // default SMTP password
// Try to check and uncomment the DOCUMENT_ROOT if you have problems
// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "" on Windows - always replace "" by "/"
//$_SERVER['DOCUMENT_ROOT'] = '/home/www/xxxxxx/html';
?>
login.php
Code: Select all
<?php
/*************************************************************************************
Copyright notice
(c) 2002-2006 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
This script is part of PHPWCMS. The PHPWCMS web content management system is
free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
A copy is found in the textfile GPL.txt and important notices to the license
from the author is found in LICENSE.txt distributed with these scripts.
This script is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/
// session_name('hashID');
session_start();
$phpwcms = array();
$BL = array();
require_once ('config/phpwcms/conf.inc.php');
require_once ('include/inc_lib/default.inc.php');
require_once (PHPWCMS_ROOT.'/include/inc_lib/dbcon.inc.php');
require_once (PHPWCMS_ROOT.'/include/inc_lib/general.inc.php');
require_once (PHPWCMS_ROOT.'/include/inc_lib/backend.functions.inc.php');
require_once (PHPWCMS_ROOT.'/include/inc_lang/code.lang.inc.php');
$_SESSION['REFERER_URL'] = PHPWCMS_URL.'login.php';
// define vars
$err = 0;
$wcs_user = '';
// reset all inactive users
$sql = "UPDATE ".DB_PREPEND."phpwcms_userlog SET ";
$sql .= "logged_in = 0, logged_change = '".time()."' ";
$sql .= "WHERE logged_in = 1 AND ( ".time()." - logged_change ) > ".intval($phpwcms["max_time"]);
mysql_query($sql, $db);
//define language and check if language file is available
if(isset($_POST['form_lang'])) {
$_SESSION["wcs_user_lang"] = strtolower(substr(clean_slweg($_POST['form_lang']), 0, 2));
}
if(!isset($_SESSION["wcs_user_lang"])) {
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$_SESSION["wcs_user_lang"] = strtolower( substr( $_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2 ) );
} else {
$_SESSION["wcs_user_lang"] = strtolower($phpwcms["default_lang"]);
}
}
if(isset($BL[strtoupper($_SESSION["wcs_user_lang"])]) && file_exists('include/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php')) {
$lang_file_include = 'include/inc_lang/backend/'.$_SESSION["wcs_user_lang"].'/lang.inc.php';
$_SESSION["wcs_user_lang_custom"] = 1;
} else {
$lang_file_include = 'include/inc_lang/backend/en/lang.inc.php';
$_SESSION["wcs_user_lang"] = "en"; //by ono
$_SESSION["wcs_user_lang_custom"] = 0;
}
require_once ($lang_file_include);
//WYSIWYG EDITOR:
//0 = no wysiwyg editor (default)
//1 = FCKeditor
$_SESSION["WYSIWYG_EDITOR"] = 0;
$_SESSION["dhtml_hiding"] = 1;
$phpwcms["wysiwyg_editor"] = intval($phpwcms["wysiwyg_editor"]);
if($phpwcms["wysiwyg_editor"]) {
include_once ("include/inc_ext/phpsniff/phpSniff.class.php");
$c = new phpSniff();
if($c->browser_is("mz1.3+") || $c->browser_is("ns7+") || $c->browser_is("fx")) {
$_SESSION["dhtml_hiding"] = 0;
}
switch($phpwcms["wysiwyg_editor"]) {
/*
case 1: // HTMLarea
if( $c->browser_is("ie5.5+") ||
$c->browser_is("mz1.3+") ||
$c->browser_is("ns7+") ||
$c->browser_is("fx")
) $_SESSION["WYSIWYG_EDITOR"] = 1;
break;
*/
case 1:
case 3:
case 2: // FCKeditor 2
if( $c->browser_is("ie5.5+") ||
$c->browser_is("mz1.3+") ||
$c->browser_is("ns7+") ||
$c->browser_is("fx") ) {
$_SESSION["WYSIWYG_EDITOR"] = 2;
}
break;
// TinyMCE -> Experimental
case 5: if(file_exists(PHPWCMS_ROOT.'/include/inc_ext/tiny_mce/tiny_mce.js')) {
$_SESSION["WYSIWYG_EDITOR"] = 5;
break;
}
case 4: //Spaw
if( $c->browser_is("ie5.5+") ||
$c->browser_is("mz1.3+") ||
$c->browser_is("ns7+") ||
$c->browser_is("fx") ) {
$_SESSION["WYSIWYG_EDITOR"] = 4;
}
break;
}
}
if(isset($_POST['form_aktion']) && $_POST['form_aktion'] == 'login') {
$login_passed = 0;
$wcs_user = slweg(trim($_POST['form_loginname']));
$wcs_pass = slweg(trim($_POST['form_password']));
$sql_query = "SELECT * FROM ".DB_PREPEND."phpwcms_user WHERE usr_login='".
aporeplace($wcs_user)."' AND (usr_pass=PASSWORD('".
aporeplace($wcs_pass)."') OR usr_pass='".
aporeplace(md5($wcs_pass))."') AND usr_aktiv=1 AND (usr_fe=1 OR usr_fe=2)";
if($result = mysql_query($sql_query)) {
if($row = mysql_fetch_assoc($result)) {
$_SESSION["wcs_user"] = $wcs_user;
$_SESSION["wcs_pass"] = $wcs_pass;
$_SESSION["wcs_user_name"] = ($row["usr_name"]) ? $row["usr_name"] : $wcs_user;
$_SESSION["wcs_user_id"] = $row["usr_id"];
$_SESSION["wcs_user_aktiv"] = $row["usr_aktiv"];
$_SESSION["wcs_user_rechte"] = $row["usr_rechte"];
$_SESSION["wcs_user_email"] = $row["usr_email"];
$_SESSION["wcs_user_avatar"] = $row["usr_avatar"];
$_SESSION["wcs_user_logtime"] = time();
$_SESSION["wcs_user_admin"] = $row["usr_admin"];
$_SESSION["wcs_user_thumb"] = 1;
if($row["usr_lang"]) {
$_SESSION["wcs_user_lang"] = $row["usr_lang"];
}
$_SESSION["structure"] = unserialize($row["usr_var_structure"]);
$_SESSION["klapp"] = unserialize($row["usr_var_privatefile"]);
$_SESSION["pklapp"] = unserialize($row["usr_var_publicfile"]);
$_SESSION['wcs_user_var'] = unserialize($row["usr_vars"]);
$_SESSION["WYSIWYG_EDITOR"] = $row["usr_wysiwyg"];
$login_passed = 1;
}
mysql_free_result($result);
}
if($login_passed) {
//Schreiben der Login-Daten in Datenbank
$check = mysql_query( "SELECT COUNT(*) FROM ".DB_PREPEND."phpwcms_userlog WHERE logged_user='".
aporeplace($wcs_user)."' AND logged_in=1", $db );
if($row = mysql_fetch_row($check)) {
if(!$row[0]) {
//Wenn kein User geführt wird, dann neu anlegen
mysql_query("INSERT INTO ".DB_PREPEND."phpwcms_userlog ".
"(logged_user, logged_username, logged_start, logged_change, ".
"logged_in, logged_ip) VALUES ('".
aporeplace($wcs_user)."', '".aporeplace($_SESSION["wcs_user_name"])."', ".time().", ".
time().", 1, '".getRemoteIP()."')", $db );
}
}
mysql_free_result($check);
$_SESSION['PHPWCMS_ROOT'] = PHPWCMS_ROOT;
headerRedirect(PHPWCMS_URL."phpwcms.php");
} else {
$err = 1;
}
} else {
//Updaten, wenn User ausgewählt
$sql = "UPDATE ".DB_PREPEND."phpwcms_userlog SET logged_in = 0, logged_change = ". time() .
"WHERE logged_in = 1 AND (" . time() ." - logged_change ) > ".intval($phpwcms["max_time"]);
mysql_query($sql, $db);
}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>phpwcms: LOGIN</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo PHPWCMS_CHARSET ?>">
<meta name="robots" content="noindex, nofollow">
<link href="include/inc_css/login.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#D9DEE3" text="#000000" link="#000000" vlink="#000000" alink="#000000" onLoad="document.login_formular.form_loginname.focus();">
<table width="504" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3"><img src="img/leer.gif" alt="" width="1" height="12"></td>
</tr>
<tr>
<td colspan="3"><img src="img/leer.gif" alt="" width="18" height="1"><a href="index.php" target="_top"><img src="img/backend/preinfo2.jpg" alt="phpwcms" width="122" height="31" border="0"></a></td>
</tr>
<tr>
<td colspan="3"><img src="img/leer.gif" alt="" width="1" height="7"></td>
</tr>
<tr>
<td colspan="3"><a href="index.php" target="_top"><img src="img/backend/preinfo2_r4_c2.jpg" alt="phpwcms" width="504" height="154" border="0"></a></td>
</tr>
<tr>
<td colspan="3"><img src="img/leer.gif" alt="" width="1" height="11"></td>
</tr>
<tr>
<td width="15" style="width:15px;"><img src="img/backend/preinfo2_r6_c2.gif" alt="" width="15" height="15" border="0"></td>
<td width="474" bgcolor="#FFFFFF" style="width:474px;"><img src="img/backend/preinfo2_r6_c3.gif" alt="" width="474" height="15" border="0"></td>
<td width="15" style="width:15px;"><img src="img/backend/preinfo2_r6_c7.gif" alt="" width="15" height="15" border="0"></td>
</tr>
<tr>
<td style="background-image:url(img/backend/preinfo2_r7_c2.gif);background-repeat:repeat-y;" bgcolor="#FFFFFF"> </td>
<td align="center" bgcolor="#FFFFFF" style="padding-left:3px;padding-right:3px;"><form name="login_formular" method="post" action="login.php" autocomplete="off">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" valign="top"><?php
echo '<h1>'.$BL["login_text"].'</h1>';
if(file_exists('setup')) {
echo '<div class="error" style="font-weight:bold;margin-top:10px;">'.$BL["setup_dir_exists"].'</div>';
}
if(file_exists('phpwcms_code_snippets')) {
echo '<div class="error" style="font-weight:bold;margin-top:10px;">'.$BL["phpwcms_code_snippets_dir_exists"].'</div>';
}
if($err) {
echo '<div class="error" style="font-weight:bold;margin-top:10px;">'.$BL["login_error"].'</div>';
}
?></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="12"></td>
</tr>
<tr>
<td width="1%" align="right" nowrap="nowrap" class="v10"> <?php echo $BL["login_username"] ?>: </td>
<td class="v10"><input name="form_loginname" type="text" id="form_loginname" style="width:250px;" size="30" maxlength="30" value="<?php echo html_specialchars($wcs_user); ?>"></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3"></td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="v10"> <?php echo $BL["login_userpass"] ?>: </td>
<td class="v10"><input name="form_password" type="password" id="form_password" style="width:250px;" size="30" maxlength="20"></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4"></td>
</tr>
<tr>
<td align="right" nowrap="nowrap" class="v10"> <?php echo $BL["login_lang"] ?>: </td>
<td class="v10"><select name="form_lang" id="form_lang" style="width:250px;">
<?php
// check available languages installed and build language selector menu
$lang_dirs = opendir("include/inc_lang/backend");
while($lang_codes = readdir( $lang_dirs )) {
if( $lang_codes != "." && $lang_codes != ".." && file_exists("include/inc_lang/backend/".$lang_codes."/lang.inc.php")) {
echo '<option value="'.$lang_codes.'"';
echo ($lang_codes == $_SESSION["wcs_user_lang"]) ? " selected" : "";
echo '>';
echo (isset($BL[strtoupper($lang_codes)])) ? $BL[strtoupper($lang_codes)] : strtoupper($lang_codes);
echo "</option>\n";
}
}
closedir( $lang_dirs );
?>
</select></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10"></td>
</tr>
<tr>
<td> </td>
<td><input name="Submit" type="submit" value="<?php echo $BL["login_button"] ?>"><input name="form_aktion" type="hidden" id="form_aktion" value="login"></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="20"></td></tr>
</table>
</form></td>
<td style="background-image:url(img/backend/preinfo2_r7_c7.gif);background-repeat:repeat-y;background-position:right;" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td style="background-image:url(img/backend/preinfo2_r7_c2.gif);background-repeat:repeat-y;" bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF" style="padding-left:3px;padding-right:3px;"><p style="margin-bottom:5px;"><strong>phpwcms</strong> Copyright © 2003—2006
<a title="oliver at phpwcms dot de" onClick="location.href='mailto:oliver'+'@'+'phpwcms'+'.'+'de';return false;" href="#" style="text-decoration:none;">Oliver
Georgi</a>. Extensions are copyright of their respective owners.
Visit <a href="http://www.phpwcms.de" target="_blank">http://www.phpwcms.de</a> for
details. Obstructing the appearance of this notice is prohibited
by law.</p>
<p style="margin-bottom:5px;">phpwcms is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.</p>
<p style="margin-bottom:5px;">phpwcms is distributed
in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the <a href="http://www.gnu.org/licenses/gpl.html" target="_blank">GNU
General Public License</a> for
more details.</p>
<p>You should have received
a copy of the GNU General Public License along with this program;
if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA</p></td>
<td style="background-image:url(img/backend/preinfo2_r7_c7.gif);background-repeat:repeat-y;background-position:right;" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td><img src="img/backend/preinfo2_r9_c2.gif" alt="" width="15" height="15" border="0"></td>
<td bgcolor="#FFFFFF"><img src="img/backend/preinfo2_r9_c3.gif" alt="" width="474" height="15" border="0"></td>
<td><img src="img/backend/preinfo2_r9_c7.gif" alt="" width="15" height="15" border="0"></td>
</tr>
</table>
</body>
</html>
Danke
Posted: Mon 4. Jun 2007, 22:18
by Strahlemann
Hängt von deinem Provider ab wo nun dein DOCROOT ist...
Wenn dieser direkt in der PHPWCMS Distribution endet dann wäre die Option $phpwcms["root"] = "phpwcms"; //default: "" falsch.
Hier wäre dann folgender Eintrag notwendig:
$phpwcms["root"] = ""; //default: ""
Du kannst ja mal diesen Wert probieren...
LG. Lukas
Posted: Mon 4. Jun 2007, 22:32
by helloimac
Danke Lukas, werde ich morgen gleich mal ausprobieren, Scheint der Fall zu sein, wie Du das beschreibst:
Domain: hsb-marketing.ch, Weiterleiten: /phpwcms
Posted: Tue 5. Jun 2007, 16:13
by helloimac
Wenn ich das in der config.inc.php so ändere, kommt folgende Meldung:
We are sorry!
For service reasons the system is temporarily not attainable.
Visit us later again!
In der Adresszeile steht:
http://hsb-marketing.ch/dbdown.php
Posted: Tue 5. Jun 2007, 21:13
by juergen
Hallo,
deine Kiste sagt:
Warning: main(/home/www/web553/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php): failed to open stream:No such file or directory in /home/www/web553/html/phpwcms/index.php on line 57
Fatal error: main(): Failed opening required '/home/www/web553/html/phpwcms/phpwcms/include/inc_lib/dbcon.inc.php' (include_path='.:/usr/share/php') in /home/www/web553/html/phpwcms/index.php on line 57
was vermuten lässt, dass du noch immer das Unterverzeichnis eingetragen ist. Die doc-root lautet demzufolge:
Unterverzeichnis: phpwcms.
Wenn du das alles sortierst klappt das, nötigenfalls auch noch mal die Zugagsdaten der Datenbank überprüfen
Jürgen
Posted: Tue 5. Jun 2007, 23:20
by helloimac
Hallo Jürgen
Besten Dank für Deine Infos.
Leider ist es so, dass ich seit heute Nachmittag auch nicht mehr auf die Datenbank zugreifen kann. Der Support des webhosters.
http://www.dynamic-net.ch ist unter jeder Würde! Obwohl ich am vergangenen Freitag per Ticketsystem eine Anfrage mit hoher Priorität gestellt habe (die ist kostenpflichtig, wenn der Fehler bei mir liegt) wurde bis heute nichts unternommen, resp. wurden nur so banale Fragen wie "Haben Sie die Archivdateien verschoben?" gestellt.
Wenn nach der Wiederherstellung ab Backup etwas mit dem Unterverzeichnis nicht mehr stimmt, ist es möglich, dass eine alte Datei, ein altes Backup aus der Zeit, bevor die Page freigeschaltet wurde, zum Handkuss kam? Ich habe da überhaupt nichts verändert, und von alleine passiert da ja gar nichts?
Bin nicht sicher, ob ich die Ausführungen von Dir uns Lukas richtig verstanden habe. Muss ich – siehe unten – "phpwcms" rauslöschen?
$phpwcms["root"] = "
phpwcms"; //default: ""
config.inc.php
Code: Select all
<?php
/*************************************************************************************
Copyright notice
(c) 2002-2006 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
This script is part of PHPWCMS. The PHPWCMS web content management system is
free software; you can redistribute it and/or modify it under the terms of
the GNU General Public License as published by the Free Software Foundation;
either version 2 of the License, or (at your option) any later version.
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
A copy is found in the textfile GPL.txt and important notices to the license
from the author is found in LICENSE.txt distributed with these scripts.
This script is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
This copyright notice MUST APPEAR in all copies of the script!
*************************************************************************************/
// phpwcms base values -> needed in any document
// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["db_user"] = "xxxxxx";
$phpwcms["db_pass"] = "XXXXXX";
$phpwcms["db_table"] = "xxxxxx";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;
$phpwcms['db_charset'] = 'utf8';
$phpwcms['db_collation'] = 'utf8_general_ci';
// site values
$phpwcms["site"] = "http://hsb-marketing.ch/";
$phpwcms["admin_email"] = "info@hsb-marketing.ch";
// paths
$phpwcms["DOC_ROOT"] = $_SERVER['DOCUMENT_ROOT'];
$phpwcms["root"] = "phpwcms"; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"
// content values
$phpwcms["file_maxsize"] = 2097152; //Bytes (50 x 1024 x 1024)
$phpwcms["content_width"] = 538; //max width of the article content column - important for rendering multi column images
$phpwcms["img_list_width"] = 100; //max with of the list thumbnail image
$phpwcms["img_list_height"] = 75; //max height of the list thumbnail image
$phpwcms["img_prev_width"] = 538; //max width of the large preview image
$phpwcms["img_prev_height"] = 400; //max height of the large preview image
$phpwcms["max_time"] = 1800; //logout after max_time/60 seconds
// other stuff
$phpwcms["compress_page"] = 0; //0 = OFF, 1-9: page compression ON (1 = low level, 9 = highest level)
$phpwcms["imagick"] = 0; //0 = GD, 1 = ImageMagick, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"] = ""; //Path to ImageMagick (default="" - none)
$phpwcms["use_gd2"] = 1; //0 = GD1, 1 = GD2
$phpwcms["rewrite_url"] = 0; //whether URL should be rewritable
$phpwcms["wysiwyg_editor"] = 2; //0 = no wysiwyg editor, 1 = HTMLarea, 2 = FCKeditor, 3 = browser based
$phpwcms["phpmyadmin"] = 1; //enable/disable phpMyAdmin in Backend
$phpwcms["default_lang"] = "en"; //default language
$phpwcms["charset"] = "UTF-8"; //default charset 'iso-8859-1'
$phpwcms["allow_remote_URL"] = 0; //0 = no remote URL in {PHP:...} replacement tag allowed, 1 = allowed
$phpwcms["gt_mod"] = 0; //0 = Graphical Text MOD disabled, 1 = enabled
$phpwcms["jpg_quality"] = 75; //JPG Quality Range 25-100
$phpwcms["sharpen_level"] = 1; //Sharpen Level - only ImageMagick: 0, 1, 2, 3, 4, 5 -- 0 = no, 5 = extra sharp
$phpwcms["allow_ext_init"] = 1; //allow including of custom external scripts at frontend initialization
$phpwcms["allow_ext_render"] = 1; //allow including of custom external scripts at frontend rendering
$phpwcms["cache_enabled"] = 0; //cache On/Off - 1 = caching On / 0 = caching Off (default)
$phpwcms["cache_timeout"] = 0; //default cache timeout setting in seconds - 0 = caching Off
$phpwcms["imgext_disabled"] = ''; //comma seperated list of imagetypes which should not be handled "pdf,ps"
$phpwcms["multimedia_ext"] = 'aif,aiff,mov,movie,mp3,mpeg,mpeg4,mpeg2,wav,swf,swc,ram,ra,wma,wmv,avi,au,midi,moov,rm,rpm,mid,midi'; //comma seperated list of file extensiosn allowed for multimedia
$phpwcms["inline_download"] = 1; //1 = try to display download documents in new window; 0 = show safe under dialog
$phpwcms["form_tracking"] = 1; //make a db entry for each form
$phpwcms["formmailer_set"] = array('allow_send_copy' => 0, 'global_recipient_email' => 'form@localhost'); //for better security handling
$phpwcms["allow_cntPHP_rt"] = 1; //allow PHP replacement tags and includes in content parts
// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"] = '0'; // tuns the SSL Support of WCMS on(1) or off (0) DEFAULT '0'
$phpwcms["site_ssl_url"] = ''; //URL assigned to the SSL Certificate. DON'T add a slash at the End! Exp. "https://www.yourdomainhere.tld"
$phpwcms["site_ssl_port"] = '443'; //The Port on which you SSL Service serve the secure Sites. Servers DEFAULT is '443'
// smtp values
$phpwcms['SMTP_FROM_EMAIL'] = 'info@hsb-marketing.ch'; // reply/from email address
$phpwcms['SMTP_FROM_NAME'] = 'phpwcms webmaster'; // reply/from name
$phpwcms['SMTP_HOST'] = 'localhost'; // SMTP server (host/IP)
$phpwcms['SMTP_PORT'] = 25; // SMTP-Server port (default 25)
$phpwcms['SMTP_MAILER'] = 'mail'; // default phpMailer: smtp, mail (default), sendmail
$phpwcms['SMTP_AUTH'] = 0; // sets SMTP_AUTH to ON/OFF
$phpwcms['SMTP_USER'] = ''; // default SMTP login (user) name
$phpwcms['SMTP_PASS'] = ''; // default SMTP password
// Try to check and uncomment the DOCUMENT_ROOT if you have problems
// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "\" on Windows - always replace "\" by "/"
//$_SERVER['DOCUMENT_ROOT'] = '/home/www/xxxxxx/html';
?>
Besten Dank
Posted: Wed 6. Jun 2007, 00:10
by flip-flop
Hi,
läuft deine Seite nun in einem Unterverzeichnis oder nicht?
Wenn die Seite direkt über die Domain ohne Zusatz erreichbar ist, dann ist
$phpwcms["root"] = "phpwcms"; falsch. Sollte in diesem Fall so heißen: $phpwcms["root"] = ""; - auch wenn die Domain beim Provider auf ein Verzeichnis phpwcms umgebogen ist.
In der DB werden keine Pfade gespeichert.
Ich würde außerdem $phpwcms['site'] = 'http://'.$_SERVER['SERVER_NAME'].'/'; setzen.
Gruß Knut
Posted: Wed 6. Jun 2007, 09:34
by helloimac
Hallo Knut
Danke für Deinen Input.
Die Seite ist direkt über die Domain erreichbar. Wie es aussieht, wurde eine alte Backup-Datei, aus der Zeit, als die Page noch nicht freigeschaltet war, nicht überschrieben, resp. wieder hochgeladen, oder der Hoster hat irgendeine Umstellung vorgenommen?
Werde zuerst mal den Hoster zur Brust nehmen, wegen dem Zugriff auf die Datenbank, der seit dem Backup/restore nicht mehr möglich ist.
Fehlermeldung phpmysql:
Code: Select all
Fehler
#1045 - Access denied for user 'xxxxxx'@'localhost' (using password: YES)
In den FAQ's des Hosters steht folgendes:
Code: Select all
8. Wie erstelle ich eine mySQL-Datenbank? (Details)
Confixx
1. Zuerst müssen Sie sich in Ihre Confixx-Administration einloggen (webX + Passwort)
2. Unter "DATENBANKEN > "MySQL" können Sie eine neue Datenbank erstellen
3. Datenbankname wird von Confixx ausgegeben, sowie das Passwort (Passwort ist immer das gleiche für alle weiteren erstellten Datenbanken)
Script
$dbhost = "localhost"
$dbport = "3306"
$user = "webX" ("X" muss durch Ihre jeweilige WEB-Nummer ersetzt werden)
$pass = "IHR PASSWORT"
$database = "usr_webX_X" ("X" muss durch Ihre jeweilige WEB-/Datenbank-Nummer ersetzt werden)
Habe nun versucht, Deine Änderungen bez. 'site', sowie bez. "dbport" vorzunehmen:
Code: Select all
// phpwcms base values -> needed in any document
// database values
$phpwcms["db_host"] = "localhost";
$phpwcms["dbport"] = "3306"
$phpwcms["db_user"] = "xxxxxx";
$phpwcms["db_pass"] = "xxxxxx";
$phpwcms["db_table"] = "usr_xxxxxx_1";
$phpwcms["db_prepend"] = "";
$phpwcms["db_pers"] = 1;
$phpwcms['db_charset'] = 'utf8';
$phpwcms['db_collation'] = 'utf8_general_ci';
// site values
$phpwcms['site'] = 'http://'.$_SERVER['SERVER_NAME'].'/';
$phpwcms["admin_email"] = "info@hsb-marketing.ch";
// paths
$phpwcms["DOC_ROOT"] = $_SERVER['DOCUMENT_ROOT'];
$phpwcms["root"] = "phpwcms"; //default: ""
$phpwcms["file_path"] = "phpwcms_filestorage"; //default: "phpwcms_filestorage"
$phpwcms["templates"] = "phpwcms_template"; //default: "phpwcms_template"
$phpwcms["content_path"] = "content"; //default: "content"
$phpwcms["cimage_path"] = "images"; //default: "images"
$phpwcms["ftp_path"] = "phpwcms_ftp"; //default: "phpwcms_ftp"
Dann bekomme ich folgende Fehlermeldung:
Code: Select all
Parse error: syntax error, unexpected T_VARIABLE in /home/www/xxxxxx/html/phpwcms/config/phpwcms/conf.inc.php on line 28
Wenn ich nun auch die Änderung bei "root" vornehme, kommt dieselbe Fehlermeldung.
Danke – melde mich wieder, sobald das DB-Problem behoben ist.
Posted: Wed 6. Jun 2007, 11:57
by helloimac
Hallo zusammen
Das Problem lag tatsächlich da, wo ich es vermutet hatte. Habe am Hauptsitz den Supportverantwortlichen verlangt, das Problem geschildert und einige sehr kritische Fragen gestellt. Er hat sich der Sache persönlich angenommen und konnte das Problem in kurzer Zeit lösen.
Die Backup-Datei wurde aus irgendwelchen Gründen nicht am richtigen Ort abgelegt?, der Restore erfolgte von einem alten Backup vom Februar, ausserdem musste das Passwort für die Datenbank zurückgesetzt, und neu definiert werden.
Das hätten die … bitte auswählen …
http://www.hyperhero.com/de/insults.htm … doch bitte schon am Freitag feststellen können.
Nochmals besten Dank für eure Unterstützung.
Freundliche Grüsse aus der Schweiz
Martin
Posted: Wed 6. Jun 2007, 12:22
by flip-flop
Fehlermeldung: Was steht denn in der Zeile 28?
Du solltest dich auf eine Variante der Anführungszeichen festlegen, besser die schmalen.
Das root directory ist ja immer noch falsch.
Passwörter und DB-Namen zu posten kann ziemlich unangenehm werden. Vor allem wenn es so einfache sind ............. Daraus läßt sich schließen, das das neue PW auch so einfach ist.
Nimm bitte die DB-Namen und PWs raus.!!!!!
Knut
Posted: Wed 6. Jun 2007, 14:26
by helloimac
Danke Knut, habe ich übersehen …
Habe jetzt alle Änderungen gemacht, inkl. "
Code: Select all
// site values
$phpwcms['site'] = 'http://'.$_SERVER['SERVER_NAME'].'/';
$phpwcms['admin_email'] = 'info@hsb-marketing.ch';
// paths
$phpwcms['DOC_ROOT'] = $_SERVER['DOCUMENT_ROOT'];
$phpwcms['root'] = ''; //default: ''
$phpwcms['file_path'] = 'phpwcms_filestorage'; //default: 'phpwcms_filestorage'
$phpwcms['templates'] = 'phpwcms_template'; //default: 'phpwcms_template'
$phpwcms['content_path'] = 'content'; //default: 'content'
$phpwcms['cimage_path'] = 'images'; //default: 'images'
$phpwcms['ftp_path'] = 'phpwcms_ftp'; //default: 'phpwcms_ftp'
Läuft wieder einwandfrei. Danke