Kusprayitna Blogs

Hidup untuk berbagi ilmu :: IT Linux Windows Database Oracle PHP OpenSource

Mediawiki gagal membuat image yang lebih kecil (thumnail)

Posted by kusprayitna on January 11th, 2010

Saat mengupload foto selesai dan lihat dokumen yang ada fotonya, cukup terkejut melihat foto tidak dapat ditampilkan dan diisi dengan pesan berikut :

Gagal membuat miniatur: /home/wiki/public_html/bin/ulimit4.sh: line 4: /usr/bin/convert: No such file or directory

Langsung pikiran teringat pada peristiwa sebelumnya, yaitu server wiki.uii.ac.id yang memakai mediawiki dipindah ke server lain.

Analisa lebih lanjut:

  1. ulimit4.sh adalah scrip yang berisi sama dengan perintah bash ulimit yang berfungsi melihat limiting user terhadap system (CPU, DISK, MEM).

    # ulimit
    unlimited

    # ./ulimit4.sh
    cpu time (seconds, -t) unlimited
    virtual memory (kbytes, -v) unlimited
    file size (blocks, -f) unlimited

    Berjalan dengan normal, berarti convernya yang gagal

  2. cek LocalSeting.php yang terkait fungsi konversi image

    ## To enable image uploads, make sure the 'images' directory
    ## is writable, then set this to true:
    $wgEnableUploads = true;
    $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'xls', 'pdf' );
    $wgAllowCopyUploads = true;

    $wgUseImageMagick = true;
    $wgImageMagickConvertCommand = "/usr/bin/convert";

    Wah kelihatannya install ImageMagick kelewatan

  3. Install ImageImagick

    # yum install ImageMagic
    ....
    Dependencies Resolved

    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Installing:
    ImageMagick i386 6.2.8.0-4.el5_1.1 base 3.3 M
    Installing for dependencies:
    alsa-lib i386 1.0.17-1.el5 base 412 k
    audiofile i386 1:0.2.6-5 base 107 k
    avahi-glib i386 0.6.16-6.el5 base 15 k
    chkfontpath i386 1.10.1-1.1 base 15 k
    esound i386 1:0.2.36-3 base 129 k
    gd i386 2.0.33-9.4.el5_4.2 updates 154 k
    ghostscript i386 8.15.2-9.11.el5 base 5.9 M
    ghostscript-fonts noarch 5.50-13.1.1 base 801 k
    gnome-keyring i386 0.6.0-1.fc6 base 170 k
    gnome-mime-data i386 2.4.2-3.1 base 690 k
    gnome-mount i386 0.5-3.el5 base 70 k
    gnome-vfs2 i386 2.16.2-4.el5 base 1.3 M
    lcms i386 1.18-0.1.beta1.el5_3.2 base 176 k
    libFS i386 1.0.0-3.1 base 30 k
    libXfont i386 1.2.2-1.0.3.el5_1 base 241 k
    libXpm i386 3.5.5-3 base 45 k
    libart_lgpl i386 2.3.17-4 base 76 k
    libbonobo i386 2.16.0-1.fc6 base 501 k
    libbonoboui i386 2.16.0-1.fc6 base 389 k
    libcroco i386 0.6.1-2.1 base 127 k
    libfontenc i386 1.0.2-2.2.el5 base 19 k
    libglade2 i386 2.6.0-2 base 96 k
    libgnome i386 2.16.0-6.el5 base 858 k
    libgnomecanvas i386 2.14.0-4.1 base 222 k
    libgnomeui i386 2.16.0-5.el5 base 978 k
    libgsf i386 1.14.1-6.1 base 116 k
    librsvg2 i386 2.16.1-1.el5 base 178 k
    libwmf i386 0.2.8.4-10.2 base 834 k
    libxslt i386 1.1.17-2.el5_2.2 base 485 k
    pkgconfig i386 1:0.21-2.el5 base 59 k
    shared-mime-info i386 0.19-5.el5 base 148 k
    ttmkfdir i386 3.0.9-23.el5 base 46 k
    urw-fonts noarch 2.3-6.1.1 base 4.5 M
    xorg-x11-font-utils i386 1:7.1-2 base 75 k
    xorg-x11-xfs i386 1:1.0.2-4 base 68 k

    Transaction Summary
    ================================================================================
    Install 36 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 23 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/36): avahi-glib-0.6.16-6.el5.i386.rpm | 15 kB 00:00
    (2/36): chkfontpath-1.10.1-1.1.i386.rpm | 15 kB 00:00
    (3/36): libfontenc-1.0.2-2.2.el5.i386.rpm | 19 kB 00:00
    (4/36): libFS-1.0.0-3.1.i386.rpm | 30 kB 00:00
    (5/36): libXpm-3.5.5-3.i386.rpm | 45 kB 00:00
    (6/36): ttmkfdir-3.0.9-23.el5.i386.rpm | 46 kB 00:00
    (7/36): pkgconfig-0.21-2.el5.i386.rpm | 59 kB 00:00
    (8/36): xorg-x11-xfs-1.0.2-4.i386.rpm | 68 kB 00:00
    (9/36): gnome-mount-0.5-3.el5.i386.rpm | 70 kB 00:00
    (10/36): xorg-x11-font-utils-7.1-2.i386.rpm | 75 kB 00:02
    (11/36): libart_lgpl-2.3.17-4.i386.rpm | 76 kB 00:02
    (12/36): libglade2-2.6.0-2.i386.rpm | 96 kB 00:01
    (13/36): audiofile-0.2.6-5.i386.rpm | 107 kB 00:01
    (14/36): libgsf-1.14.1-6.1.i386.rpm | 116 kB 00:00
    (15/36): libcroco-0.6.1-2.1.i386.rpm | 127 kB 00:00
    (16/36): esound-0.2.36-3.i386.rpm | 129 kB 00:02
    (17/36): shared-mime-info-0.19-5.el5.i386.rpm | 148 kB 00:01
    (18/36): gd-2.0.33-9.4.el5_4.2.i386.rpm | 154 kB 00:01
    (19/36): gnome-keyring-0.6.0-1.fc6.i386.rpm | 170 kB 00:01
    (20/36): lcms-1.18-0.1.beta1.el5_3.2.i386.rpm | 176 kB 00:01
    (21/36): librsvg2-2.16.1-1.el5.i386.rpm | 178 kB 00:01
    (22/36): libgnomecanvas-2.14.0-4.1.i386.rpm | 222 kB 00:02
    (23/36): libXfont-1.2.2-1.0.3.el5_1.i386.rpm | 241 kB 00:06
    (24/36): libbonoboui-2.16.0-1.fc6.i386.rpm | 389 kB 00:04
    (25/36): alsa-lib-1.0.17-1.el5.i386.rpm | 412 kB 00:04
    (26/36): libxslt-1.1.17-2.el5_2.2.i386.rpm | 485 kB 00:04
    (27/36): libbonobo-2.16.0-1.fc6.i386.rpm | 501 kB 00:04
    (28/36): gnome-mime-data-2.4.2-3.1.i386.rpm | 690 kB 00:08
    (29/36): ghostscript-fonts-5.50-13.1.1.noarch.rpm | 801 kB 00:08
    (30/36): libwmf-0.2.8.4-10.2.i386.rpm | 834 kB 00:09
    (31/36): libgnome-2.16.0-6.el5.i386.rpm | 858 kB 00:09
    (32/36): libgnomeui-2.16.0-5.el5.i386.rpm | 978 kB 00:09
    (33/36): gnome-vfs2-2.16.2-4.el5.i386.rpm | 1.3 MB 00:12
    (34/36): ImageMagick-6.2.8.0-4.el5_1.1.i386.rpm | 3.3 MB 00:33
    (35/36): urw-fonts-2.3-6.1.1.noarch.rpm | 4.5 MB 00:45
    (36/36): ghostscript-8.15.2-9.11.el5.i386.rpm | 5.9 MB 01:10
    --------------------------------------------------------------------------------
    Total 87 kB/s | 23 MB 04:31
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : libbonobo [ 1/36]
    Installing : libart_lgpl [ 2/36]
    Installing : libglade2 [ 3/36]
    Installing : libgnomecanvas [ 4/36]
    Installing : audiofile [ 5/36]
    Installing : gnome-keyring [ 6/36]
    Installing : libfontenc [ 7/36]
    Installing : libXfont [ 8/36]
    Installing : xorg-x11-font-utils [ 9/36]
    Installing : ttmkfdir [10/36]
    Installing : avahi-glib [11/36]
    Installing : libxslt [12/36]
    Installing : libcroco [13/36]
    Installing : libFS [14/36]
    Installing : lcms [15/36]
    Installing : pkgconfig [16/36]
    Installing : libXpm [17/36]
    Installing : gd [18/36]
    Installing : libwmf [19/36]
    Installing : alsa-lib [20/36]
    Installing : esound [21/36]
    Installing : shared-mime-info [22/36]
    Installing : gnome-mime-data [23/36]
    Installing : gnome-vfs2 [24/36]
    Installing : libgnome [25/36]
    Installing : libbonoboui [26/36]
    Installing : chkfontpath [27/36]
    Installing : gnome-mount [28/36]
    Installing : libgnomeui [29/36]
    Installing : libgsf [30/36]
    Installing : librsvg2 [31/36]
    Installing : xorg-x11-xfs [32/36]
    Installing : urw-fonts [33/36]
    Installing : ghostscript-fonts [34/36]
    Installing : ghostscript [35/36]
    Installing : ImageMagick [36/36]

    Installed: ImageMagick.i386 0:6.2.8.0-4.el5_1.1
    Dependency Installed: alsa-lib.i386 0:1.0.17-1.el5 audiofile.i386 1:0.2.6-5 avahi-glib.i386 0:0.6.16-6.el5 chkfontpath.i386 0:1.10.1-1.1 esound.i386 1:0.2.36-3 gd.i386 0:2.0.33-9.4.el5_4.2 ghostscript.i386 0:8.15.2-9.11.el5 ghostscript-fonts.noarch 0:5.50-13.1.1 gnome-keyring.i386 0:0.6.0-1.fc6 gnome-mime-data.i386 0:2.4.2-3.1 gnome-mount.i386 0:0.5-3.el5 gnome-vfs2.i386 0:2.16.2-4.el5 lcms.i386 0:1.18-0.1.beta1.el5_3.2 libFS.i386 0:1.0.0-3.1 libXfont.i386 0:1.2.2-1.0.3.el5_1 libXpm.i386 0:3.5.5-3 libart_lgpl.i386 0:2.3.17-4 libbonobo.i386 0:2.16.0-1.fc6 libbonoboui.i386 0:2.16.0-1.fc6 libcroco.i386 0:0.6.1-2.1 libfontenc.i386 0:1.0.2-2.2.el5 libglade2.i386 0:2.6.0-2 libgnome.i386 0:2.16.0-6.el5 libgnomecanvas.i386 0:2.14.0-4.1 libgnomeui.i386 0:2.16.0-5.el5 libgsf.i386 0:1.14.1-6.1 librsvg2.i386 0:2.16.1-1.el5 libwmf.i386 0:0.2.8.4-10.2 libxslt.i386 0:1.1.17-2.el5_2.2 pkgconfig.i386 1:0.21-2.el5 shared-mime-info.i386 0:0.19-5.el5 ttmkfdir.i386 0:3.0.9-23.el5 urw-fonts.noarch 0:2.3-6.1.1 xorg-x11-font-utils.i386 1:7.1-2 xorg-x11-xfs.i386 1:1.0.2-4
    Complete!

  4. Cek halaman yang gagal menampilkan gambar, Alhamdulillah gambar sudah dapat dilihat kembali

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>