Thread:Project:Support desk/File uploads hang at ImageMagick thumbnail creation ?

I've spend days on this without getting any smarter. All advice appreciated.

ImageMagick works fine from the command line. When I upload a file, MediaWiki hangs and my Apache LAMP stack must be restarted. It appears to be a problem with folder permissions of folders created under images/thumb/ folder. I am a Linux newbie working to understand permissions and owners,

The images folder: drwxrwxrwx 5 daemon root   4096 Jun 14 08:31 images The images subfolder: drwx-wx-wx 3 daemon root 4096 Jun 14 08:31 archive drwx-wx-wx 3 daemon root 4096 Jun 14 08:31 c drwx-wx-wx  4 daemon root 4096 Jun 14 08:31 thumb

The thumb subfolders: drwx-wx-wx 3 daemon root 4096 Jun 14 08:05 4 drwx-wx-wx 3 daemon root 4096 Jun 14 08:31 c

The debug log ends with:

FROM `image` WHERE img_name = 'Kahoona_9_5.jpg'  LIMIT 1 SQL: SELECT /* LCStore_DB::get Esutton */ lc_value  FROM `l10n_cache`  WHERE lc_lang = 'en' AND lc_key = 'rtl'  LIMIT 1 File::transform: Doing stat for /opt/lampstack-1.2-4/apps/mediawiki/htdocs/images/thumb/c/c8/Kahoona_9_5.jpg/180px-Kahoona_9_5.jpg BitmapHandler::doTransform: creating 180x135 thumbnail at /opt/lampstack-1.2-4/apps/mediawiki/htdocs/images/thumb/c/c8/Kahoona_9_5.jpg/180px-Kahoona_9_5.jpg BitmapHandler::doTransform: scaler im BitmapHandler::doTransform: running ImageMagick: '/usr/bin/convert' -quality 80 -background white -size 180 '/opt/lampstack-1.2-4/apps/mediawiki/htdocs/images/c/c8/Kahoona_9_5.jpg' -thumbnail '180x135!' -set comment 'File source: http://127.0.0.1/index.php/File:Kahoona_9_5.jpg' -depth 8 -sharpen '0x0.4' '/opt/lampstack-1.2-4/apps/mediawiki/htdocs/images/thumb/c/c8/Kahoona_9_5.jpg/180px-Kahoona_9_5.jpg' 2>&1 wfShellExec: '/opt/lampstack-1.2-4/apps/mediawiki/htdocs/bin/ulimit4.sh' 180 102400 102400 \/usr/bin/convert'\ -quality 80 -background white -size 180 '\/opt/lampstack-1.2-4/apps/mediawiki/htdocs/images/c/c8/Kahoona_9_5.jpg'\ -thumbnail '\180x135!'\ -set comment '\File source: http://127.0.0.1/index.php/File:Kahoona_9_5.jpg'\ -depth 8 -sharpen '\0x0.4'\ '\/opt/lampstack-1.2-4/apps/mediawiki/htdocs/images/thumb/c/c8/Kahoona_9_5.jpg/180px-Kahoona_9_5.jpg'\'' 2>&1'

Using sudo to run the convert command above works fine.

LocalSettings.php error_reporting(E_ALL | E_STRICT ); ini_set("display_errors", 1); $wgShowExceptionDetails = true; $wgShowSQLErrors = true; $wgDebugDumpSql = true; $wgDebugLogFile = '/tmp/debug_mw.txt'; $wgEnableUploads      = true; $wgUseImageMagick = true;

Environment: MediaWiki: 1.15 PHP 5.2.15 OS: CentOS 5.2 Bitnami install of LAMP stack

Thanks in advance for any tips on debugging!

-Ed