Monthly Archives: April 2015

Exporting server list as PDF

Having to spend some time working from home has given me an opportunity to look at preparing readable documentation from a server list database I have constructed using a Rails application; I eventually expect to add a ‘Download as PDF’ button to the site.

Anyway, the main tool I have been using is the excellent Prawn gem (https://github.com/prawnpdf/prawn) and helped tremendously by the clear and detailed documentation. It has also given me the opportunity and confidence to improve my Ruby code into using classes and inheritance for the first time and I have a good feeling about how it is developing.

https://github.com/slugbucket/infra-doc

I’ll be making regular updates to this and the associated project.

CMS for Ruby on Rails

As a way of perhaps finding a new website platform where I might be able to use Ruby rather than PHP I’m looking to RoR CMS packages.

The top two contenders seem to refinery and locomotive, but it doesn’t appear to be a packed field.

Refinery

This supports Rails 4.1 so I expected that this would be a shoo-in. But I’m running Fedora and the install guide only mentions Ubuntu. And t didn’t get any better. Problems with a host JavaScript environment, needing MySQL root privileges and routing errors after eventually getting the database installed make this CMS a non-starter.

Locomotive

On the face of it this seems like it’s going to be hard because it only supports Rails 3 and I’ve heavily geared to Rails 4.

And so it proves. Even though it’s possible to get the gems installed and even the different version of Rails, it’s too much of a stretch to mix and match the whole environments.

Okay, so maybe a Rails CMS isn’t a great idea after all and perhaps I need to go back to Zope-based systems; I’ve previously had a good install of SilvaCMS.

Enabling PHP 5 on Fedora 20

I've been trying to get Modx CMS installed on a Fedora 20 laptop and just getting permission denied errors for absolutely no (apparent) reason.
By searching  came across http://stackoverflow.com/questions/5326531/php-warning-unknown-failed-to-open-stream which suggests the following command: 
/sbin/restorecon -R /var/www/
As described at http://linuxquestions.org/questions/linux-server-73/ - not that this actually resolves to a page.