Thread:Project:Support desk/500 Internal Server Error after Migration

Hello,

I just moved my Wiki and its Content (MediaWiki 1.2.1.1) from Ubuntu 13.04 + Apache 2.2.+ MySQL 5.5.31 to MediaWiki 1.2.1.1 + Debian 7 + nginX 1.2.1 + MySQL 5.5.31.

What I did during migration: On the new fresh migrated wiki on debian ... now : I can work with MediaWiki after migration. I can upload images and other files to the new wiki on debian.
 * I kopied the images directory from Ubuntu to Debian.
 * I made a backup of MySQL of the MediaWiki on Ubuntu
 * I put the backup on Debian with same MySQL
 * I moved the files from /var/www (old) to /data/www but with symlink /var/www -> /data/www (no problems)

All the textual content is available, but if I click on upload and when I pick some files I have uploaded on the old Ubuntu MediaWiki then I get the 500 Internal Server Error.

Checking up the directory using find results in finding the file. Example:
 * Myfile.zip is linked to 192.168.0.1/images/c/cd/Myfile.zip in wiki (onmouse over it is shown).
 * clicking on the link causes Err 500
 * find says, the file is in /data/www/images/Myfile.zip (I used console with pwd=/ checking the /data dir directly, but for the webbrowser it is also /var/www, because of the symlink)

EDIT: I also do not get any preview made by imageimagick (even it is installed). I get a error message, no image defined .... convertimagecommand/3044.

EDIT2: Ok, I am confured now. I checkt out the paths, the files are stored. On the old Ubuntu the old files have been stored just into images/ and the link from webbrowser linkted to images/ /file meaning images/a/23/MyFile.whatever. Download worked fine. On Debian the new files have been stored in directories as linked, meaning the link path on the wiki site corresponds to the path on the system except the prefix of course. So, maybe nginx cannot find the files, because it does not find the way, right?

Does anyone have an idea, what could be the source of the problem?

Thanks, Marcus