I know this have been asked long ago, but I just want to help future users who are learning stuffs by their own.
I came across this issue before when I edited the Apache Template. I had some typo on the hosting template. File like hosting.tpl
But that was in my case. Other things that might cause this is permission issue on the document root folder. Make sure it is owned by the user on the system.