Gii 404 in Yii2

I’ve almost completed the getting started guide at and have been really pleased with how smoothly everything has gone, except for one thing the author overlooked… but I’m having trouble seeing my Gii. I have double checked the code, even though it says I shouldn’t have to add any and I didn’t. It was as stated in the tutorial set by default for the development environment. I’m hoping it’s just in the URL somehow, I’ve also tried http://localhost/hello/web/site//index.php?r=gii both with and without trailing slashes…

There is no site sub directory in web folder.

mine is working…

I forgot in your directory config/web.php
did you supply this ?
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
‘cookieValidationKey’ => ’ ',

just put any key example

'cookieValidationKey' => 'mykey ',

I forgot I had previously put a copy of Zend on that server, after re-installing Apache it worked fine. sorry for the panic and thank you for responding.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.