Jump to content

[SOLVED] Apache 2.2 new install error


Joeddox

Recommended Posts

I installed apache for the first time and I had everything working. I then went to install PHP and kept getting Forbiddin page. So I uninstalled php and apache still wasn't working. I uninstalled and reinstalled apache. Now all I get when I'm surpost to see the "It works" page is "You are not authorized to view this page". I don't have world wide web service installed if that helps. Can anyone help me get this running?  ???

Link to comment
Share on other sites

Ok I found out that when I change the 'httpd.conf' and uninstalled and reinstalled it was still pointing to another drive. So it work with the default folder.

 

But if I try to put it to a different drive

DocumentRoot "C:/program files/apache software foundation/apache2.2/htdocs"

 

to

 

DocumentRoot "F:/webroot"

I get forbidden page. Do I have to give the folder some special rights for apache? Anyone know? I've read something about sharing a folder something like 775 but I have no idea what that means. I have simple file sharing disable...

 

Anyone?  ???

Link to comment
Share on other sites

If you have changed the DocumentRoot make sure you also change the main <directory> sub section to the new DocumentRoot.

 

Opne up the httpd.conf and do a search for the following:

<Directory "C:/program files/apache software foundation/apache2.2/htdocs">

 

and then change "C:/program files/apache software foundation/apache2.2/htdocs" to your new DocumentRoot. So the line should read this:

<Directory "F:/webroot">

 

Now save your httpd.conf and restart Apache. It should now be serving F:/webroot

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.