Älteres Contao CMS installieren, BE mach Probleme [GELÖST]
Älteres Contao CMS installieren, BE mach Probleme
für einen Kunden muss ich ein älteres Contao-CMS installieren und habe das Problem,
dass die Links im Backend (z.B. um einen Artikel zu editieren) wie folgt erzeugt werden:
http://www.domain.tld/php5-fastcgi?do=a ... tent&id=58
richtig wäre aber:
http://www.domain.tld/contao/main.php?d ... tent&id=58
Im gesamten Code des CMS, als auch in der Datenbank ist das Wort "fastcgi" nicht zu finden,
also muss es die KeyMachine generieren ?
(Die links im BE für die Auswahl wie z.B. Artikel, Kategorie, Einstellungen, Erweiterungen,... werden
richtig erzeugt)
Hatte schon mal jemand ähnliches Problem ?
Danke.
Mfg. Michael
Micha
Re: Älteres Contao CMS installieren, BE mach Probleme
dies sollte üblicherweise nicht auftreten, wurden hier ggf. manuelle Anpassungen bezüglich PHP oder im Apache Vhost vorgenommen?
php5-fastcgi stellt hier den Connector vom Webserver zu PHP dar und kommt in dieser Form nur in der Apache Vhost Konfiguration zum Einsatz.
Martin
Re: Älteres Contao CMS installieren, BE mach Probleme
Was steht da drin?
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: Älteres Contao CMS installieren, BE mach Probleme
Micha
Re: Älteres Contao CMS installieren, BE mach Probleme
Code: Select all
# Contao Open Source CMS
# Copyright (C) 2005-2010 Leo Feyer
#
# Formerly known as TYPOlight Open Source CMS.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation, either
# version 3 of the License, or (at your option) any later version.
#
# This program 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
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program. If not, please visit the Free
# Software Foundation website at <http://www.gnu.org/licenses/>.
#
# PHP version 5
# @copyright Leo Feyer 2005-2010
# @author Leo Feyer <http://www.contao.org>
# @license LGPL
##
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !tinyMCE
RewriteRule .*\.htm$ uml.php [L]
##
# Rewrite base
#
# Set the RewriteBase if your Contao installation is in a subdirectoy and
# the rewrite rules are not working properly. Usage examples:
#
# RewriteBase /contao-2.9.0
# RewriteBase /path/to/contao
#
# Uncomment the following line to set the RewriteBase.
##
RewriteBase /
##
# Malicious requests
#
# Contao usually does not pass absolute URLs via GET, therefore the
# following rules block all requests that try to pass a URL or the /etc/
# directory as parameter.
##
RewriteCond %{REQUEST_URI} (ftp|https?):|/etc/ [NC,OR]
RewriteCond %{QUERY_STRING} (ftp|https?):|/etc/ [NC]
RewriteRule .* - [F,L]
##
# Require www
#
# Uncomment the following lines and replace "domain.com" with your domain
# name to redirect requests without "www".
##
#RewriteCond %{HTTP_HOST} ^domain.com [NC]
#RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
##
# Compressed .js and .css files
#
# Most of the JavaScript and CSS files used in Contao are also available
# as compressed .gz version, which requires less bandwidth and optimizes the
# page loading time. The following rules load these compressed ressources.
##
#AddEncoding gzip .gz
#<FilesMatch "\.js\.gz$">
# AddType "text/javascript" .gz
#</FilesMatch>
#<FilesMatch "\.css\.gz$">
# AddType "text/css" .gz
#</FilesMatch>
#RewriteCond %{HTTP:Accept-encoding} gzip
#RewriteCond %{REQUEST_FILENAME} \.(js|css)$
#RewriteCond %{REQUEST_FILENAME}.gz -f
#RewriteRule ^(.*)$ $1.gz [QSA,L]
##
# Static ressources
#
# Do not rewrite requests for static files or folders such as style sheets,
# images, movies or text documents.
##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
##
# Contao URLs
#
# By default, Contao adds ".html" to the generated URLs to simulate static
# HTML documents. If you change the URL suffix in the back end settings, make
# sure to change it here accordingly!
#
# RewriteRule .*\.html$ index.php [L] # URL suffix .html
# RewriteRule .* index.php [L] # No URL suffix
# RewriteRule .*\.txt$ index.php [L] # URL suffix .txt
#
# If you are using mod_cache, it is recommended to use the RewriteRule below,
# which adds the query string to the internal URL:
#
# RewriteRule (.*\.html)$ index.php/$1 [L]
#
# Note that not all environments support mod_rewrite and mod_cache!
##
RewriteRule .*\.html$ index.php [L]
</IfModule>
Michael
Micha
Re: Älteres Contao CMS installieren, BE mach Probleme
Das ist die .htaccess aus dem Stammverzeichnis? Die sieht unauffällig aus.
Gibt es einen Backend-Ordner mit einer eigenen .htaccess?
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: Älteres Contao CMS installieren, BE mach Probleme
ja, das ist die aus dem Stammverzeichnis.
Es gibt noch mehrere .htaccess-Dateien aber nur mit folgenden Inhalt:
order deny,allow
deny from all
Micha
Re: Älteres Contao CMS installieren, BE mach Probleme
Hatte jemand dasselbe Problem.
Anscheinend lies es sich durch Umschalten auf PHP 5.2 lösen...
Wahrscheinlich ist deine Version zu alt für eine halbwegs aktuelle PHP Version.
Wie wäre es mit einem Update?
Leider geht aus dem o.g. Thread nicht hervor wie man in einem solchen Fall ein Update machen kann und auch nicht ob das dann das Problem behebt...
Also wirst du wohl den Beta-Tester spielen müssen.
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: Älteres Contao CMS installieren, BE mach Probleme
da läuft es mit PHP 5.6.21 ohne Probleme.
Auf der KeyMachine ist PHP 5.5.9 drauf.
Es wird doch hoffentlich nicht die 5.5.9 buggy sein ?
Beste Grüße
Michael
Micha
Re: Älteres Contao CMS installieren, BE mach Probleme



Willkommen im Club!
Vielleicht kannst du auf Debian 8 wechseln? Dort steht PHP 5.6.irgendwas zur Verfügung.
Der Unterschied zwischen 5.5 und 5.6 ist größer als es die Seriennummer vermuten lässt.
Testweise könnte ich dir auf meinem Server ein Plätzchen bieten. Dann könntest du zumindest die PHP Version als Fehlerquelle ausschließen / eingrenzen usw.
Tobi
-----------------------------
wewoco.de
Das Forum für Reseller, Digital-Agenturen, Bildschirmarbeiter und Mäuseschubser
Re: Älteres Contao CMS installieren, BE mach Probleme [GELÖST]
das mit dem Debian ist eine gute Idee.
Ich habe eine VM mit Debian 8 und KeyHelp eingerichtet, den Source-Code
und die DB übertragen und getestet.
Das gleiche Ergebnis, in den Links ist das fastcgi enthalten und diese funktionieren nicht.
Ich habe dann als Test eine aktuellere Contao-Version installiert, diese funktioniert sofort.
Dann habe ich eine alte Contao-Version (gleiche wie die beim Kunden) installiert,
und da ist wieder das fastcgi-Problem.
Es muss also an der Version liegen, dass die zu alt ist und das bei KeyWeb verwendete PHP-FPM
nicht versteht.
Ich kann also nur hoffen, dass die Installation auf dem alternativen Server funktioniert,
und mittelfristig den Kunde dazu bringen kann, mal upzudaten.
Trotzdem mal vielen Dank.
Beste Grüße
Michael
Micha