Seite 1 von 1

(SOLVED) openwb startet nicht mehr nach Erstinstallation

Verfasst: Sa Jan 23, 2021 9:31 am
von DerOlli
Guten Morgen zusammen,

ich habe versucht openweb auf meinem Raspberry zu installieren, lief auch erst, aber nach einem Neustart erreiche ich das Webend nicht mehr.
Es erscheint immer:

Code: Alles auswählen

Not Found

The requested URL was not found on this server.

Apache/2.4.38 (Raspbian) Server at 192.168.0.13 Port 80
versuche ich direkt auf:
http://192.168.0.13/openWB/web/index.php
kommt folgender Code:

Code: Alles auswählen

<?php
	// check if update.sh is still running
	$updateinprogress = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/openWB/ramdisk/updateinprogress');
	// check if atreboot.sh is still running
	$bootinprogress = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/openWB/ramdisk/bootinprogress');
	// if yes, show placeholder. If not, show theme
	if ( $bootinprogress == 1 or $updateinprogress == 1) {
		//atreboot.sh or update.sh still in progress, wait 5 seconds and retry
		include 'notready.html';
	} else {
		// load openwb.conf
		$lines = file($_SERVER['DOCUMENT_ROOT'] . '/openWB/openwb.conf');
		foreach($lines as $line) {
			list($key, $value) = explode("=", $line, 2);
			${$key."old"} = trim( $value, " '\t\n\r\0\x0B" ); // remove all garbage and single quotes
		}

		// check for acknoledgement of dataprotection
		if ( $datenschutzackold == 0 && $clouduserold !== "leer") {
			// load dataprotection page
			include 'tools/datenschutz.html';
		} elseif ( !isset($wizzarddoneold) || ($wizzarddoneold < 100) ) {
			// load wizzard page
			include 'tools/wizzard.php';
		} elseif ( $isssold == 1 ) {
			// load chargepoint only page
			include 'isss.html';
		} else {
			// load normal UI
			// check if forced theme is activated in config file
			if ( isset($simplemodeold) && $simplemodeold == 1 ) {
				// force hidden theme
				?><!-- including themes/hidden/simplemode.php --><?php
				include 'themes/hidden/simplemode.php';
			} else {
				// check if theme cookie exists and theme is installed
				// else set standard theme
				if ( !(isset($_COOKIE['openWBTheme'] ) === true) || !(is_dir('themes/'.$_COOKIE['openWBTheme']) === true) ) {
					$_COOKIE['openWBTheme'] = 'standard';
				}
				// expand expiring-date to now + 2 years
				$expire = time()+(60*60*24*365*2);
				setcookie('openWBTheme', $_COOKIE['openWBTheme'], $expire, '/openWB/');
				// following line is needed because until now the cookie-path was accidently
				// set to /openWB/web/. So from now on path is /openWB/ to access cookie from all subdirs
				// therefore delete old cookies by having them expire immediatley
				setcookie('openWBTheme', '', time() - 3600, '/openWB/web');
				?><!-- including <?php echo 'themes/'.$_COOKIE['openWBTheme'].'/theme.html'; ?> --><?php
				include 'themes/'.$_COOKIE['openWBTheme'].'/theme.html';
			}
		}
	}
?>
Hat jemand vielleicht eine Idee?

Danke
olli

Re: openwb startet nicht mehr nach Erstinstallation

Verfasst: Sa Jan 23, 2021 10:56 am
von LutzB
Sieht aus, als wäre PHP nicht installiert. Raspian in Version Buster oder Stretch genommen?

Re: openwb startet nicht mehr nach Erstinstallation

Verfasst: Sa Jan 23, 2021 11:50 am
von DerOlli
Danke, es ist buster in der aktuellsten version.
Auf dem Raspi läuft auch noch pihole ohne Probleme, denke das benötigt auch PHP.
Komisch, hab eben auch noch mal neu installiert, aber das hat auch nichts gebracht. Kann es an der Konfiguration des Ports liegen?

Danke
olli

Re: openwb startet nicht mehr nach Erstinstallation

Verfasst: Sa Jan 23, 2021 1:13 pm
von humschti
Wenn der php Code als Text angezeigt wird, ist entweder php nicht installiert oder die Konfig des Webservers nicht korrekt. Das hat nichts mit den Ports zu tun.

IMHO würde ich die openWB aber auf einem getrennten Pi installieren.

Re: openwb startet nicht mehr nach Erstinstallation

Verfasst: Sa Jan 23, 2021 1:25 pm
von DerOlli
humschti hat geschrieben: Sa Jan 23, 2021 1:13 pm IMHO würde ich die openWB aber auf einem getrennten Pi installieren.
Du hast natürlich recht; wollte es aber erst mal ausprobieren, hab hier nur zwei Raspis in Betrieb die überhaupt nicht ausgelastet sind.....

Re: openwb startet nicht mehr nach Erstinstallation

Verfasst: Sa Jan 23, 2021 9:21 pm
von DerOlli
Hab den Raspi noch mal neu aufgesetzt und erst OpenWB und dann Phiole installiert. Funktioniert soweit.