I installed Apache 2.2 and Php5 but I'm getting "Forbidden You don't have permission to access /webs/ on this server." when trying to view php page.
I'm running xp pro, I figure the folder/drive permissions must not be set correctly but I don't know how to set them. I need help! nerds unite
Edit: figured it out the ScriptAlias wasn't pointed to the php directory.
Last edited by igottaknow on Aug-27-2006 at 19:06
Aug-27-2006 03:18
xtr3m
Supreme tranceaddict
Registered: Mar 2002
Location: Vancouver
So, an all-in-one server package like WAMP is not something that you'd like to use?
Aug-27-2006 04:56
prothoid
Senior tranceaddict
Registered: Jul 2005
Location: Dallas
is there maybe an apache user or group for the windows version? you should try right click > properties on your webroot folder and make sure the permissions are such that anyone can access the folder to at least read files. im not too sure how to get to the security/permissions area of the folder properties. with xp pro i think its on the properties page of the folder somewhere, with xp home, i have to be administrator in safe mode to see the tab.
___________________
Aug-27-2006 05:23
Jocker
whatup homie
Registered: Feb 2001
Location: Pittsburgh, PA
use "filemon" from www.sysinternals.com to find out which directory/file gives "access denied" to which particular account - and change permissions accordingly.
but i can bet it's the "network service" or "local service" account.
___________________
writing lyrics aint what it used to be
Aug-27-2006 06:00
Jocker
whatup homie
Registered: Feb 2001
Location: Pittsburgh, PA
Re: Re: apache on windows xp
quote:
Originally posted by Nou
It has nothing to do with folder permissions in windows (since apache service runs as system and therfore has access to anything and everything it wants).
You have to set that in the httpd.conf file to allow directory listings for the folder besides root...
You probably didn't change the <Directory x:\path\to\www\> </Directory> in the httpd.conf file... look for that
i don't know about apache, but by default all services on win xp are launched as either "network service" or "local service". if the necessary account of those two doesn't have permissions to a folder (even if "system" does) it will give you a 403. iis works that way too. microsoft gave in to sysadmins' nagging and created more granular security for services long ago.
___________________
writing lyrics aint what it used to be
Aug-27-2006 06:03
Lira
Ancient BassAddict
Registered: Nov 2001
Location: Brasilia, Brazil
Igottaknow, have you ever tried Xampp? Ever since I installed it, I've never had problems with Apache (although, because it comes with PHP and MySQL pre-installed, I never had to mess with its configuration).
___________________
Indiana Clones Upcoming Sets
[ I May Upload Something Someday ]
Aug-27-2006 06:04
igottaknow
PerfectTeeth R4 Dinosaurs
Registered: Feb 2001
Location: The Future
I figured it out.
In the httpd.conf the ScriptAlias location in the IfModule section was pointing to "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"
I changed it to the php directory everything was ok.
Aug-27-2006 18:59
Omega_M
Nostalgia
Registered: Jun 2005
Location: Ether
Try installing this version of Apache. It might just work
Originally posted by twilightki : It feels like something you'd listen to at 4 in the morning, or listen to in your car while you're going in a tunnel.
Aug-27-2006 19:30
monishb
Transformed
Registered: Mar 2002
Location: Vancouver-Toronto-Dubai-Mumbai
quote:
Originally posted by Omega_M
Try installing this version of Apache. It might just work
roffels
i lawled for a while there.
Aug-27-2006 19:33
igottaknow
PerfectTeeth R4 Dinosaurs
Registered: Feb 2001
Location: The Future
been there done that
Aug-27-2006 19:48
Omega_M
Nostalgia
Registered: Jun 2005
Location: Ether
quote:
Originally posted by igottaknow
been there done that
if it crashes, then you will be booked on terrorism charges.
Originally posted by twilightki : It feels like something you'd listen to at 4 in the morning, or listen to in your car while you're going in a tunnel.