简体   繁体   中英

Models permission in Yii2

I need to give 766 permission to common/models in order to generate files using gii module. But when I do that 'Class 'common\\models\\User' not found' error is thrown. It only works for 755 permisson. What is the problem?

766 permission does work only when the file owner is the web server (apache) . So 766 wont work if the web server is not the owner of the directory.

766 means:

Owner can: Read/Write/Execute.
Group can: Read/Write.
Public can: Read/Write.

755 means:

Owner can: Read/Write/Execute.
Group can: Read/Execute.
Public can: Read/Execute.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM