Fixed init.php for web deployment, Fixed data folder perm failure