Allow custom extensions for php handler

This patch allows to define custom extensions for apache mod php. Changes are backward compatibles.