I want to use Gii in Yii. My secure /config/main.php for my first webapp has this part without comment as indicated in the Yii documentation to enable Gii (123.45.67.123 is my public IP address from the computer I'm trying to access):
'modules'=>array( // uncomment the following to enable the Gii tool 'gii'=>array( 'class'=>'system.gii.GiiModule', 'password'=>'123456', // If removed, Gii defaults to localhost only. Edit carefully to taste. 'ipFilters'=>array('123.45.67.123','127.0.0.1','::1'), ), ),
I also have urlManager enabled in my protected / config / main.php, uncommenting below:
// uncomment the following to enable URLs in path-format 'urlManager'=>array( 'urlFormat'=>'path', 'rules'=>array( '<controller:\w+>/<id:\d+>'=>'<controller>/view', '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', '<controller:\w+>/<action:\w+>'=>'<controller>/<action>', ), ),
When I go to a Yii site, such as www.example.org, the Yii main page loads in order. When I do www.example.org/gii, I get 404. When I go to www.example.org/index.php?r=gii, I get 404. Why is my Gii page not found? I am using CentOS 5.6.
source share