Try to run simple PHP file and get "Forbidden" access message
Posted by: gpiosenka (---.ph.ph.cox.net)
Date: May 22, 2015 07:31PM

I am running on Windows 8, 64 bit version
Apache version could not find version number but probably the latest version since I just downloaded the latest version of WAMP
PHP Version 5.5.12 MySQL Version 5.0.11 WampServer Icon is green
I used a good tutorial on Youtube to set things up. Per the tutorial I created a simple php file called hello.php and placed the file in the C:/wamp/www folder
using goggle chrome I put in the url localhost/c:/wamp/hello.php
It get the follow result:
Forbidden
You don't have permission to access /c:/wamp/www/hello.php on this server.
________________________________________
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80


I then created a copy of the hello php file and stored it in a directory C:/phpfiles.
I then typed in the url [localhost] in google chrome
And get a similar message
Forbidden
You don't have permission to access /c:/phpfiles/hello.php on this server.
________________________________________
Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80

I tried the same things above using Internet Explorer and got the same result
I am a novice at this so excuse my ignorance but what am I doing wrong? Any assistance would be most appreciated.

Options: ReplyQuote
Re: Try to run simple PHP file and get "Forbidden" access message
Posted by: Otomatic (Moderator)
Date: May 23, 2015 09:59AM

Hi,

>... used a good tutorial on Youtube to set things up.
Not that good! If you'd reached a "good" result.
Your file wamp/www/test/hello.php (Do not put files directly in wamp/www/ (the content of which should not change), but create a folder where you will put your files.
<?php
  echo "Hello\n";
?>
Then, in the address bar of Chrome: (http://localhost/test/hello.php) (Without parentheses)
Support for the use of PHP will stop there. This forum is not intended to teach you to use PHP.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Try to run simple PHP file and get "Forbidden" access message
Posted by: gpiosenka (---.ph.ph.cox.net)
Date: May 23, 2015 09:46PM

thank you for your response which worked! Not asking to be taught PHP just wanted to get wamp working so I can learn php
Thank You

Options: ReplyQuote


Sorry, only registered users may post in this forum.