---
title: "ERROR: Could not create extension directory......"
url: "https://www.typo3.net/d/5288-error-could-not-create-extension-directory"
source: "typo3.net"
tags: ["Hosting","Server","Frage"]
created: "2003-08-28"
last_reply: "2004-01-27"
replies: 4
solved: true
page: 1
pages: 1
lang: "de"
---

# ERROR: Could not create extension directory......

Hosting › Server · 4 Antworten · gelöst · gestartet 2003-08-28

## Frage

**Unbekannter Benutzer** · 2003-08-28 · [Beitrag #1](https://www.typo3.net/d/5288-error-could-not-create-extension-directory/1)

Das dieser Topic schon einmal existiert ist mir bekannt, aber da keiner ein Lösung gefunden hat muss ich euch in der Hoffnung eine Lösung zu finden noch einmal belästigen!

Problem:
ERROR: Could not create extension directory......

Versuche zur Behebung:
Alle möglichen Rechte vergeben. Also an den rechten kann es nicht liegen!

Danke!

## Beste Antwort

**picrasso** · 2003-10-30 · [Beitrag #3](https://www.typo3.net/d/5288-error-could-not-create-extension-directory/3)

und wie und wo? bin ein anfänger

## Antworten

### [#2](https://www.typo3.net/d/5288-error-could-not-create-extension-directory/2) · Unbekannter Benutzer · 2003-08-28

Habs selbst gelöst ich hatte den Safe_mode nur für bestimmte Verzeichnisse freigegeben, er muss aber global auf off stehen

### [#3](https://www.typo3.net/d/5288-error-could-not-create-extension-directory/3) · picrasso · 2003-10-30 · Beste Antwort

(Text siehe oben unter „Beste Antwort“.)

### [#4](https://www.typo3.net/d/5288-error-could-not-create-extension-directory/4) · Chip · 2003-10-31

Kannst jemand mit safe-mode bitte mal testen, ob das was hilft?
<http://typo3.org/1423+M5dd8623ea90.0.html>

Gruss - michael

### [#5](https://www.typo3.net/d/5288-error-could-not-create-extension-directory/5) · magold · 2004-01-27

Hallo, habe das hierzu gefunden und es hat funktioniert...

> In fact I had the same problem and leaving the last slashes before creating the dirs fixed it.
>
> So I changed the following in file /typo3/mod/tools/em/index.php
>
> Around line 1800:
>
> ```php
> // we go create...
> @mkdir($extDirPath, 0777);
> if (!is_dir($extDirPath))        return "ERROR: Could not create extension directory '".$extDirPath."'";
> ```
>
> to
>
> ```php
> // we go create...
> @mkdir(substr($extDirPath,0,(strlen($extDirPath)-1)), 0777);
> if (!is_dir($extDirPath))        return "ERROR: Could not create extension directory '".substr($extDirPath,0,(strlen($extDirPath)-1))."'";
> ```
>
> AND around  line 1676
>
> ```php
>                                  while(list(,$dirParts)=each($allDirs))        {
>                                         $root.=$dirParts."/";
>                                         if (!is_dir($extDirPath.$root))        {
>                                                 @mkdir($extDirPath.$root, 0777);
>                                                 if (!@is_dir($extDirPath.$root))        {
>                                                         return "Error: The directory '".$extDirPath.$root."' could not be created...";
>                                                 }
>                                         }
>                                 }
> ```
>
> to
>
> ```php
>                                 while(list(,$dirParts)=each($allDirs))        {
>                                         $root.=$dirParts;
>                                         if (!is_dir($extDirPath.$root))        {
>                                                 @mkdir($extDirPath.$root, 0777);
>                                                 if (!@is_dir($extDirPath.$root))        {
>                                                         return "Error: The directory '".$extDirPath.$root."' could not be created...";
>                                                 }
>                                         }
>                                         $root.="/"; 
>                                 }
> ```
>
> So the root extension dir will be created without the slash and subdirectories also.
>
> Hope this will work for every purpose...

Viel Glück
 :D

---

Quelle: „ERROR: Could not create extension directory......“, typo3.net, https://www.typo3.net/d/5288-error-could-not-create-extension-directory
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
