Results 1 to 4 of 4

Thread: "forbidden you don't have permission to access"

  1. #1
    Join Date
    Jan 2004
    Posts
    2,011
    Rep Power
    0

    Default "forbidden you don't have permission to access"

    i'm a beginner in php, i got appserve which installed and configured apache, mysql and php on my machine. i've written some simple php enabled document but i cant even test if they work. when i try to view it with my browser i get the following message

    Forbidden
    You don't have permission to access /C:/test.php on this server.


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

    Apache/1.3.27 Server at localhost Port 80


    i have no clue why this happens

  2. #2
    Join Date
    Apr 2003
    Posts
    1,389
    Rep Power
    0

    Default Re:"forbidden you don't have permission to access"

    hmmm....

    you're addy should look more like http://localhost/test.php

    you're test.php needs to be in the webserver's folder

  3. #3
    Join Date
    Jul 2002
    Posts
    5,446
    Rep Power
    10

    Default Re:"forbidden you don't have permission to access"

    dk, what is the url/address that you're entering to test your scripts? If you're not entering it as http://loalhost/xyz.php then you need to try that like GodKid suggested.

  4. #4
    Join Date
    May 2003
    Posts
    137
    Rep Power
    0

    Default Re:"forbidden you don't have permission to access"

    I think your script should be in the folder [I think in some cases it is called the document root] that the webserver will read from. In Mandrake I know the folder is /var/www/html so that when you type http://localhost/myfile.php it can be found.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •