When I want to include a image as a thumbnail, I get the message that there was an error trying to create it (with nothing more info inside), no matter if I am trying to resize jpg or png. Ok, so I did a lot of research to make sure that I read the fine manual before I ask you.
I assured the following:
- imagemagick is installed in /volume1/@optware/bin/, there is the 'convert' file
- I made links with ln -s to this directory in /opt/bin/convert, (usr/bin/convert, /bin/convert
- I even did chmod 777 on /opt/bin/convert so I assured it doesn't lie on the file rights
- I entered the following options in my LocalSettings.php:
- I made /mediawiki/images/temp and /mediawiki/uploads and I chmodded it to 777 to again be sure that it's not the file permissions
$wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgUploadSizeWarnng = 1024*1024*100; $wgMaxUploadSize = 1024*1024*100; $wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','xml','pdf','tiff','docx','xlsx','ps','odt','tar','gz','rar','zip','7z','ods','odp','odg'); $wgUploadPath = "$wgScriptPath/uploads"; $wgUploadDirectory = "$IP/uploads"; $wgTmpDirectory = "$IP/images/temp";
I installed libpng, libjpeg and openjpeg via Apache IPKG
I tested the convert-file on the shell and I can convert pics with convert image.jpg -resize
the uploaded images are in /mediawiki/uploads in some random subfolders like '2' or 'd'. They are about 30-50 KB.
I also checked my php.ini if there is set 'disable̠function' but the string is empty, so exec()-function in PHP should work. in the folder /mediawiki/uploads, where the images are, there is no .htaccess-file yet Here are the folder's options of my httpd.conf
<Directory "/volume1/web/mediawiki/images"> #Ignore .htaccess files AllowOverride None #Serve HTML as plaintext, don't execute SHTML AddType text/plain .html .htm .shtml .php .cgi .js .pl .java .rb .rbw #Don't run arbitrary PHP code. php_admin_flag engine off Options -Indexes </Directory> <Directory "/volume1/web/mediawiki/uploads"> #Ignore .htaccess files AllowOverride None #Serve HTML as plaintext, don't execute SHTML AddType text/plain .html .htm .shtml .php .cgi .js .pl .java .rb .rbw #Don't run arbitrary PHP code. php_admin_flag engine off Options -Indexes </Directory>
What else would I possibly have to check? Is there anything I should check in my httpd.conf? TIA