The user that PHP runs under needs to have write access to the folder you put the forum in, in your case /var/www/html/forum/. That’s where it creates the per-topic `.xml` files.
That’s really the only CHMOD setting there is. On most servers I have worked with, this was already the case.