Archive for the 'Joomla' Category

Getting the Zoom Media Plugin to work on a Joomla site

Friday, January 12th, 2007

I really didn’t want x11 installed on my webserver, but I finally caved today. I was trying to migrate the Doric Open Fencing website to a new server this evening. My girlfriend runs the site, which is joomla based and has chosen to use the Zoom Media Gallery plugin. Anonymous visitors had no problem, but logged in users encountered the following error:

PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed

Documentation regarding the pre-requisites for the Zoom Media plugin are a bit absent and I noticed I wasn’t the only person having hassles with this.

Installing php5-gd fixes the error, but leaves me with a load of bollocks (x11) installed on a server:

# apt-get install php5-gd
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
defoma file fontconfig-config libfontconfig1 libgd2-xpm libt1-5 
 libx11-6 libx11-data libxau6 libxdmcp6 libxpm4 ttf-dejavu 
 x11-common
Suggested packages:
defoma-doc psfontmgr x-ttcidfont-conf dfontmgr libgd-tools
Recommended packages:
libft-perl
The following packages will be REMOVED:
libgd2-noxpm
The following NEW packages will be installed:
defoma file fontconfig-config libfontconfig1 libgd2-xpm libt1-5 
 libx11-6 libx11-data libxau6 libxdmcp6 libxpm4 php5-gd ttf-dejavu 
 x11-common
0 upgraded, 14 newly installed, 1 to remove and 0 not upgraded.

Given that the server is a Xen virtual machine, which doesn’t support X11 display (unless you go to some trouble to make it work), this is even more bizarre. Why does it work? Note the memory errors on install:

Unpacking x11-common (from .../x11-common_1%3a7.1.0-9_i386.deb) ...
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address
Selecting previously deselected package libxau6.
Unpacking libxau6 (from .../libxau6_1%3a1.0.1-2_i386.deb) ...
Selecting previously deselected package libxdmcp6.
Unpacking libxdmcp6 (from .../libxdmcp6_1%3a1.0.1-2_i386.deb) ...
Setting up x11-common (7.1.0-9) ...
/dev/mem: mmap: Bad address
/dev/mem: mmap: Bad address

Selecting previously deselected package libx11-data.
(Reading database ... 13474 files and directories currently installed.)
Unpacking libx11-data (from .../libx11-data_2%3a1.0.3-4_all.deb) ...
Selecting previously deselected package libx11-6.
Unpacking libx11-6 (from .../libx11-6_2%3a1.0.3-4_i386.deb) ...
/dev/mem: mmap: Bad address

If X11 doesn’t work on Xen, then why do I need to install all this extra guff to get some uppity plugin working? *grizzle* Clearly there’s a bunch of stuff being installed here that isn’t used.