Internal Server Error in localhost

Nein :wink:

ich schreibe http://localhost/oxid/admin/source/index.php und bekommt gleiche fehler…wenn schreibt http://localhost/oxid/source/index.php, bekommt von einiger sekunden das fenster,

und dann der Warnung

Not Found

The requested URL was not found on this server.

jetzt sollte etwas neues im oxideshop.log stehen.
Und du hast wahrscheinlich wieder eine falsche URL in der config.inc.php stehen, deswegen kommt nach der Weiterleitung eine “not found” Seite.

jetzt etwashat verändert…mit http://localhost/oxid/sorce/admin/ ich habe fehler weil frhr schreibt http://localhost/oxid/admin/source

Auf der oxideshop bekommt noch nicht…

welche Shop URLs sind in der config.inc.php eingetragen?

welche Shop URLs sind in der config.inc.php eingetragen?

$this->sShopURL     = '/var/www/html/oxid/source';

In meine apache2 log, bekommt das…

[Tue Apr 13 18:30:54.915805 2021] [php7:error] [pid 28257] [client 127.0.0.1:41986] script ‘/var/www/html/index.php’ not found or unable to stat

Es wurd hier schon mehrfach dir gesagt: sShopUrl muss eine gültige Url sein, nicht der lokale Pfad zum Shop root.

Sofern der shop root tatsächlich unter /var/www/html/oxid/source liegt, musst du folgendes eintragen:

    $this->sShopDir     = '/var/www/html/oxid/source';
$this->sCompileDir  = '/var/www/html/oxid/source/tmp';

Bitte ändere beide Werte danach nicht mehr ab.
Welche Url für $this->sShopURL aktuell die richtig auf einem Webserver sein soll, geht für mich aktuell aus dem Verlauf leider nicht hervor. Das ist zu verwirrend.

@joseba, lies doch nochmal richtig und langsam:

Bei ShopURL muss so etwas stehen mit http: vorn, so wie Du es im Browser aufrufen würdest. Schau in Deine hosts-Datei, wenn Du es nicht mehr genau weißt.

ShopDir bezeichnet den absoluten Pfad auf Deiner Maschine, also z.B. /var/www/… oder auch /home/joseba/Public - je nachdem, wie alles bei Dir konfiguriert ist.

Der Benutzer Deiner Shopdatenbank muss der Benutzer sein, den Du in der config.inc.php des Shops eingetragen hast.

Das ist übrigens bei jedem CMS so.

Entschuldigung, frühr habe nicht gur verstande…wie jetzt habe,

$this->dbType = 'mysql';
$this->dbCharset = 'utf8';
$this->dbHost = 'localhost'; // database host name
$this->dbPort  = 3306; // tcp port to which the database is bound
$this->dbName = 'xxxxx'; // database name
$this->dbUser = 'root'; // database user name
$this->dbPwd  = 'xxxxx'; // database user password
$this->dbDriverOptions = []; // database driver options
$this->dbUnixSocket = null; // unix domain socket, optional
$this->sShopURL     = 'http://localhost/oxid/source'; // eShop base url, required
$this->sSSLShopURL  = 'https://localhost/oxid/source;'            // eShop SSL url, optional
$this->sAdminSSLURL = 'https://localhost/oxid/source/admin';           // eShop Admin SSL url, optional
$this->sShopDir     = '/var/www/html/oxid/source';
$this->sCompileDir  = '/var/www/html/oxid/source/tmp';

Und - jetzt läuft wohl alles?

Nein…bekommt eine Weiße Fenster…

In der oxideshop log, bekommt,

[13 Apr 19:02:19.663928 2021] [uncaught error] [type E_PARSE] [file /var/www/html/oxid/source/config.inc.php] [line 20] [code ] [message syntax error, unexpected ‘$this’ (T_VARIABLE)]

In meine apache2 log, bekommt,

[Tue Apr 13 19:02:19.664087 2021] [php7:error] [pid 31059] [client 127.0.0.1:43420] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0

bei einer weißen Seite müsste etwas im webserver error log stehen

was sagt der apache log…

[Tue Apr 13 19:02:19.664073 2021] [php7:error] [pid 31059] [client 127.0.0.1:43420] PHP Parse error:  syntax error, unexpected '$this' (T_VARIABLE) in /var/www/html/oxid/source/config.inc.php on line 20
[Tue Apr 13 19:02:19.664087 2021] [php7:error] [pid 31059] [client 127.0.0.1:43420] PHP Fatal error:  Exception thrown without a stack frame in Unknown on line 0

Meine Güte, zeig nochmal die aktuelle config.inc.php

1 Like

Jetzt… :grinning:

wie habe jetzt…

$this->dbType = 'mysql';
$this->dbCharset = 'utf8';
$this->dbHost = 'localhost'; // database host name
$this->dbPort  = 3306; // tcp port to which the database is bound
$this->dbName = 'xxxxx'; // database name
$this->dbUser = 'root'; // database user name
$this->dbPwd  = 'xxxx'; // database user password
$this->dbDriverOptions = []; // database driver options
$this->dbUnixSocket = null; // unix domain socket, optional
$this->sShopURL     = 'http://localhost/oxid/source'; // eShop base url, required
$this->sSSLShopURL  = 'https://localhost/oxid/source';            // eShop SSL url, optional
$this->sAdminSSLURL = 'http://localhost/oxid/source/admin';           // eShop Admin SSL url, optional
$this->sShopDir     = '/var/www/html/oxid/source';
$this->sCompileDir  = '/var/www/html/oxid/source/tmp';

Jetzt bekomme alles beiden der Verwaltung Fenster und der Webseite…

Ich wünsche alle euch eine schöne Abends!

1 Like

Also genau so, wie oben von Marco und mir beschrieben. Du solltest Antworten besser lesen. Ist nicht das erste Mal so :innocent:

Hast du Recht, das Probleme, wenn versuche mehrerer sache machen, wie beispiel Gestern, die sucht auch das Probleme in Datenbank, vergesse es… :wink:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.