Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default mkdir need help

    Hello Everyone,

    I am using mkDir on my local machine with PHP and everythign works
    fine. When I upload the code to the production server which is unix I
    keep getting permission denied error. Now if I make the folder the
    php file is in 777 I can create directoies in that directory with out
    a problem but I cannot create a directory up on level. I really need
    to be able to create a directory anywhere in my web structure.

    What am I doing wrong? Everything works fine on windows but as soon
    as I move the exact same code to unix permission denied all day long.
    I have been stuck on this for 3 days now and really could use some
    help/

    Thanks.

    Kev

    Kev Guest

  2. Similar Questions and Discussions

    1. php mkdir touch time-date problem
      Dear all, I have a problem which I can not explain-understand. I hope someone can help me. I use php under WinXP. I want to copy a dir to...
    2. #25315 [Fbk->Bgs]: vulnerability in mkdir and other unix-commands!
      ID: 25315 Updated by: sniper@php.net Reported By: info at flashman dot ru -Status: Feedback +Status: ...
    3. #25315 [NEW]: vulnerability in mkdir and other unix-commands!
      From: info at flashman dot ru Operating system: Linux pr5 2.4.18-3 PHP version: 4.3.1 PHP Bug Type: Directory function...
    4. Help needed on mkdir
      >> On Tue, 29 Jul 2003 10:41:08 +0800, You don't need the quotes, you're not interpolating anything. Also the permissions are most easily...
    5. mkdir permission denied
      On 6 Jul 2003 08:12:29 -0700, skywalker2070@hotmail.com (sky2070) wrote: You may be the administrator of the system, but the web server won't be...
  3. #2

    Default Re: mkdir need help

    *** Kev wrote/escribió (Tue, 07 Sep 2004 00:11:31 -0700):
    > I am using mkDir on my local machine with PHP and everythign works
    > fine. When I upload the code to the production server which is unix I
    > keep getting permission denied error. Now if I make the folder the
    > php file is in 777 I can create directoies in that directory with out
    > a problem but I cannot create a directory up on level. I really need
    > to be able to create a directory anywhere in my web structure.
    >
    > What am I doing wrong? Everything works fine on windows but as soon
    > as I move the exact same code to unix permission denied all day long.
    > I have been stuck on this for 3 days now and really could use some
    > help/
    You already found the solution, didn't you? The Linux permission system is
    rather simple. Each file and folder has three groups of three bits that
    tell whether user/group/others can read/write/access (if directory) or
    read/write/execute (if file). You upload files with your own FTP account
    (let's say "john") so files so other users (such as "apache") cannot modify
    your files unless you change its permissions. If it works fine for you
    under Windows it's because your Windows file system doesn't put any
    restriction about who can modify stuff.

    --
    -- Álvaro G. Vicario - Burgos, Spain
    -- Thank you for not e-mailing me your questions
    --
    Alvaro G Vicario Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139