Free Open Source Alternative to PaperTrail App

Webtail is an Open Source tool I wrote, for tailing files on multiple servers and displaying content in a browser in real time. Using an agent on each server, it can be used for tailing logs and pushing new lines to a server and distributing content to browsers. Source code and install instructions can be […]

How to install RabbitMQ Server and Client on Debian

This is a quick step by step guide on how to install RabbitMQ and the PHP-amqplib client on a Debian server. Install server: sudo apt-get install rabbitmq-server Check the server status: sudo rabbitmqctl status Restart the server: sudo service rabbitmq-server start Install PHP5 client (amqp): Follow instructions from here: https://github.com/videlalvaro/php-amqplib Enable the web administration tool: sudo rabbitmq-plugins enable rabbitmq_management […]

Write your own Pinterest like Image Gallery using jQuery Wookmark and Symfony2

This article provides a quick tutorial on how to write your own Pinterest like Image Gallery using the jQuery Wookmark Plugin and Symfony2. Assuming you already created a Symfony2 Bundle and image files are stored on disk, below are the steps to follow for writing a new Controller and Twig template. WookmarkController (/Controller/WookmarkController.php) NOTE: Requires the Finder […]

Identifying bottlenecks in your PHP scripts, using XDebug and KCacheGrind

This entry focuses on how to identify slow parts of your scripts using the PHP/Xdebug profiling feature along with KCacheGrind for profile data visualisation. Xdebug is a PHP extension used for debugging scripts, supporting stack and function traces and information and memory allocation profilling. KCacheGrind is a profile data visualisation tool, allowing for easy browsing of […]

Symfony2: Folder Structure

This entry describes the Symfony2 directory structure; providing a broad understanding of how a project is structured, and laying the ground for file system level security and customization. Below are diagrams for each main folder, along with a description of its components (based on: http://symfony.com/doc/current/quick_tour/the_architecture.html): app/ folder: AppKernel.php – Main configuration entry point. Provides registerContainerConfiguration and registerBundles. […]

Symfony2 FreeBSD 10 PHP Packages

Below is a list of packages required for Symfony2 running on FreeBSD 10. pkg install php56 pkg install mod_php56-5.6.3 pkg install php56-session-5.6.3 pkg install php56-ctype-5.6.3 pkg install php56-dom-5.6.3 pkg install php56-hash-5.6.3 pkg install php56-mysql-5.6.3 pkg install php56-simplexml-5.6.3 pkg install php56-json-5.6.3 pkg install php56-xml-5.6.3 pkg install php56-hash-5.6.3 pkg install php56-pdo_mysql-5.6.3 pkg install php56-tokenizer-5.6.3 Replace 56 with […]