1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP and APACHE permission problem

Discussion in 'PHP' started by vijaykoul, Sep 2, 2005.

  1. #1
    Hi frnds,

    I have a problem displaying the file list in the explorer. What i want is that if i write

    http://127.0.0.1/mydir

    all the files in mydir shud be displayed as a list.

    what i get if i write the same is as follows

    Forbidden

    You don't have permission to access /mydir/ on this server.
    --------------------------------------------------------------------------------
    Apache/2.0.54 (Win32) PHP/5.0.4 Server at 127.0.0.1 Port 80

    what shud i do to get the file list.

    thanks in advance

    Vijay
     
    vijaykoul, Sep 2, 2005 IP
  2. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #2
    Damn, that's like a mechanic asking how to change the oil of a VW :D

    Does the folder have the correct permission to let you see it?
     
    fryman, Sep 2, 2005 IP
    Willy likes this.
  3. vijaykoul

    vijaykoul Guest

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Damn...ths is not like a mechanic asking how to change the oil of a ...
    the permissions are set and are correct
    still does not work
     
    vijaykoul, Sep 2, 2005 IP
  4. fryman

    fryman Kiss my rep

    Messages:
    9,604
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    370
    #4
    go to google and tpye this at the search box

    Maybe you can find your answer there... for example I found this page
    http://www.freebsddiary.org/forbidden.php

    Maybe that will help
     
    fryman, Sep 2, 2005 IP
  5. nevetS

    nevetS Evolving Dragon

    Messages:
    2,544
    Likes Received:
    211
    Best Answers:
    0
    Trophy Points:
    135
    #5
    mod_index handles showing a directory listing if I'm not mistaken. Make sure you have that installed (./httpd -l)
    There are also some settings in httpd.conf to enable/disable the displaying of indexes, which if disabled would override directory permissions.
     
    nevetS, Sep 2, 2005 IP
  6. Gmorkster

    Gmorkster Peon

    Messages:
    202
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Don't obfuscate our PHP Programmer with ./ 's, that's Apache on a Win box! :D
     
    Gmorkster, Sep 3, 2005 IP
    nevetS likes this.
  7. noppid

    noppid gunnin' for the quota

    Messages:
    4,246
    Likes Received:
    232
    Best Answers:
    0
    Trophy Points:
    135
    #7
    Accessing the folder via http is not ever going to work I believe. I would think without seeing your approach, it would be necessary for the folder to be local and accessed with a file system path like, /home/folder/folder-to-test/ and a file system directory function call.
     
    noppid, Sep 4, 2005 IP
  8. vijay210

    vijay210 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hello friends
    i want to know that when two or more computer are connected in particular lan is there any option to view the data of different computers from particular computer.
    please send me the steps.
    it is urgent
     
    vijay210, Sep 3, 2007 IP
  9. Village_Idiot

    Village_Idiot Peon

    Messages:
    162
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Read the dates on the thread....
     
    Village_Idiot, Sep 3, 2007 IP
  10. denniswimer

    denniswimer Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    NevetS:
    Could you be specific as to which options within httpd.conf control access to directories? I have a similar issue with access/permissions.
     
    denniswimer, Nov 14, 2007 IP