Skip apache functions when not using apache

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>