Du bist nicht angemeldet. Der Zugriff auf einige Boards wurde daher deaktiviert.
Seiten: 1
#1 22. Mai 2013 09:28
- Bene
- hat von CMS/ms gehört
- Registriert: 22. Mai 2013
- Beiträge: 12
[GELÖST] Installation funktioniert nicht - Site down for maintenance
Hallo Freunde!
Ich bin gerade dabei für einen Bekannte eine Website mit CMS einzurichten. Ich habe eine Seite für mich selber schon am laufen und es funktioniert alles vom Feinsten.
Nun kriege ich die neuste Version von CMSMS nicht installiert, ich hänge quasi schon im ersten Schritt. Die Ordner habe ich mit den Berechtigungen wie beschrieben versehen, eine Datenbank angelegt und auch die leere config.php-Datei erstellt.
Ich bekomme folgende Fehlermeldung:
Site down for maintenance.
"; exit; } if (!is_writable(TMP_TEMPLATES_C_LOCATION) || !is_writable(TMP_CACHE_LOCATION)) { echo ''; echo '
The following directories must be writable by the web server:
'; echo 'tmp/cache
'; echo 'tmp/templates_c
'; echo '
Please correct by executing:
chmod 777 tmp/cache
chmod 777 tmp/templates_c
or the equivilent for your platform before continuing.
'; echo ''; exit; } require_once($dirname.'/include.php'); @ob_start(); // initial setup $gCms = cmsms(); $params = array_merge($_GET, $_POST); $smarty = $gCms->GetSmarty(); $smarty->params = $params; $page = get_pageid_or_alias_from_url(); $contentops = cmsms()->GetContentOperations(); $contentobj = ''; $trycount = 0; while( $trycount < 2 ) { $trycount++; try { if( !is_object($contentobj) ) { if( $page == '__CMS_PREVIEW_PAGE__' && isset($_SESSION['cms_preview']) ) // temporary { $tpl_name = trim($_SESSION['cms_preview']); $fname = ''; if (is_writable($config["previews_path"])) { $fname = cms_join_path($config["previews_path"] , $tpl_name); } else { $fname = cms_join_path(TMP_CACHE_LOCATION , $tpl_name); } $fname = $tpl_name; if( !file_exists($fname) ) { throw new CmsException('preview selected, but temp file not found: '.$fname); } // build pageinfo $fh = fopen($fname,'r'); $_SESSION['cms_preview_data'] = unserialize(fread($fh,filesize($fname))); fclose($fh); unset($_SESSION['cms_preview']); $contentobj = $contentops->LoadContentFromSerializedData($_SESSION['cms_preview_data']); $contentobj->setId('__CMS_PREVIEW_PAGE__'); } else { $contentobj = $contentops->LoadContentFromAlias($page,true); } } if( !is_object($contentobj) ) { throw new CmsError404Exception('Page '.$page.' not found'); } //debug_display('got content '.$contentobj->Alias()); // from here in, we're assured to have a content object. if( !$contentobj->IsViewable() ) { $url = $contentobj->GetURL(); if( $url != '' && $url != '#' ) { redirect($url); } // not viewable, throw a 404. throw new CmsError404Exception('Cannot view an unviewable page'); } if( $contentobj->Secure() && (! isset($_SERVER['HTTPS']) || empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ) { // if this page is marked to be secure, make sure we redirect to the secure page. redirect($contentobj->GetURL()); } $allow_cache = (int)get_site_preference('allow_browser_cache',0); $expiry = (int)max(0,get_site_preference('browser_cache_expiry',60)); $expiry *= $allow_cache; if( $_SERVER['REQUEST_METHOD'] == 'POST' || !$contentobj->Cachable() ||$page == '__CMS_PREVIEW_PAGE__' || $expiry == 0 ) { // Here we adjust headers for non cachable pages header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); } else { // as far as we know, the output is cachable at this point... // so we mark it so that the output can be cached. header('Expires: '.gmdate("D, d M Y H:i:s",time() + $expiry * 60).' GMT'); $the_date = time(); if( $contentobj->Cachable() ) { $the_date = $contentobj->GetModifiedDate(); } header('Last-Modified: ' . gmdate('D, d M Y H:i:s',$the_date) . ' GMT'); } cmsms()->set_variable('content_obj',$contentobj); $smarty->assign('content_obj',$contentobj); if( $contentobj->Secure() && (! isset($_SERVER['HTTPS']) || empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == 'off') ) { // if this page is marked to be secure, make sure we redirect to the secure page. redirect($contentobj->GetURL()); } cmsms()->set_variable('content_obj',$contentobj); cmsms()->set_variable('content_id',$contentobj->Id()); cmsms()->set_variable('page_id',$page); cmsms()->set_variable('page_name',$contentobj->Alias()); cmsms()->set_variable('position',$contentobj->Hierarchy()); cmsms()->set_variable('friendly_position',$contentops->CreateFriendlyHierarchyPosition($contentobj->Hierarchy())); $smarty->assign('content_obj',$contentobj); $smarty->assign('content_id', $contentobj->Id()); $smarty->assign('page', $page); $smarty->assign('page_id', $page); $smarty->assign('page_name', $contentobj->Alias()); $smarty->assign('page_alias', $contentobj->Alias()); $smarty->assign('position', $contentobj->Hierarchy()); $smarty->assign('friendly_position', $gCms->variables['friendly_position']); CmsNlsOperations::set_language(); // <- NLS detection for frontend $smarty->assign('lang',CmsNlsOperations::get_current_language()); $smarty->assign('encoding',CmsNlsOperations::get_encoding()); $html = ''; $showtemplate = true; if ((isset($_REQUEST['showtemplate']) && $_REQUEST['showtemplate'] == 'false') || (isset($smarty->id) && $smarty->id != '' && isset($_REQUEST[$smarty->id.'showtemplate']) && $_REQUEST[$smarty->id.'showtemplate'] == 'false')) { $showtemplate = false; } $smarty->set_global_cacheid('p'.$contentobj->Id()); $uid = get_userid(FALSE); if( $contentobj->Cachable() && $showtemplate && !$uid && get_site_preference('use_smartycache',0) && $_SERVER['REQUEST_METHOD'] != 'POST' ) { if( version_compare(phpversion(),'5.3') >= 0 ) { // this content is cachable... so enable smarty caching of this page data, for this user. $smarty->setCaching(Smarty::CACHING_LIFETIME_CURRENT); } } if( !$showtemplate ) { $smarty->setCaching(false); // in smarty 3, we could use eval:{content} I think. //$html = $smarty->fetch('eval:{content}')."\n"; $html = $smarty->fetch('template:notemplate')."\n"; $trycount = 99; } else { //debug_display('display content '.$contentobj->Alias().' '.$page); debug_buffer('process template top'); $top = $smarty->fetch('tpl_top:'.$contentobj->TemplateId()); debug_buffer('process template body'); $body = $smarty->fetch('tpl_body:'.$contentobj->TemplateId()); debug_buffer('process template head'); $head = $smarty->fetch('tpl_head:'.$contentobj->TemplateId()); $html = $top.$head.$body; $trycount = 99; // no more iterations. } } catch (SmartyCompilerException $e) // <- Catch Smarty compile errors { $handlers = ob_list_handlers(); for ($cnt = 0; $cnt < sizeof($handlers); $cnt++) { ob_end_clean(); } echo $smarty->errorConsole($e); return; } catch (SmartyException $e) // <- Catch rest of Smarty errors { $handlers = ob_list_handlers(); for ($cnt = 0; $cnt < sizeof($handlers); $cnt++) { ob_end_clean(); } echo $smarty->errorConsole($e); return; } catch (CmsError404Exception $e) // <- Catch CMSMS 404 error { //debug_display('handle 404 exception '.$e->getFile().' at '.$e->getLine().' -- '.$e->getMessage()); // 404 error thrown... gotta do this process all over again. $page = 'error404'; $showtemplate = true; unset($_REQUEST['mact']); unset($_REQUEST['module']); unset($_REQUEST['action']); $handlers = ob_list_handlers(); for ($cnt = 0; $cnt < sizeof($handlers); $cnt++) { ob_end_clean(); } // specified page not found, load the 404 error page. $contentobj = $contentops->LoadContentFromAlias('error404',true); if( is_object($contentobj) ) { // we have a 404 error page. header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); } else { // no 404 error page. ErrorHandler404(); return; } } } // while trycount Events::SendEvent('Core', 'ContentPostRender', array('content' => &$html)); if( !headers_sent() ) { $ct = cmsms()->get_variable('content-type'); if( !$ct ) $ct = 'text/html'; header("Content-Type: $ct; charset=" . get_encoding()); } echo $html; @ob_flush(); $endtime = microtime(); $db =& cmsms()->GetDb(); if( $config['debug'] == TRUE || (isset($config['show_performance_info']) && ($showtemplate == true)) ) { $memory = (function_exists('memory_get_usage')?memory_get_usage():0); $memory = $memory - $orig_memory; $memory_peak = (function_exists('memory_get_peak_usage')?memory_get_peak_usage():0); if ( !is_sitedown() && $config["debug"] == true) { echo "
Generated in ".microtime_diff($starttime,$endtime)." seconds by CMS Made Simple using ".(isset($db->query_count)?$db->query_count:'')." SQL queries and {$memory} bytes of memory (peak memory usage was {$memory_peak})
"; } else if( isset($config['show_performance_info']) && ($showtemplate == true) ) { $txt = microtime_diff($starttime,$endtime)." / ".(isset($db->query_count)?$db->query_count:'')." / {$memory} / {$memory_peak}"; debug_display($txt); echo '\n"; } } if( is_sitedown() || $config['debug'] == true) { $smarty->clear_compiled_tpl(); } if ( !is_sitedown() && $config["debug"] == true) { #$db->LogSQL(false); // turn off logging # output summary of SQL logging results #$perf = NewPerfMonitor($db); #echo $perf->SuspiciousSQL(); #echo $perf->ExpensiveSQL(); #echo $sql_queries; foreach ($gCms->errors as $error) { echo $error; } } if( $page == '__CMS_PREVIEW_PAGE__' && isset($_SESSION['cms_preview']) ) // temporary { unset($_SESSION['cms_preview']); } # vim:ts=4 sw=4 noet ?>
kann mir da jemand weiterhelfen? Würde mich sehr freuen - vielen Dank!
Offline
#2 22. Mai 2013 10:30
- NaN
- Moderator
- Ort: Halle (Saale)
- Registriert: 09. November 2010
- Beiträge: 4.437
Re: [GELÖST] Installation funktioniert nicht - Site down for maintenance
Module: GBFilePicker, AdvancedContent
Sicherheit: Beispiel .htaccess-Datei
CMSms 1.12 unter PHP 7:
cmsms-1.12.3.zip (inoffiziell - komplett inkl. Installer)
CMSms 1.12 unter PHP 8:
cmsms-1.12.4.zip (inoffiziell - komplett inkl. Installer)
Offline
#3 22. Mai 2013 10:33
- Bene
- hat von CMS/ms gehört
- Registriert: 22. Mai 2013
- Beiträge: 12
Re: [GELÖST] Installation funktioniert nicht - Site down for maintenance
Danke für den Hinweis!
Habe ich schon gesehen und ausprobiert! Hat nicht geklappt!?
Offline
#4 22. Mai 2013 11:24
- NaN
- Moderator
- Ort: Halle (Saale)
- Registriert: 09. November 2010
- Beiträge: 4.437
Re: [GELÖST] Installation funktioniert nicht - Site down for maintenance
Okay, bei genauerem Hinsehen stelle ich fest, dass es sich hier nicht um eine Fehlermeldung handelt, sondern, dass Dir hier der komplette Quelltext der php Datei ab einer bestimmten Zeile ausgegeben wird.
Klingt nach einem EInstellungsfehler oder einem Übertragungsfehler.
Einstellungsfehler: Welche PHP-Version läuft auf dem Server? (lässt sich je nach Provider auf verschiedene Weise einstellen)
Übertragungsfehler: Eventuell wurden nicht alle Dateien korrekt auf den Server geladen. Lade mal das Install-Verzeichnis erneut hoch.
Module: GBFilePicker, AdvancedContent
Sicherheit: Beispiel .htaccess-Datei
CMSms 1.12 unter PHP 7:
cmsms-1.12.3.zip (inoffiziell - komplett inkl. Installer)
CMSms 1.12 unter PHP 8:
cmsms-1.12.4.zip (inoffiziell - komplett inkl. Installer)
Offline
#5 22. Mai 2013 12:52
- Bene
- hat von CMS/ms gehört
- Registriert: 22. Mai 2013
- Beiträge: 12
Re: [GELÖST] Installation funktioniert nicht - Site down for maintenance
Okay, ich glaube, ich weiß wo das Problem liegen könnte!
Also das neuladen des Install-Verzeichnis hat nicht geklappt.
Nun habe ich mal versucht die PHP-Version rauszulesen per phpinfo
Dies kam dabei raus:
fatal error while trying to execute /home/www/.../html/phpinfo.php No such file or directory
fehler beim ausfuehren von /home/www/.../html/phpinfo.php No such file or directory
Datei liegt aber definitiv auf dem Server. Wie kann ich das beheben?
Bei meiner anderen Seite (liegt auch bei einem anderen Host-Anbieter) kommt ein einfaches Ergebnis von: 5.4.15
Offline
#6 22. Mai 2013 13:48
- NaN
- Moderator
- Ort: Halle (Saale)
- Registriert: 09. November 2010
- Beiträge: 4.437
Re: [GELÖST] Installation funktioniert nicht - Site down for maintenance
Da bin ich gerade überfragt. Offensichtlich kann Dein Server da etwas nicht finden/ausführen. Aber waum? Diese Frage kann ich so aus der Ferne leider nicht beantworten. Zumal diese Meldung höchst eigentümlich ist.
Wenn die Datei nicht da wäre oder kein Zugriff erlaubt wäre, würde normalerweise die 404-Fehlermeldung kommen "nix gefunden" oder ein 403-Fehler "Forbidden" bzw. schlimmstenfalls ein 500-Fehler "internal server error".
Wenn Du sagst, dass die Datei da ist und auch via www.deine.domain/phpinfo.php ausgeführt werden kann/darf (prüfe dazu mal die Zugriffsrechte der Datei und evtl. auch Einstellungen in einer .htaccess Datei), dann würde ich mal beim Provider anfragen, was genau da schief läuft.
Um zu prüfen, ob denn Domain und Pfad stimmen, kannst Du ja mal eine HTML-Datei ins selbe Verzeichnis hochladen, die nur "Hallo Welt" beinhaltet. Dann weißt Du zumindest, ob Du im richtigen Verzeichnis bist.
Du könntest auch versuchen, die php-Datei umzubenennen (z.B. "blablubb.php"). Vielleicht hat Dein Provider aufgrund von Sicherheitsbestrebungen den Zugriff auf bestimmte Dateinamen (z.B. "phpinfo.php", "infophp.php") per se verboten.
Eine andere Möglichkeit wäre, die Informationen aus dem Vertrag bzw. dem Angebot herauszulesen. Beinhaltet dieses Paket überhaupt PHP und MySQL?
Module: GBFilePicker, AdvancedContent
Sicherheit: Beispiel .htaccess-Datei
CMSms 1.12 unter PHP 7:
cmsms-1.12.3.zip (inoffiziell - komplett inkl. Installer)
CMSms 1.12 unter PHP 8:
cmsms-1.12.4.zip (inoffiziell - komplett inkl. Installer)
Offline
#7 23. Mai 2013 09:59
- Bene
- hat von CMS/ms gehört
- Registriert: 22. Mai 2013
- Beiträge: 12
Re: [GELÖST] Installation funktioniert nicht - Site down for maintenance
Ich glaube, ich bin einen Schritt weiter!
Der Provider hat zwar in dem Paket offiziell PHP mit drin und einen Datenbank konnte ich auch schon anlegen. Aber irgendwie ist PHP doch wohl nicht freigeschaltet gewesen!
Naja, nun werden die passenden Haken gesetzt und dann sollte es funktionieren - hoffe ich!?!?
Vielen Dank für die Hinweise, alleine wäre ich wohl nicht drauf gekommen.
Ich melde mich dann mal obs auch wirklich geklappt hat.
Offline
#8 24. Mai 2013 05:59
- Andynium
- Moderator
- Ort: Dohna / SN / Deutschland
- Registriert: 13. September 2010
- Beiträge: 7.018
- Webseite
Re: [GELÖST] Installation funktioniert nicht - Site down for maintenance
Der Provider hat zwar in dem Paket offiziell PHP mit drin und einen Datenbank konnte ich auch schon anlegen. Aber irgendwie ist PHP doch wohl nicht freigeschaltet gewesen!
Spricht nicht gerade für den Provider ...
Im übrigen - willkommen im Forum!
Offline
#9 29. Mai 2013 15:27
- Bene
- hat von CMS/ms gehört
- Registriert: 22. Mai 2013
- Beiträge: 12
Re: [GELÖST] Installation funktioniert nicht - Site down for maintenance
Sooo! Nachdem der Provider etwas gebraucht hat ist nun alles freigeschaltet und funktioniert auch ohne weitere Probleme (bisher)!
Vielen Dank für die Hilfestellung - Thread kann geschlossen werden!
Offline
Seiten: 1