Archive for December, 2009

trouble installing ruby image_science

Posted in ruby on December 7th, 2009 by paul – Be the first to comment

I am using the Image Science library to do some simple thumbnailing of uploaded images in a project.

This library is very simple to use, and by all accounts is nice and lightweight and so seemed right.

However, I hit a few problems getting it installed.

One of the requirements on the site is for Ruby Inline. Now, in my haste the first time through I thought I could just gem install inline .

Hah, not so! The inline gem is not the RubyInline gem as linked to from the Image Science site.

So, one has to install the RubyInline gem to get it to work.

Of course this is clearly signposted on the Image ScienceĀ  page, but I thought I’d note it here.

Assumption being the mother of all wasted evenings etc etc.

rebuild cpanel apache config for custom includes

Posted in cpanel on December 1st, 2009 by paul – Be the first to comment

I needed to create a ServerAlias for one of my subdomains recently and cPanel was stubbornly refusing to do it via the web interface, something to do with dns servers.

Anyway, I just added a simple ServerAlias subdomain.domain.com entry in a file in

/usr/local/apache/conf/userdata/std/2/domain.com/sub.domain.com/subdomain.conf

Then I ran this command:

/scripts/ensure_vhost_includes --all-users

which gets cPanel to rebuild it’s various config files.

Everything works fine now