You don't have permission to access /sampleapp/index.php on this server.

Using an IP address generates error. If I use localhost, it works fine. Could anyone please assist me on where I need to change permision to be able to access my application in an intranet.

I figured it out. I was using Wamp and had not put online my server. I love this baby Yii.