Well I fixed my first error and got it up. However if I chmod 777 res it redirects to wakaba.html which is 404 not found. Leaving as it is the dir is not writable.
Any thoughts?