I just copied all my files from one Ubuntu server to another, and everything works fine, except that Apache returns a "ERROR 500 - Internal Server Error!" on image files that on the old server was uploaded by the user himself through a PHP script.
I log in to the server through the terminal with ssh as root.
Checking the file permissions using the "ls -l" command through terminal shows the following:
Example of a file that Apache does display correctly:
-rw-r--r-- 1 root root 41K Jan 6 03:27 layout1.png
Example of a file that returns the 500 error:
drwxrwxrwx 3 root root 4.0K Jan 6 03:41 516191110e5e1
I did try "chmod 644 -R *" on the files after a tip from stackoverflow, but then the apache error changes to "403 forbidden".
Any ideas what caused it, and how to solve the problem?