There are similar questions on this site but both seem to be Windows related. This is Ubuntu 12.04.
On EE 2.5.1, I have two upload directories configured:
$config['upload_preferences'] = array( 1 => array( 'name' => 'Article Images', 'server_path' => '/var/www/myhost/files/article_images/', 'url' => 'http://myhost/files/article_images/', 'properties' => 'style="border: 0;" alt="image"' ), 2 => array( 'name' => 'Image of the Week', 'server_path' => '/var/www/myhost/files/image_of_week/', 'url' => 'http://myhost/files/image_of_week/', 'properties' => 'style="border: 0; width:160px;" alt="image"' ) )
I can upload images to directory 2 but when I upload to directory 1 I get the message,
"Thumbnail could not be created for the image. Please make sure the thumbnail directory is writable".
For starters, the directories are identical:
[myuser@ubuntu:/var/www/myhost/files]$ ll article_images/ total 20012 drwxrwxrwx 4 myuser mygroup 12288 Mar 26 10:12 ./ drwxrwxrwx 6 myuser mygroup 4096 Mar 25 23:33 ../ ... more files drwxrwxrwx 2 myuser mygroup 20480 Mar 21 14:26 _thumbs/
[myuser@ubuntu:/var/www/myhost/files]$ ll image_of_week/ total 340 drwxrwxrwx 3 myuser mygroup 4096 Mar 26 10:19 ./ drwxrwxrwx 6 myuser mygroup 4096 Mar 25 23:33 ../ ... more files drwxrwxrwx 2 myuser mygroup 4096 Mar 26 10:19 _thumbs/
Details are obfuscated but I can assure you user/group ownership is identical and in any case all permissions are set to 777.
I've tested with the same jpeg image, it uploads fine in "image of week" but fails in "article images".
I have tested the EE server wizard and all requirements show Supported: yes.
memory_limit = 128M.
I believe I've dealt with every suggestion offered on the other similar questions on this site. What am I missing? Something obviously wrong in my file upload preferences?