Zum Inhalt springen

Pfad-Auflösung bei Xampp/Mac ins Unterverzeichnis?

Erstellt am 7. April 2012 · 3 Antworten · letzte Antwort am 11. April 2012

Tags: TYPO3 4, Frage

Jungs.​Elf ·

Hallo,

ich habe gerade das Introduction-Package mit TYPO3 4.6.7 heruntergeladen und versucht auf meiner Xampp-Installation zu laufen zu bringen. Das Install-Tool liess sich auch ausführen und ich komme ins Backend. Aber die Beispiel-Seite, die mitgeliefert werden soll, kommt ganz ohne Css und so an. Der Php-Error-Log liefert dann auch, dass die von TYPO3 gewünschten Dateien nicht da sind, wo sie sein sollen: im gleichen Verzeichnis wie der Document Root.

File does not exist: /Applications/XAMPP/xamppfiles/htdocs/uploads, referer: http://localhost/t467/get-started/

Wie man am Referrer sieht, habe ich aber das TYPO3 Paket in einem Unterverzeichnis /t467 drin, weil ich in dem Xampp noch anderes ausprobieren wollte.

Wie biege ich jetzt die Anfrage auf das Unterverzeichnis um?
Ich glaube, ich kann sonst nicht weitermachen, oder?

Hier noch die Angaben aus dem Debug-Fenster:

### DEBUG SYSTEM INFORMATION - START ###
HTTP_HOST           : localhost
TYPO3_HOST_ONLY     : localhost
TYPO3_PORT          : 
PATH_INFO           : 
QUERY_STRING        : TYPO3_INSTALL[type]=phpinfo
REQUEST_URI         : /t467/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
HTTP_REFERER        : http://localhost/t467/typo3/install/index.php
TYPO3_REQUEST_HOST  : http://localhost
TYPO3_REQUEST_URL   : http://localhost/t467/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_REQUEST_SCRIPT: http://localhost/t467/typo3/install/index.php
TYPO3_REQUEST_DIR   : http://localhost/t467/typo3/install/
TYPO3_SITE_URL      : http://localhost/t467/
TYPO3_SITE_SCRIPT   : typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_SSL           : 
TYPO3_REV_PROXY     : 
SCRIPT_NAME         : /t467/typo3/install/index.php
TYPO3_DOCUMENT_ROOT : /Applications/XAMPP/xamppfiles/htdocs
SCRIPT_FILENAME     : /Applications/XAMPP/xamppfiles/htdocs/t467/typo3/install/index.php
REMOTE_ADDR         : 127.0.0.1
REMOTE_HOST         : 
HTTP_USER_AGENT     : Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:11.0) Gecko/20100101 Firefox/11.0
HTTP_ACCEPT_LANGUAGE: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
CONST: PHP_OS       : Darwin
CONST: TYPO3_OS     : 
CONST: PATH_thisScri: /Applications/XAMPP/xamppfiles/htdocs/t467/typo3/install/index.php
CONST: php_sapi_name: apache2handler
OTHER: TYPO3_VERSION: 4.6.7
OTHER: PHP_VERSION  : 5.3.1
imagecreatefromgif(): 1
imagecreatefrompng(): 1
imagecreatefromjpeg(: 1
imagegif()          : 1
imagepng()          : 1
imagejpeg()         : 1
imagettftext()      : 1
OTHER: IMAGE_TYPES  : 15
OTHER: memory_limit : 256M
SERVER: SERVER_PORT : 80
SERVER: SERVER_SOFTW: Apache/2.2.14 (Unix) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l PHP/5.3.1 mod_perl/2.0.4 Perl/v5.10.1
SERVER: GATEWAY_INTE: CGI/1.1
SERVER: SCRIPT_NAME : /t467/typo3/install/index.php
SERVER: PATH_TRANSLA: 
T3CV_GFX: image_proc: 1
T3CV_GFX: gdlib     : 1
T3CV_GFX: gdlib_png : 1
T3CV_GFX: im        : 1
T3CV_GFX: im_path   : /usr/local/bin/
T3CV_GFX: im_path_lz: 
T3CV_GFX: im_version: im6
T3CV_GFX: im_negate_: 0
T3CV_GFX: im_imvMask: 1
T3CV_GFX: im_combine: composite
### DEBUG SYSTEM INFORMATION - END ###
db ·

Hallo,

Templates => TypoScript Templates => Info/Modify => Constants
dort sollte es ziemlich am Anfang zwei Constants geben:

...
domain = localhost/t467
absRefPrefix = t467/
...

dann sollte es klappen.

Viele Grüße

Philastan ·

Zunächst ein 'Hallo' an Typo3.net Forum, ich bin Phil 🙂

ich habe genau das gleiche Problem (Typo3 v.4.6 + xampp), allerdings gibt es bei mir das beschriebene Typoscript nicht.

Statt dessem finde ich nur:

<INCLUDE_TYPOSCRIPT: source="FILE:typo3conf/settings/introduction.ts">

filepaths {
  # cat=filepaths; type=string; label=HTML Templates: Location of the (X)HTML templates relative to site
  templates = fileadmin/default/templates/
  
  # cat=filepaths; type=string; label=CSS: Location of the Cascading Style Sheets relative to site
  css = fileadmin/default/templates/css/
  
  # cat=filepaths; type=string; label=Images: Location of the images relative to site
  images = fileadmin/default/templates/images/

  # cat=filepaths; type=string; label=Scripts: Location of the Javascript files relative to site
  scripts = fileadmin/default/templates/scripts/

  # cat=filepaths; type=string; label=HTML Templates for extensions: Location of the (X)HTML templates for extensions
  extensiontemplates = fileadmin/default/templates/extensions/
}

Meine Typo3installation liegt unter http://localhost/shop
Wenn ich das nun richtig verstanden habe, müsste es ja rein theoretisch wie folgt funktionieren:

<INCLUDE_TYPOSCRIPT: source="FILE:typo3conf/settings/introduction.ts">

filepaths {
  # cat=filepaths; type=string; label=HTML Templates: Location of the (X)HTML templates relative to site
  templates = shop/fileadmin/default/templates/
  
  # cat=filepaths; type=string; label=CSS: Location of the Cascading Style Sheets relative to site
  css = shop/fileadmin/default/templates/css/
  
  # cat=filepaths; type=string; label=Images: Location of the images relative to site
  images = shop/fileadmin/default/templates/images/

  # cat=filepaths; type=string; label=Scripts: Location of the Javascript files relative to site
  scripts = shop/fileadmin/default/templates/scripts/

  # cat=filepaths; type=string; label=HTML Templates for extensions: Location of the (X)HTML templates for extensions
  extensiontemplates = shop/fileadmin/default/templates/extensions/
}

allerdings wird mir dann gar nichts mehr angezeigt. Also einfach eine weiße Seite.

Habt ihr eine Idee was ich machen könnte?

LG

Phil