How to mitigate from Apache Killer?


Apache is the most popular web server being used today. Apache Killer exploit which was released in August 2011, exploits a vulnerability in the Apache software by sending a crafted "Range" HTTP header. Apache Killer attack abuses the HTTP protocol by requesting URL content to be returned in a huge number of small chunks, which leads to hundreds of large memory fetches causing a server to run out of memory and crash. This vulnerability identified as CVE-2011-3192 was fixed in httpd-2.2.21.

ZF2 Example: Using headScript, inlineScript, headTitle and headMeta Helpers in the view/controller


ZF2 provides HeadScript and InlineScript Helpers to inject <script> elements in the template typically located inside the <head> tag, or at the very bottom of the closing </body> tag. To inject Title, Meta Keywords, Meta Description, headScript, and inlineScript in the view:

[SOLVED] Google has disabled use of the Maps API for this application


With Google API v2 being deprecated, the app that was working perfectly before started to spit errors on the user's screen like the one showing below:

Getting started with Doctrine 2 in ZF2


Using Doctrine as an ORM to persist your data significantly lowers your overhead in managing your database. However, if you're just getting started with Doctrine, you'll have to invest in moderate time to overcome learning curve. Here is some of not so obvious tricks you'll have to learn as a beginner to utilize Doctring.

Q. How do you install ZF2 doctrine modules?

Getting started with composer (composer.phar)


I am kicking off a new PHP project with the Zend Framework 2 (ZF2), and chose to use Doctrine as the persistence layer with ORM capabilities. Knowing that I need two Zend modules for Doctrine support, I've cloned the two modules (DoctrineModule and DoctrineORMModule) from GitHub to enable doctrine support in my ZF2 project. Oops, just installing those two Zend modules from GitHub do not make doctrine work! What am I doing wrong? Do I need a core Doctrine library from installed in addition to those two modules in order to make this work in ZF2?

SuiteCloud Developer Tools


I've had a chance to listen in on condensed version of webinar that discusses developer tools for the SuiteCloud platform. I have personally worked in Netsuite platform for about a year and have worked with SuiteTalk and SuiteScript development tools to integrate a standalone ecommerce application into Netsuite. Although I do have the administrative privileges, I have not thoroughly explore the available development tools that are offered by Netsuite.

How do you customize Google Custom Search Engine (CSE)?


Have you tried to customize the Google CSE search box to fit your website theme, and having difficulty implementing it? You're not alone. I've browsed Google CSE documentation for some time, but this information is buried under the hood and took me a while to figure this out. This is a 2-page Search & Results page design. You'll style the form element how ever you wish to design.

Search Box:

MySQL Character Set and Collation


MySQL documentation states the following in respect to "character set" and "collation" of the data storage in the database.

jQuery anonymous and callback function declarations


JavaScript enables you to create anonymous functions to be executed immediately or when the document is ready, and also allows you to freely pass functions around to be executed at a later time. The default short-hand notation for jQuery wrapper is $, and unless your webpage has a conflict with other javascript libraries you may freely use $ to wrap any jQuery scripts. Since there are many variations of anonymous function calls, they are worth mentioning here.

How to change MySQL user and root password?


We have been using DirectAdmin control panel for a number of years, and each time we setup a server it is necessary to change the root password. By default, Direct Admin creates a MySql superuser called "da_admin" with a preassigned password, but we do not know what the root password is. Since we use both DirectAdmin and command-line to manage our server, it is essential that we have proper MySQL root password assigned.


Subscribe to Web Traffic Exchange RSS