Warning: mkdir() [function.mkdir]: Permission denied

Discussion in 'PHP' started by jbashir, Apr 11, 2008.

  1. #1
    Hi

    I have a Windows server and I want to create folders, but I cannot do so and get this warning:

    Warning: mkdir() [function.mkdir]: Permission denied in .... (path)

    Please tell me what is the problem and how to solve it?


    Joseph Bashir
     
    jbashir, Apr 11, 2008 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    You need to give the correct permissions to the php user for the directory that you are trying to edit in. Generally you would right click on the folder that you need write access to. Go to properties, and Security. You then need to give the account that php (apache or iis) runs under full permissions on that folder. It could be a local user account, could be system, just depends on how your server is setup. You can also give 'users' full permission but this is a security hole so be careful.
     
    jestep, Apr 11, 2008 IP