added proper permission parameters depending on Apache version. <https://bugzilla.redhat.com/show_bug.cgi?id=1062202>