403 Access Forbidden On /framework - Windows
Posted 14 March 2013 - 11:24 AM
I ran this:
C:\xampp\htdocs\yii\framework>yiic webapp mytestapp
Create a Web application under 'C:\xampp\htdocs\yii\framework\mytestapp'? (yes|no) [no]:y
and it create the app for me, but localhost/yii/framework/mytestapp gives me a 403 error. So does localhost/yii/framework. (first post so I can't include proper links, sorry)
I can browse the yii folders (except framework) and the demos (e.g. localhost/yii/demos/blog/) work fine.
Apache is running under the SYSTEM account, which has full control of all files under c:\, including framework directory.
Apache log says:
[Thu Mar 14 09:22:56 2013] [error] [client 127.0.0.1] client denied by server configuration: C:/xampp/htdocs/yii/framework
I've looked in the Apache config files and see nothing wrong (but I'm fairly new to Apache). I can't figure out why /framework is special.
httpd.conf includes this:
Options Indexes FollowSymLinks Includes ExecCGI
### Order allow,deny -- note that this change made no difference
Allow from all
What dumbness have I committed?
Posted 14 March 2013 - 11:32 AM
What you need to do is add C:\xampp\htdocs\yii\framework to your PATH.
Once you've done that, check that you can run yiic from anywhere.
Now, you need to go to C:\xampp\htdocs and run yiic webapp mytestapp
That should create a 'mytestapp' directory in C:\xampp\htdocs, which is what you want.
Posted 14 March 2013 - 12:10 PM
I edited httpd.conf a couple of times. I tried RequireLocal in the <Directory> entry, which Apache didn't like:
[Thu Mar 14 11:04:32 2013] [crit] [client 127.0.0.1] configuration error: couldn't perform authentication. AuthType not set!: /mytestapp/index.php
So I put it back the way it was:
Allow from all
and now it works. (I know to bounce Apache after each change, btw.)