tonydspaniard / yiinitializr-advanced

Yii Framework project structure boilerplate for advanced application requirements
67 stars 30 forks source link

403 error on backend #25

Closed p2made closed 10 years ago

p2made commented 10 years ago

Over multiple attempts at setting up a Yiinitializr-advanced project I'm getting persistent 403 errors on the backend site. After running composer install I set permissions using...

yiinitializr$ chmod -R 755 ./
yiinitializr$ chmod 777 */controllers
yiinitializr$ chmod 777 */models
yiinitializr$ chmod 777 */modules
yiinitializr$ chmod 777 */runtime
yiinitializr$ chmod 777 */views
yiinitializr$ chmod 777 */www/assets

I can reach both the frontend & api hosts in my browser & the host for my backend works if I set it to any other web folder.

antonkomarev commented 10 years ago

try to delete .htaccess file inside of /backend/www folder

p2made commented 10 years ago

What? There's a .htaccess file? Daft of me not to think of it but then it is an invisible file & out of sight out of mind etc.

Went down that path & indeed all 3 www folders have .htaccess files but there's also one in the /backend folder. It contains a single rule deny from all. Removing that file fixes the problem. The .htaccess file in /backend/www is fine.

Thanks much :)