Thread:Project:Support desk/file put contents failed to open stream ForeignAPIRepo.php on line 217 (svg)

MW 1.16.5 Apache version 2.2.23 PHP version 5.3.21 MySQL version 5.1.66-cll

I get this error:

Warning: file_put_contents(.../public_html/w/mediawiki-1.16.5/images/ele/thumb/7/7c/Coat_of_arms_of_Greece.svg/30px-Coat_of_arms_of_Greece.svg.png) [function.file-put-contents]: failed to open stream: Permission denied in .../public_html/w/mediawiki-1.16.5/includes/filerepo/ForeignAPIRepo.php on line 217

You can see a similar issue here: http://www.thegunwiki.org/thegunwiki/File:Map_of_current_Interstates.svg