Fixing the ownership of deployment directories

Deployment directories and files were previously having `nobody:nobody` owner and group. This changed into `root:root`. 

Additionally, `public_html/media` has now `apache:apache` owner and group to fix the problem with the marketplace, that was unable to write files inside `media` directory.