I don't understand for the php5 case, my personnal branch of mapserver is using apache 2.4.10 and php5 5.6.3 and work like a charm on a 13.1+ For sure, I've migrated all my apache2 config to newer 2.4x syntax and same for php5.