Linux and PHP web application support and development (Bromsgrove, UK)

Saving memory under Linux when using virtualisastion

If you’re running low of memory on a server, there may be scope to free up memory through use of ‘ksm‘. (Note, that the kernel will start looking for memory to de-duplicate if KSM is turned on AND there are some processes running which have notified the kernel that they’re candidates; ‘kvm’ does the latter.) […]

Read more...

PHPUnit and PDO – max_user_connections reached

We have a set of PHPUnit tests running against a Propel/PDO application. Recently, with a recent increase in the number of tests, we’ve found that we’ve been hitting MySQL’s max_connections or max_user_connections limit (see /etc/mysql/my.cnf on the MySQL server).

, ,

Read more...

require.js – an introduction

When creating more complex web applications, you end up with more and more Javascript, which can quickly become difficult to maintain. RequireJS is one approach to helping solve this (and other issues).

, ,

Read more...

iPXE Network booting for ISO images

Historically we had a ‘normal’ pxe boot server in the office (DHCP server points to a TFTP server and specified a pxelinux file to load) from which we could choose to install various distributions. The only problem with this is that it was initially limited to the a specific release/version of Debian/Ubuntu (as we’d just […]

, , ,

Read more...

Joomla Plugin Caching

Today we received an email along the lines of : “Help! A customer’s website is slow and they’re complaining it’s taking over 2 seconds to load!”

, ,

Read more...

How to graph data with Munin

Using something like munin it’s trivial to create a graph plotting trends – and assists in answering questions like : Why is the website on server X feeling slow today? Are we receiving significantly more hits/email/whatever than normal? How effective is the new mail server? When are we likely to run out of disk space? […]

,

Read more...

PHP North East Conference – almost here.

The PHPNE 2014 conference is almost upon us (March 18th). See their website for more details. The schedule looks awesome – I wish I could make it. As mentioned before, Pale Purple has helped by sponsoring the event – and we’re listed on http://conference.phpne.org.uk/sponsors.html   (Perhaps we should add a listing of conferences we’ve sponsored […]

, , , ,

Read more...

SSH fingerprint (sshfp) dns records

To help aid security for SSH connections, you can publish ‘SSHFP’ records in DNS which contain a fingerprint of a server’s ssh host key. If DNSSEC is in use throughout the DNS hierarchy then it ought to provide a trusted way of verifying remote hosts when no record already exists in your ~/.ssh/known_hosts file. To […]

, ,

Read more...

Porting a small screen Android watch app to a ‘normal’ smartphone size

Interestingly, we seem to be the fish swimming against the current – and today ported a ‘watch’ sized mobile app to work on on a phone sized (Android) device. The original app was designed for Android 1.6 (ImWatch) – and after about 5 minutes tinkering we were left wondering what to do with the extra […]

Read more...

Looking ahead to PHP 5.6

PHP 5.6 is almost here (we hope) – so we’ve had a look at some of the upcoming changes, and here are the ones of most interest to us. In a nutshell – variadics & splat, constant scalar expressions and ArrayOf type hinting ….

, , ,

Read more...

‹ Previous Posts Next posts›

FB G+ Twitter