Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Another 403 error upon fresh install. |
|
Author |
|
Gottso
Joined: 28 Jun 2006 Posts: 2
|
Posted: Wed 28 Jun '06 13:58 Post subject: Another 403 error upon fresh install. |
|
|
Hello all. I'm new to apache/PHP/this forum.
I have installed Apache 2.2.2 , MySQL 4.1.20 and PHP 5.1.4 on my computer. All seemed to have installed correctly, until I went to test my PHP.
Upon creating a phpinfo file in my htdocs folder and trying to load it in my browser, i get a 403 error.
My OS is Win XP.
My httpd.conf has all the default permissions within.
I tried to tinker a little with the httpd.conf permissions to no avail.
The only option I see for permissions under XP is read - only when i Rclick and go to properties of a file/folder. Read only is checked off and sort of greyed out....and when i uncheck it, it doesnt give me an error, but doesnt seem to "take" as when i Rclick on it again, the check is back.
I am logged in as computer administrator so I do not know why this change is not taking place.
Any info or ideas you may have, I appreciate. Any further info you need from me, just post away.
Thanks.
G |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 28 Jun '06 18:55 Post subject: |
|
|
Any message in the error log?
I think you changed a path in the httpd.conf for the docroot and forgert secondly to change the second path for it? Am I right?
e.g.
Code: |
DocumentRoot "/server2/www"
#when ever you change the docroot change this path too
<Directory "/server2/www">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
|
|
|
Back to top |
|
HobbyTech
Joined: 25 Jun 2006 Posts: 31 Location: USA
|
Posted: Thu 29 Jun '06 6:27 Post subject: Re: Another 403 error upon fresh install. |
|
|
Gottso wrote: | The only option I see for permissions under XP is read - only when i Rclick and go to properties of a file/folder. Read only is checked off and sort of greyed out....and when i uncheck it, it doesnt give me an error, but doesnt seem to "take" as when i Rclick on it again, the check is back.
I am logged in as computer administrator so I do not know why this change is not taking place. |
As for folders, that box it won't change, it's something XP uses on folders to do something different that doesn't have the same meaning as normal file/folder permissions. Are you changing the file permissions?
If you're on XP Pro instead of Home, you have more fine-grained control over permissions. In addition, you must have simple file-sharing turned off, so the "Security" tab will show up in the "Properties" dialog of files and folders...this is where you change permissions. |
|
Back to top |
|
HobbyTech
Joined: 25 Jun 2006 Posts: 31 Location: USA
|
Posted: Sun 02 Jul '06 22:52 Post subject: |
|
|
Disable "Simple File Sharing" & Set Folder Permissions
You must be logged in as an Administrator to perform these tasks!
In case you don't know, "Simple File Sharing" allows you to simply drag folders you want to share into the "Shared Folders" directory, but you don't have the traditional control over permissions.
To disable "Simple File Sharing":
- Click the "Start" button on the Taskbar
- Click "Control Panel" in the Start Menu
- Switch to "Classic View", if you are currently in Category View
- Click the "Folder Options" icon
- Click the "View" tab
- In the "Advanced Settings" box, scroll all the way down and uncheck "Use simple file sharing (Recommended)"
To enable Read/Change Permissions:
- Right-click the "My Computer Icon"
- Click "Explore"
- Browse to the drive and folder you want to share
- Right-click the folder you want to share
- Click "Properties"
- Click the "Sharing" tab
- Mark the "Share This Folder" radio button
- In the "Share name:" box, type a name (usually same as the folder name, or maybe a short keyword like "Websites"
- (Optional) In the "Comment:" box, if you want, type a short description
- Near "User Limit", unless you know what you're doing, mark the "Maximum allowed" radio button to let the OS/server choose the number of connections to allow
- Click the "Permissions" button
- If there are Users/Groups whom you don't want to access the share, then select each one and click the "Remove" button one-at-a-time (Don't remove the Administrators group!)
- To start adding Users/Groups to the list, click the "Add" button
- Click the "Advanced" button in the new dialog
- Click the "Find Now" button to search for all Users and Groups
- In the bottom box, if the right column is too narrow, click and drag the faded grey border between the column headers
- Holding down the <Ctrl> key on your keyboard, click on each User or Group you want to add. By default, Apache logs on with the System account, so you should select that one.
- Click the "Ok" button in the current dialog
- Click the "Ok" button
- To start setting permissions for each User/Group, click a User or Group in the top box
- For the Administrators group, check the "Full Control" box in the bottom box and click the "Apply" button
- For the System account, or whatever user account Apache uses, check the "Change" and "Read" boxes and click the "Apply" button
- Continue like this for each desired User or Group
- Click the "Ok" button when you have set permissions for everyone you want
- Click the "Ok" button in the Properties dialog
|
|
Back to top |
|
|
|
|
|
|