// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
),
'modules'=>array(
// uncomment the following to enable the Gii tool
'gii'=>array(
'class'=>'system.gii.GiiModule',
'password'=>'yii',
'ipFilters'=>array('192.168.0.150'),
),
),
i also tried
127.0.0.1
and my internet external ip, this 192.168.0.150 is my DMZ ip, none of 3 are working
any help
i am using Yii 1.1.4
Is their any problem if yiic shell is depricated and gii is not working?
Have you verified that it does work locally for you? And then, can you configure it to be ‘false’ briefly on the remote server to verify that it works? (this would allow any IP, so something you would want to quickly turn off)
Have you absolutely verified your IP (say by visiting http://www.whatismyip.com/) to know you have the right address value?
Finally, you could echo out the results of this:
Yii::app()->request->userHostAddress
somewhere in your app and to verify that value is the same as the one you are using to configure ipFilters().
Since you get a 404 it’s rather not a problem with authentication since this would give you a 403. It looks more like Yii is not able to resolve the Request to any module/controller/action. This usually happens if no gii module is configured at all. So could you double check that you’re using the correct config file? Maybe post it here, if you still can’t make it work.
I think Gii should echo the client ip number in cases like this - too many people run into problems getting started. Of course an alternative to the command line (yiic webapp) would be preferable too.
Gii has a very good documentation… and as it says… it has no problem when run localy… and to use it remotely you have to set your IP address so that GII "knows" you
Please some one help me with gii tool which is used for code generation i configure all necesarry details with modules section which is in config/main.php but still i am not getting any window asking for authentication please see below link -
/127.0.0.1/CrudDemo/index.php?r=gii
as i refer the gii tools reference done every thing but i am not getting any link for code generation or not getting alert for authentication.
I too had the same problem with accessing the Gii tool for yii on my localhost but than commented out the url manager section in main.php under the config directory. Also the gii login url is as follows: