Forum Moderators: phranque
Am a web designer whom has installed Apache 1.3.28 on my XP Home machine.
Install went perfect, went to [localhost...] and it was successful. Install PHP, and my test.php file worked.
PROBLEM:
When I made a new directory in the /htdocs/ folder called /php/ just to test the folder priviledges, and copied my test.php, which ran perfectly as [localhost...] , and tried to load it in [localhost...] , it gave me a:
403 Forbidden
You don't have permission to access /php/ on this server.
.
Now the only folder in the /htdocs/ is a documentation folder which came with the install.
And as far as I understand, I obviously have to edit my "httpd.conf" file to change permissions.
How would I do edit it with setting permissions to all folders I create in the /htdocs/ folder or do I have to set an "alias"?(a word I dont know the true meaning of) for every single folder I want to create?
Please help?
Thanks
J
Alias /anyname "c:/php/"
<Directory "c:/php/">
Options FollowSymLinks Indexes
AllowOverride None
Order deny,allow
allow from 127.0.0.1
deny from all
</Directory>
and localhost/anyname/test.php should call your page c:/php/test.php
You have to do that for each folder or call/link your pages from an allowed folder