cookiemonster4470 Posted October 22, 2007 Share Posted October 22, 2007 I'm new to this site and trying to learn PHP/MySQL, but hit my first road-bump in that I can't get Apache working. I just went to http://www.wampserver.com and installed WAMP5 1.7.3 with PHP 5.2.4 and MySQL 5.0.45, but when I go to http://localhost/ I get the error: "Forbidden You don't have permission to access / on this server." What is wrong? (I thought people used WAMP to avoid having tons of set-up issues?!) :-\ Amy Quote Link to comment Share on other sites More sharing options...
cookiemonster4470 Posted October 22, 2007 Author Share Posted October 22, 2007 I got Apache to display the default WAMP page temporarily but now it is broken again?! ??? I've been playing with the httpd.conf but haven't had any luck. Here are some key lines... #Listen 12.34.56.78:80 Listen 80 # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesn't have a registered DNS name, enter its IP address here. # ServerName localhost:80 # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "C:/wamp/www" Amy Quote Link to comment Share on other sites More sharing options...
cookiemonster4470 Posted October 22, 2007 Author Share Posted October 22, 2007 Looks like I had to change the path in two places (see red)... # # ServerName gives the name and port that the server uses to identify itself. # This can often be determined automatically, but we recommend you specify # it explicitly to prevent problems during startup. # # If your host doesn't have a registered DNS name, enter its IP address here. # ServerName localhost:80 # # DocumentRoot: The directory out of which you will serve your # documents. By default, all requests are taken from this directory, but # symbolic links and aliases may be used to point to other locations. # DocumentRoot "C:/wamp/www" #DocumentRoot "C:/wamp/zTest" #DocumentRoot "C:/wamp/zWalrus" # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all </Directory> # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. # <Directory "C:/wamp/www"> #<Directory "C:/wamp/zTest"> #<Directory "C:/wamp/zWalrus"> # # # Amy Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.