I created the file phpinfo.{php} (without brackets) on the public_html, with the code mentioned above. But, the url to it gives a 404 error, while after changing the permissions of the domains folder, the main URL seems to give a 403 error.
Also, something to be noted is that, permissions of...