reorder packages to prevent setup errors, fix a permission problem on /var/www/html directory