---
title: "Error in init.php: Path to TYPO3 main dir could not be resolved correctly."
url: "https://www.typo3.net/d/54917-error-in-initphp-path-to-typo3-main-dir-could-not-be-resolved-correctly"
source: "typo3.net"
tags: ["Hosting","Server","Frage"]
created: "2006-12-13"
last_reply: "2006-12-13"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# Error in init.php: Path to TYPO3 main dir could not be resolved correctly.

Hosting › Server · 0 Antworten · gestartet 2006-12-13

## Eröffnungsbeitrag

**Shinji** · 2006-12-13 · [Beitrag #1](https://www.typo3.net/d/54917-error-in-initphp-path-to-typo3-main-dir-could-not-be-resolved-correctly/1)

Hi!

Ich habe eben ein Upgrade von Typo3.8.1 auf 4.0.3 gemacht. Das Installtool und das backend funktionieren einwandfrei. Nur bekomme ich bei jeder Seite immer folgende Meldung:

> Error in init.php: Path to TYPO3 main dir could not be resolved correctly.
>
> This happens if the last 6 characters of this path, /srv/www/htdocs/DOMAIN.de/srv/htdocs/www.DOMAIN.de/, (\$temp_path) is NOT "typo3/" for some reason.
>  You may have a strange server configuration. Or maybe you didn't set constant TYPO3_MOD_PATH in your module?
> If you expect any help from anybody on this issue, you should save this page as an html document and send it along with your request for help!
> Array
> (
>     [TYPO3_OS] =>
>     [PATH_thisScript] => /srv/www/htdocs/DOMAIN.de/srv/htdocs/www.DOMAIN.de/index.php
>     [php_sapi_name()] => apache2handler
>     [TYPO3_MOD_PATH] => TYPO3_MOD_PATH
>     [PATH_TRANSLATED] => /srv/www/htdocs/DOMAIN.de/srv/htdocs/www.DOMAIN.de/index.php
>     [SCRIPT_FILENAME] => /srv/www/htdocs/DOMAIN.de/srv/htdocs/www.DOMAIN.de/index.php
> )
>
> PHP Version 4.3.10-16

Ich bin genau nach dieser Anleitung vorgegangen:

<http://webempoweredchurch.com/support/tutorials/upgradingfromtypo33xto4x/>

Ich habe keine Ahnung wo ich den Fehler suchen soll. :(

Kann mir jemand helfen? Es ist echt dringend.

Vielen Dank!!

Gruß
   Thorsten

---

Quelle: „Error in init.php: Path to TYPO3 main dir could not be resolved correctly.“, typo3.net, https://www.typo3.net/d/54917-error-in-initphp-path-to-typo3-main-dir-could-not-be-resolved-correctly
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
