Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
Miguel
Posts: 192
Joined: Tue 30. Oct 2007, 13:35
Location: Düsseldorf

Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by Miguel »

Hallo zusammen,

ich habe eine Installation (Version 1.5.4.1) in ein Unterverzeichnis "server/meinunterverzeichnis" unter "http://www.meinedomain.com" bei 1und1 kopiert und eine Subdomain "http://2013.meinedomain.de" angelegt, die auf das Unterverzeichnis zeigt.

Dann habe ich bei 1und1 eine neue Datenbank angelegt und den Inhalt der vorher exportierten Datenbank vom Testserver erfolgreich importiert.

Die neuen Zugangsdaten für die Datenbank habe ich in der conf.inc.php (hier nur der relevante Teil der Datei) so geändert:

Code: Select all

// database values
$phpwcms['db_host']           = 'db123456789.db.1and1.com';
$phpwcms['db_user']           = 'dbo123456789';
$phpwcms['db_pass']           = 'Passwort';
$phpwcms['db_table']          = 'db123456789';
$phpwcms['db_prepend']        = '';
$phpwcms['db_pers']           = 0;
$phpwcms['db_charset']        = 'utf8';
$phpwcms['db_collation']      = 'utf8_general_ci';
$phpwcms['db_version']        = 50516;
$phpwcms['db_timezone']       = '';
 // set MySQL session time zone http://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html
// site values
$phpwcms['site']              = 'http://'.$_SERVER['SERVER_NAME'].'/'; // recommend 'http://'.$_SERVER['SERVER_NAME'].'/'
$phpwcms['site_ssl_mode']     = 0; // turns the SSL Support of WCMS on (1) or off (0), default value 0
$phpwcms['site_ssl_url']      = ''; // URL assigned to the SSL Certificate. Recommend 'https://'.$_SERVER['SERVER_NAME'].'/'
$phpwcms['site_ssl_port']     = 443; // The Port on which you SSL Service serve the secure Sites, default SSL port is 443

$phpwcms['admin_name']        = 'Webmaster'; //default: Webmaster
$phpwcms['admin_user']        = 'admin'; //default: admin
$phpwcms['admin_pass']        = '0f3c36b0f2dbfac6fc9783280eaa7dc8'; //MD5(phpwcms)
$phpwcms['admin_email']       = 'noreplay@host'; //default: noreplay@host

// paths
$phpwcms['DOC_ROOT']          = $_SERVER['DOCUMENT_ROOT'];// current DOC_ROOT seems to be: 'alter_pfad' 
$phpwcms['root']         		= '';         //default: ''
$phpwcms['file_path']         = 'filearchive';    //default: 'filearchive'
$phpwcms['templates']         = 'template';    //default: 'template'
$phpwcms['content_path']      = 'content'; //default: 'content'
$phpwcms['cimage_path']       = 'images';  //default: 'images'
$phpwcms['ftp_path']          = 'upload';     //default: 'upload'
Wenn ich nun die Subdomain "http://2013.meinedomain.de" in beliebigem Browser aufrufe, wird die Datei "dbdown-php" (We are sorry! For service reasons the system is temporarily not attainable. Visit us later again!) geladen und angezeigt.

Da die Subdomain bzw. das Unterverzeichnis "Server/Unterverzeichnis" das Rootverzeichnis sein müsste, habe ich in der conf.inc.php kein Unterverzeichnis angegeben. Woran kann das liegen, dass die Datenbank nicht geladen oder gefunden wird?? Der Inhalt der Tabellen scheint mit den Ausgangstabellen übereinzustimmen.

Viele Grüße und danke für Tipps
Miguel
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by update »

Glaskugel fragt: Wieso gibst Du die root nicht an?
Zwischen server_root und document_root soll es Unterschiede geben...
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by flip-flop »

Beginnt dein DB-Passwort zufällig mit einer Zahl?

Sonst sollte das mit deiner Einstellung eigentlich funktionieren.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Miguel
Posts: 192
Joined: Tue 30. Oct 2007, 13:35
Location: Düsseldorf

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by Miguel »

Hallo Knut, das Passwort besteht nur aus Buchstaben.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by update »

Hattest Du sowas ähnliches nicht schon mal: http://forum.phpwcms.org/viewtopic.php? ... is#p107990 ?
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by flip-flop »

Teste mal folgendes Script im Wurzelverzeichnis deiner Installation also das Verzeichnis auf das die Subdomain zeigt. Wenn das nicht klappt im Wurzelverzeichnis der Domain.

Das Script listet einfach die Tabellen der angegebenen DB auf.

Code: Select all

<?php

$host = "dbxx.db.1and1.com";
$db = "dbXXXXXXXX";
$dbuser = "pXXXXXXX";
$dbpw = "XXXXXXX";

MYSQL_CONNECT($host, $dbuser, $dbpw) or die ( "<H3>Datenbankserver nicht erreichbar</H3>");
MYSQL_SELECT_DB($db) or die ( "<H3>Datenbank nicht vorhanden</H3>");

$result = MYSQL_QUERY("SHOW TABLES");
$numrow = MYSQL_NUM_ROWS($result);

for($i = 0;$i < $numrow;$i++) {
$table = MYSQL_RESULT($result,$i);
echo "$table ... ";
echo "<br>";
}

MYSQL_CLOSE();

?>
Bitte nach dem Test die Datei wieder entfernen.

- Es ist eine MySql-5 DB?
- Der Hosteintrag "dbxx.db.1and1.com" ist richtig?
I.d.R. verwendet 1und1 in D "dbxx.1und1.de", kann aber auch das andere Konstrukt sein.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Miguel
Posts: 192
Joined: Tue 30. Oct 2007, 13:35
Location: Düsseldorf

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by Miguel »

Hallo Knut,

der Aufruf des Scripts in der angelegten Datei "db_test.php" liefert sowohl im Subdomain-Verzeichnis als auch im Hauptdomain-Verzeichnis diese Meldung:

"Datenbankserver nicht erreichbar."

Das sind die ersten Zeilen der importierten Datenbank:

Code: Select all

-- phpMyAdmin SQL Dump
-- version 3.4.3.1
-- http://www.phpmyadmin.net
--
-- Host: localhost:3306
-- Erstellungszeit: 27. Jan 2013 um 22:56
-- Server Version: 5.5.27
-- PHP-Version: 5.3.16

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- Datenbank: `dbo445247156`
--

-- --------------------------------------------------------

--
-- Tabellenstruktur für Tabelle `phpwcms_address`
--

CREATE TABLE IF NOT EXISTS `phpwcms_address` (
  `address_id` int(11) NOT NULL AUTO_INCREMENT,
  `address_key` varchar(255) NOT NULL DEFAULT '',
  `address_email` text NOT NULL,
  `address_name` text NOT NULL,
  `address_verified` int(1) NOT NULL DEFAULT '0',
  `address_tstamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `address_subscription` blob NOT NULL,
  `address_iddetail` int(11) NOT NULL DEFAULT '0',
  `address_url1` varchar(255) NOT NULL DEFAULT '',
  `address_url2` varchar(255) NOT NULL DEFAULT '',
  PRIMARY KEY (`address_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
Viele Grüße
Miguel
Miguel
Posts: 192
Joined: Tue 30. Oct 2007, 13:35
Location: Düsseldorf

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by Miguel »

Es ist eine MySql-5 DB?
- Der Hosteintrag "dbxx.db.1and1.com" ist richtig?
I.d.R. verwendet 1und1 in D "dbxx.1und1.de", kann aber auch das andere Konstrukt sein.
Ach ja, noch zu deinen Fragen:

Folgende Infos wurden nach Einrichtung der Datenbank angezeigt:

Datenbankname: db123456789
Hostname: db123456789.db.1and1.com
Port: 3306
Benutzername: dbo123456789
Passwort: DasPasswort
Beschreibung: ets2013
Version: MySQL5.0

Viele Grüße
Miguel
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by flip-flop »

Das ist kein phpwcms-Problem, du erreichst einfach diese DB nicht.

Läuft auf dem Account irgendein Sicherheitspaket?

Versuche mal als Host: db123456789.db.1and1.com:3306

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Miguel
Posts: 192
Joined: Tue 30. Oct 2007, 13:35
Location: Düsseldorf

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by Miguel »

Hallo Knut,

ich habe mittlerweile 1 x die neue Datenbank gelöscht, eine neue angelegt und die Tabellen neu importiert.

Jetzt werden mit dem Script die Tabellen tatsächlich aufgelistet.

Wenn ich aber die Subdomain aufrufe, meldet er in etwa folgendes:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /homepages/29/d159888111/htdocs/server/subdomain/include/inc_lib/helper.image.php on line 106

Viele Grüße
Miguel
nameless1
Posts: 878
Joined: Sun 27. Apr 2008, 23:22

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by nameless1 »

Miguel wrote:T_OLD_FUNCTION
... bedeutet veralterte funktion.

update des phpwcms oder downgrad des php (schlechteste lösung und max. kruzfristig wirklich ne lösung).
Miguel
Posts: 192
Joined: Tue 30. Oct 2007, 13:35
Location: Düsseldorf

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by Miguel »

Hallo zusammen,

eine gerelle Frage: Kann es sein, dass eine veraltete Installation irgendwann nicht mehr funktioniert, wenn ein Provider seine Server-Software updated?

Soll ich auch die neueste Version von phpwcms updaten?

Viele Grüße
Miguel
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by flip-flop »

Das sieht mir eher nach einer veralteten php-Version aus.
Ist keine Warnung dazu beim Setup aufgetaucht?

Stelle auf php5 um, entweder im Accountbackend oder in der zugehörigen .htaccess im Seitenwurzelverzeichnis, also dort wo die Datei login.php beefindet.

Code: Select all

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Miguel
Posts: 192
Joined: Tue 30. Oct 2007, 13:35
Location: Düsseldorf

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by Miguel »

Hallo Knut,

danke, ein Setup gab es ja nicht, ich habe die Installation 1:1 von einem anderen Server portiert und die MySql-Daten importiert.

Es ist die Version phpwcms 1.5.4.1

Ich setze gleich mal die beiden Code-Zeilen in die htaccess ein.

Viele Grüße
Miguel
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: Portierte Installation 1.5.4.1 in Subdomain läuft nicht

Post by flip-flop »

Kannst du auch im Account-Backend umstellen, denn ab 01.04.2013 unterstützt 1und1 die PHP-Versionen 4 und 5.2 nicht mehr.
Es wird dann nur noch PHP 5.4 eingesetzt.

Das bedeutet, alles andere was auf dem Account noch Funktionen aus PHP 4/5.2 verwendet, wird nicht mehr funktionieren.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply