Edited the file permissions and fixed the error at index.php