I just installed WAMP following the directions in the book

I followed the instructions in the book “Build your own Database Driven Web Site using php and mysql” and I tried the 1st test program but it returned an error message saying that the web browser result
could not be displayed because I did not have permission to view. I don’t know what to do, the book suggested I could contact this forum for help.

Thanks

Hi francisamc,

I’d be glad to help you out. Can you copy the error word for word so I can see it? Is there also a number associated to the error? Server 500 for example? Are you getting this before or after the installation of WAMP (or during)?

Ok thanks

yes I have the attached error message, I am not sure if it was uploaded properly
so I have copied it out here as well

The website declined to show this webpage HTTP 403

Most likely causes:
•This website requires you to log in.

What you can try:

Go back to the previous page.
More information

Something is not configured properly so I don’t know.

Francis

Ah, do my a favor, create a index.html in your root folder. And just have the content be: “Apache Works!”

Then load up localhost/index.html and see if that works. It may be that your phpMyAdmin configuration is the only thing that is broken here.

If your index.html works, change it to index.php and make it have the following content:

<?php echo "Apache Works!";

Load localhost/index.php and verify it shows “Apache Works!”, if it does, we’ll move on the phpMyAdmin configuration :slight_smile:

Ok I will do that as soon as I can in a day or so, I don’t have access to that computer right now. Thanks again for your help.

I created an index file html and put it in the c:\wamp\www\ folder, I assumed that is the root, I loaded the file name into the browser and I get “this page can’t be displayed” .

The way I have been running my test programs so far is to use the notepad plus program and then save it and use the Run pulldown menu and click launch in IE. When the program is index.html it prints the message, when saved as index.php the program does not run, it just shows the text and does not process any php program statements.

As I say I have followed the instructions in the book Build your own database driven website using php and MySQL and I am working on doing the MySQL examples in chapter 2 and so far that works ok.

I don’t know what to do about running .php files, by the way I am running windows 8 64 bits if that matters.

thanks

An HTTP 403 is a Forbidden

Can you check the folder and file permissions to make sure they’re “world” readable?

Now since changing the index file a download box appears and asks me were I want to save the php files so I am stuck at the moment.

I don’t understand why there is not a step by step way of installing and running wamp, making test programs and running them, I will just keep trying different things.

I decided to uninstall wamp and start over, the problem now is that the C+ program that needs to be installed before wamp can be doesn’t seem to be acknowledged by the download manager as it keeps saying I need to install the c+ program which I have already done more than once.

What could be the problem?

Do you mean the Microsoft Visual C++ package? Be sure to reboot your machine after that is installed, it occasionally has some cleanup to do after a reboot that makes it noticed.

Ok I am back after being away for a while.

I removed all wamp server components to start again and now I can not install it as it keeps saying I need to install the C++ package program which I do and then it keeps repeating the same screen each time. Can anyone suggest what is going wrong.

Try creating the test script in the “www” folder

I’m stumped. I don’t have a Windows 8 PC to test with, so it is hard for me to make a recommendation. Maybe try XAMPP instead of WAMP (http://www.apachefriends.org/download.html)

Thank you for replying, cpradio and SpacePheonix I ended up downloading the Wamp software from another site cnet and it installs ok, I am now following the setting up the password and doing some test programs as outlined in the book “Build your own Database Driven Web Site using php and mysql” so I will see how it goes. Also soon I want to take the course here on Sitepoint taught by the auther of the book so I hope that will guide me better.

Francis