Archive for the 'CMS' 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.

Gladserv

Friday, December 1st, 2006

I notice Google has picked up this blog recently so I guess I’d better start writing in it. Drafts of various articles have been underway for a while, but I’ve had little time to finish them. I expect I’ll be writing more over the Christmas break. Last year I spent considerable time testing and reviewing Open Source LAMP apps between eating various roasted animals and consuming vast quantities of alcohol. Bliss.

Gladserv.com is a step or two closer to being launched as a business hosted services provider. The domains are registered, the website is coming together, the second dedicated server has been ordered from Bytemark. An earlier order from UK2 was aborted when I discovered just how difficult they were to contact. Take a look at “Why Not To Use UK2” if you’re seriously considering them - cheap has more than one meaning. This server will be split into several virtual machines (VMs) using Xen with unused VMs sold off - there are already three other businesses on board.

I went to see the bank yesterday and my bank manager actually told me he thought my revenue estimates for the first year were very conservative. I tend to estimate on the side of caution these days, after previous bitter experience. This project is definitely gathering momentum.

I’m starting to promote the site. At the speed Google moves, I think it best to link first and write afterwards. I’ve put the shell of the site together using Website Baker, which is probably the easiest Content Management System (CMS) to set up and use I’ve come across. Graphics and pretty stuff will follow when someone with more visual talent than I provides them.

For the moment I have no need for the kind of fancy frippery that something like Joomla has built in. I usually spend the first hour on a new Joomla site turning everything off. For a simple business site, Website Baker has everything needed to get off the ground without additional distractions. There are some addons available to perform most commonly required functions, but nothing like the bewildering range of Joomla toys. Maybe later.

Yesterday I bought an incoming phone number from Gradwell and pointed it at an old Asterisk installation on my backup server. I’ve never used Gradwell for VOIP services before, but they came highly recommended to me so I thought I’d try them out. I’ve had less success with some other providers in the past. No problems at all so far. Online signup was straightforward. At one point I needed to phone for an authorisation code. At 1730 they answered the phone within a few rings and dealt with it on the spot. Provisioning of the line was immediate.

Asterisk setup is a topic for another day, but to add a new number into an existing setup is trivial. Add a few lines like this to iax.conf:

[08708618861]
type=user
username=myusername
secret=mypassword
context=iax-in
host=dynamic

and a line in extension.conf to tell asterisk where to direct incoming calls:

[iax-in]
exten => 08708618861,1,Goto(gladserv,s,1)

Easy. No need to get a man in at all.