New installation - Gii renders 500 Internal Server Error


(Larrytx) #1

I’ve just installed yii2 ver. 2.0.15.1 advanced template on localhost and made the following changes to backend/config/main.php:



    'modules' => [


            'gii' => [


                'class' => 'yii\gii\Module',


                'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.*', '192.168.178.20'] // adjust this to your needs


            ],


        ],


The site pulls up just fine on backend and frontend. However, when I try to access gii, I get a 500 Internal Server Error. No runtime log is generated in the yii2 application. However, the following is generated in the Apache error log:

AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.`

I’ve tried virtually everything I’m able to find by Google. Does anyone have any ideas on how to resolve this issue. I have always gotten Gii to work easily before.


(Marcelo de Andrade) #2

In your php.ini file, change display_errors to On and catch trace error log.