Optimisation of Setting Up Permission

Replace www-data by the current user running apache using command line
Merge pull request #2851 from ph-il/2.2

Optimisation of Setting Up Permission