Browse > Home / Archive: April 2008

| Subcribe via RSS

Amazon establish Service Health Dashboard

April 19th, 2008 | No Comments | Posted in Thoughts

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Are you tired of wondering if it’s your system or code that is causing a problem, or if the service you are using is the reason for all your errors?

Amazon yesterday announced the availability of their new Service Health Dashboard.

Customers have told us that having such a status indicator would be more useful than visiting a service-specific forum to see if messages have been posted about an issue with a service. As soon as we know about a change in the status of a service, we’ll change the color as appropriate on this page. It is intended as the single, authoritative source of information on the status of our services, eliminating doubt as to when and where to check.

It looks very thorough, displaying not only the current status but also a historical record. It even has RSS feeds for each of the Amazon services. I recommend bookmarking the page and keeping it handy if you are a serious Amazon AWS user.

Tags: , , , , ,

Quick Tip - Installing Eaccelerator with Litespeed

April 12th, 2008 | 2 Comments | Posted in Tutorials, development

As mentioned in an earlier post, I am currently in the process of moving web hosts. As late as this morning I was perfectly happy with the configuration I had set up using the Nginx webserver and was ready to start the move, until I decided to make life easier for myself and try the Litespeed webserver (which WordPress.com uses) instead. Installation went swimmingly, despite a 3 hour power cut at a critical stage, up until the point I decided to install Eacceelerator as well and then things sort of stopped. For those of you who find yourself in the same situation - there is an extra step you need to perform to get Litespeed to see your Eaccelerator extension.

Once you have compiled Eaccelerator on your server (even if you use the Litespeed PHP compiler built into the administration website), you may find that you will need to copy the eaccelerator.so from the standard directory into the very strange looking Litespeed extensions directory before it can be enabled in your php.ini file.

To find out the directory you need, create a php file with the following content on your webserver:

and load it in your browser. You are looking for a line under PHP Core that looks like this:

You may need to create the directory, as on my installation it didn’t exist, but once you have the eaccelerator.so file in the right place you can add the following to your php.ini file:
extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

Finally, restart the Litespeed server, create the cache directory (shown in the above configuration details if it doesn’t already exist) and run your phpinfo() page again. If it has all worked you should see the following at the bottom of the first block of information:

More notes on this issue can be found here and here

Tags: , , , ,

Hacking Kses

April 11th, 2008 | 4 Comments | Posted in Tutorials, development

As I spent a great deal of time (and hunting on the Internets) on this I thought I would share the result of my efforts and hopefully save your sanity and hairline.

kses is an HTML/XHTML filter written in PHP. It removes all unwanted HTML elements and attributes, and it also does several checks on attribute values. kses can be used to avoid Cross-Site Scripting (XSS).

It is built into WordPress and WordPress MU and acts on all the content you enter into your posts and pages and strips out all the nasties that WordPress doesn’t think you should be using. 99% of the time you won’t even notice that it is there, but everynow and then you will try to include something in your post and it just won’t save. In a round-a-bout way, this is the situation I found myself in earlier this week.

Try as I might, I just couldn’t get WordPress MU to accept style attributes (this is also the case for normal WordPress). Everytime I saved a post the style would be stripped out completely (MU also removes class and id attributes as well). Most annoying and after pulling out what little hair I had left I turned to the Oracle of all knowledge.

More »

Tags: , , , , ,

Server moves, testing and updates

April 10th, 2008 | No Comments | Posted in Thoughts

This blog post is, in all honesty, a way of testing the blogging bundle in TextMate. Yes I have succumbed… I’m only 14 days into the 30 day trial period but it certainly looks like I will be putting my hand in my pocket and buying a license.

After months (over a year actually) of being reliant on Eclipse PHP I pretty much thought that my process of development was as streamlined as it could get. Boy was I wrong!! I highly recommend trying it out (Mac owners only though I’m afraid).

Server Moves

We’ve been hosted on the MediaTemple Grid-Server now for almost a year, and whilst it has been mostly fine and certainly better than our previous hosts, the extra level of control and ssh access has spoilt me a bit. I was planning on upgrading to a MediaTemple DPV server until I found Slicehost.

I’ve been playing with a basic Slicehost slice for a few weeks now and have managed to get WordPress MU running on it with the Nginx webserver and PHP5 running as a FastCGI process. I may write up a tutorial at a later date, but all I can say for now is Wow, does that thing fly. It certainly shows up the availability and latency problems MediaTemple have been having over the past 4 months.

I will be posting as parts of the site make the move over to the new server, so if some things stop working, then you know why.

Development Updates

I must admit to being rather inspired by the recent release of the new BuddyPress website and WordPress MU plugins. So I am contemplating taking the Property management plugins in a similar direction (though obviously not by getting a job at Automattic).

The main Property management plugin is very close to approaching an Alpha release. It is primarily a backend administration plugin that has no interaction with the public side of the WordPress powered site. The front-end plugins will use the information generated by the management plugin to display the required information to your site visitors, these will be released a bit later.

I have the Property management plugin currently in use and undergoing testing on one WordPress MU powered site and so far it seems to be behaving itself, there are a few bugs I am working through (and browser issues - yes I am looking at you Internet Explorer) but nothing major.

I will post more on this early next week, and maybe include a screencast of some of the functionality, if I can manage to operate a computer after my planned birthday weekend Irish pub crawl.

Tags: , , , , , ,

Making the move to PHP5

April 1st, 2008 | No Comments | Posted in development, wordpress

Following on from this post made late last year, I have decided to move forward with PHP5 based development where it is appropriate.

This doesn’t mean that all future versions of our plugins will require PHP5, but if a particular bit of functionality can be developed quicker using PHP5 only code, then that will be the way I will approach it.

Also, whilst I am on the subject of backward compatibility, as WordPress 2.5 brings with it a brand new design to the administration system, I will also be working to this design for the plugin administration pages (though for the time-being I’m stuck because WordPress MU still has the old look).

So far only the development versions of the Property plugin and MyDashboard 0.5 are PHP5 only

Tags: , , ,