Whoops! We seem to have hit a snag. Please try again later

前端 未结 11 2886
死守一世寂寞
死守一世寂寞 2021-02-20 06:50

Whoops! We seem to have hit a snag. Please try again later.

Codeigniter 4 shows an error when I run the CI4 application, Ho

11条回答
  •  [愿得一人]
    2021-02-20 07:20

    Assume that your root folder of your CI4 project is rootproject. Edit rootproject/.env file. On line 17 change from:

    #  CI_ENVIRONMENT = production
    

    to:

    CI_ENVIRONMENT = development
    

    Save it.

    Refresh your browser that pointing to your CI4 project. It should give you many error messages.

    If there is something written as CacheException, than your cache folders are not writable. Make it writable;

    Ubuntu:

    chown -Rv www-data rootproject/writable
    

    CentOS:

    chown -Rv apache rootproject/writable
    

    Easy way:

    chmod 777 -Rv rootproject/writable
    

提交回复
热议问题