mkdir gives permission denied error...

Discussion in 'PHP' started by mahmood, Feb 16, 2007.

  1. #1
    I am trying to create a folder using mkdir on my computer but it doesn't create the folder and gives me the following warning:
    So I try to use chmod but it wouldn't work as well with the following:
    So what to I do now?
     
    mahmood, Feb 16, 2007 IP
  2. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #2
    What OS you are using?
     
    designcode, Feb 16, 2007 IP
  3. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #3
    do you have write permission to the folder that you are trying to create a sub-folder in?
     
    daboss, Feb 16, 2007 IP
  4. mahmood

    mahmood Guest

    Messages:
    1,228
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have windows XP pro and apparently I don't have write permission.

    How can I give it write permission? On servers I use ftp software but I never changed the permission on my own computer and don't know how.


    .
     
    mahmood, Feb 16, 2007 IP
  5. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #5
    right click folder, go to properties and uncheck readonly attribute thats it :)
     
    designcode, Feb 16, 2007 IP
  6. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Also: are you using Apache or IIS?

    If it's IIS, you may need to give the IIS user write permissions on the directory, too.
     
    TwistMyArm, Feb 16, 2007 IP
  7. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #7
    you may need your admin's help in this one - not everyone has full rights to the file system.
     
    daboss, Feb 16, 2007 IP
  8. mahmood

    mahmood Guest

    Messages:
    1,228
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Acutually I have IIS installed. How can I change the permission for IIS?
     
    mahmood, Feb 16, 2007 IP
  9. designcode

    designcode Well-Known Member

    Messages:
    738
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    118
    #9
    Oh IIS sucks, y don't you run php on apache, if you also run asp.net or asp you can make apache work on port 8080, I also used php with IIS, I was so problematic that I shifted to apache in two days and never installed IIS again.
     
    designcode, Feb 16, 2007 IP
  10. mahmood

    mahmood Guest

    Messages:
    1,228
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Phew...
    After checking and unchecking tens of chekcboxes on tens of dialogue boxes I managed to get it working.

    Your right designcode, I have to swich back to apache.
     
    mahmood, Feb 16, 2007 IP