Jump to content

[SOLVED] Setting Up WAMP


cookiemonster4470

Recommended Posts

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

 

Link to comment
https://forums.phpfreaks.com/topic/74316-solved-setting-up-wamp/
Share on other sites

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

 

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

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.