Optimisation of Setting Up Permission

Replace www-data by the current user running apache using command line

Doc fix?  yes
New docs? No
Applies to all
Fixed tickets #2850