Thread:Project:Support desk/MediaWiki 1.20 tarball issues/reply (10)

I would like to thank you very much. Your last hint was the key. This is what the section in LocalSettings.php now looks like: $wgEnableUploads = true;
 * 1) To enable image uploads, make sure the 'images' directory
 * 2) is writable, then set this to true:

$wgUploadDirectory = "$IP/images"; $wgUploadPath = "$wgScriptPath/images"; $wgTmpDirectory = "$IP/images/temp"; I used the commands mkdir and chmod via ftp from command line. Example ralfhagenbuck@ubuntu:~$ ftp ftp> open (to) blechschaden.bplaced.net Connected to server2.bplaced.net. 220 Welcome to bplaced, FTP server standing by ... Name (blechschaden.bplaced.net:ralfhagenbuck): blechschaden 331 Hello blechschaden, your FTP account password is required: Password: 230-Login successful, your current directory is / 230 69792 Kbytes used (3%) - authorized: 2097152 Kb Remote system type is UNIX. Using binary mode to transfer files. ftp> cd wiki 250 OK. Current directory is /wiki ftp> chmod 0755 images images/temp 200 Permissions changed on images (This would not work using a Windows based computer cause chmod is no command there.)

Some Questions remain:

1. I never had to set $wgTmpDirectory before. Is that new? Shouldn't this the be done by the mw-config script at setup?

2. $wgUploadDirectory and $wgUploadPath have not been set by mw-config script. This is the standard configuration so they shouldn't be needed (and they are not in my 1.18 Wiki).

3. Why does $wgUploadDirectory use the $IP and $wgUploadPath use the $wgScriptPath variable. I used $wgScriptPath for both but thats not working.

4. In my other Wiki all /images and subfolders are 0755. Why now 0777? 0755 does it the same way in my case.