"Help, I need somebody's help, not just anybody's help" ~the beatles ... I can access localhost/phmyadmin but localhost and vhosts are 403 forbidden?
Posted by: dalebrendan (---.39.56.5.available.comcastnets.net)
Date: May 13, 2011 02:57PM

Hello all, thanks in advance for any help/suggestions.

I am receiving a 403 Forbidden error on localhost/ but not on localhost/phpmyadmin

--------------------------------------------------------

I have WampServer2 on a Windows XP machine. I work on a network and have Administrative rights assigned for the entire Wamp folder and I have both of these services (wampapache and wampmysqld) started and running automatically. My WampServer Icon is still red, even after restarting. I also tried putting the server online--to no avail.

What is confusing me is that i am able to access: localhost/phpmyadmin, but not localhost or any of my virtual hosts (e.g. test.localhost or localhost/test).

What could possibly be causing this error?

--------------------------------------------------------

I have my hosts file configured:

127.0.0.1 localhost
127.0.0.1 test.localhost

--------------------------------------------------------

I have my vhosts file included and configured:
(un-commented line 466 of C:\wamp\bin\apache\Apache2.2.17\conf\httpd.conf)

<VirtualHost *:80>
ServerAdmin webmaster@form.localhost
DocumentRoot "C:/wamp/www/test"
ServerName test.localhost
ErrorLog "logs/test-error.log"
CustomLog "logs/test-access.log" common
</VirtualHost>

--------------------------------------------------------

I do not have IIS or Skype running or anything that appears to be conflicting with port 80.

--------------------------------------------------------

Windows Firewall is turned off...
Symantec is installed on this machine...
Am I getting stuck behind the firewall? If so, then why would I be able to access localhost/phpmyadmin but not localhost or test.localhost?

I've setup WAMP numerous numerous times, but am dead in the water on this one.

Any and all help is greatly appreciated.

Thanks again,
~dale



Edited 6 time(s). Last edit at 05/13/2011 03:05PM by dalebrendan.

Options: ReplyQuote
Re: "Help, I need somebody's help, not just anybody's help" ~the beatles ... I can access localhost/phmyadmin but localhost and vhosts are 403 forbidden?
Posted by: dalebrendan (---.39.56.5.available.comcastnets.net)
Date: May 13, 2011 03:15PM

I seem to have fixed this problem... I changed my entry in my vhost file from:

<VirtualHost *:80>
ServerAdmin webmaster@form.localhost
DocumentRoot "C:/wamp/www/test"
ServerName test.localhost
ErrorLog "logs/test-error.log"
CustomLog "logs/test-access.log" common
</VirtualHost>

----------------------------------------------------

to:

<VirtualHost *:80>
ServerName test.localhost
DocumentRoot c:/wamp/www/test
ErrorLog "logs/test-error.log"
CustomLog "logs/test-access.log" common

<directory c:/wamp/www/test>
Options Indexes FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from 127.0.0.1
</directory>
</VirtualHost>

----------------------------------------------------

I am now able to: echo 'hello world'; and it appears to be functioning. ...more then likely I will run into some other obscure error. If I do and as I do, I will repost in this thread.

Hope this helps some other lost soul.

----------------------------------------------------

My WampServer icon is still RED though, by the way, but am assuming that is because I am starting these services automatically when my machine boots and they are not being turned on by WAMP. Just a hunch. I don't much care about the color of the icon as long as it works.

Thanks again--best,
~dale



Edited 2 time(s). Last edit at 05/13/2011 03:17PM by dalebrendan.

Options: ReplyQuote
Re: "Help, I need somebody's help, not just anybody's help" ~the beatles ... I can access localhost/phmyadmin but localhost and vhosts are 403 forbidden?
Posted by: dalebrendan (---.39.56.5.available.comcastnets.net)
Date: May 13, 2011 03:56PM

So peculiar...

I setup a second virtual host:

<VirtualHost *:80>
ServerName site2.localhost
DocumentRoot c:/wamp/www/site2
ErrorLog "logs/site2-error.log"
CustomLog "logs/site2-access.log" common

<directory c:/wamp/www/site2>
Options Indexes FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from 127.0.0.1
</directory>
</VirtualHost>

--------------------------------------------------------

and set my hosts file:
127.0.0.1 site2.localhost

--------------------------------------------------------

...and restarted WAMP server
...and get a 403 forbidden on this site, but the first one, the test one, works fine...

Options: ReplyQuote
Re: "Help, I need somebody's help, not just anybody's help" ~the beatles ... I can access localhost/phmyadmin but localhost and vhosts are 403 forbidden?
Posted by: dalebrendan (---.39.56.5.available.comcastnets.net)
Date: May 13, 2011 04:10PM

Will just continue commenting on my own thread, hoping that it will help someone down the road...

------------------------------------------------

Haha! Of course the new virtual host won't work you idiot (me). The IT guy set my services to start automatically when I turn my machine on... I don't have administrative rights to turn them on and off. Hence, when I tried to do a restart using using the WAMP gui, it didn't do anything.

...actually have to reboot my machine to get those services to restart. haha. I can live with that for the time being.



Edited 1 time(s). Last edit at 05/13/2011 04:11PM by dalebrendan.

Options: ReplyQuote
Re: "Help, I need somebody's help, not just anybody's help" ~the beatles ... I can access localhost/phmyadmin but localhost and vhosts are 403 forbidden?
Posted by: yfastud (Moderator)
Date: May 13, 2011 04:46PM

To run a web server, you must have admin full privilege and since you reply on IT which cause all those issues, afraid your posts are not really helping anybody; recommend to run on your own PC, not Company's ones winking smiley

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.