Fix web folder permissions; updates php and apache configuration files