Cannot upload photos to the folder

Here is the thing. I build a catalog website and need to upload items photos to the site using the site admin-panel. But when i type in all the needed details of the item and upload a image it through internal server error. What should i do to enable this function to be working? All of the paths are checked

Question is resolved. Bash console