#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0

    Godaddy not working..help?


    For anyone that has used godaddy hosting before I need your help. I am trying to run this simple script,
    PHP Code:
    <?php mkdir("/path/"0700); ?>
    . I keep coming up with the error,
    Code:
    Warning: mkdir() [function.mkdir]: Permission denied in D:\Hosting\4984734\html\mkdirect.php on line 2
    ...Does anyone know why this isnt working or what I have to allow to make this not restricted???
  2. #2
  3. No Profile Picture
    CEO StealthyHosting
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Location
    Tacoma, WA
    Posts
    339
    Rep Power
    96
    does mkdirect.php have write permission (chmod 777)?

    Also if you are using php you should really avoid godaddy hosting at all costs. You will run into countless issues with mail(), permissions, and functions.
    Brian Kearney, CEO Stealthy Hosting Inc
    Shared/Reseller/Dedicated Hosting Http://StealthyHosting.com
    Please Contact us for VPS/Colo pricing.
    Email: sales@stealthyhosting.com Phone: 253-880-1233
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0
    I dont know. I just tryed using 0777 instead of 0700 and both came up with
    Code:
    Warning: mkdir() [function.mkdir]: Permission denied in D:\Hosting\4984734\html\mkdirect.php on line 1
    Do you know how I would allow it?

    Also there is nothing I can do about the server type because it is already bought and everything...
  6. #4
  7. No Profile Picture
    CEO StealthyHosting
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Location
    Tacoma, WA
    Posts
    339
    Rep Power
    96
    Your script file mkdirect.php, it needs to have write permission to create the folder.
    Brian Kearney, CEO Stealthy Hosting Inc
    Shared/Reseller/Dedicated Hosting Http://StealthyHosting.com
    Please Contact us for VPS/Colo pricing.
    Email: sales@stealthyhosting.com Phone: 253-880-1233
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0
    Thats the thing though, all folders have read and write permission...its so confusing
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0
    oarlus.eu/screenshot.png

    like this right? It was already done and yet there is still a problem
  12. #7
  13. No Profile Picture
    CEO StealthyHosting
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Location
    Tacoma, WA
    Posts
    339
    Rep Power
    96
    Looks like only the folder has r/w? Does the php file you are using have write permission?
    Brian Kearney, CEO Stealthy Hosting Inc
    Shared/Reseller/Dedicated Hosting Http://StealthyHosting.com
    Please Contact us for VPS/Colo pricing.
    Email: sales@stealthyhosting.com Phone: 253-880-1233
  14. #8
  15. No Profile Picture
    CEO StealthyHosting
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Location
    Tacoma, WA
    Posts
    339
    Rep Power
    96
    Actually from that menus it doesn't even look like you can set file permissions in it. Try going into FTP and right clicking the php file and settings it's permissions.
    Brian Kearney, CEO Stealthy Hosting Inc
    Shared/Reseller/Dedicated Hosting Http://StealthyHosting.com
    Please Contact us for VPS/Colo pricing.
    Email: sales@stealthyhosting.com Phone: 253-880-1233
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0
    Hmm?

    The only thing I can do in ftp is manage users. Also, I use windows explorer to ftp to the server...Could you tell me what exactly I need to do?
  18. #10
  19. No Profile Picture
    CEO StealthyHosting
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Location
    Tacoma, WA
    Posts
    339
    Rep Power
    96
    Right click the php file and should be able to edit it's permissions
    Brian Kearney, CEO Stealthy Hosting Inc
    Shared/Reseller/Dedicated Hosting Http://StealthyHosting.com
    Please Contact us for VPS/Colo pricing.
    Email: sales@stealthyhosting.com Phone: 253-880-1233
  20. #11
  21. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2010
    Posts
    6
    Rep Power
    0
    wow. I though godaddy was great but really??

    "This server does not support changing file permissions."
  22. #12
  23. No Profile Picture
    CEO StealthyHosting
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Location
    Tacoma, WA
    Posts
    339
    Rep Power
    96
    Might try http://help.godaddy.com/article/2323
    Brian Kearney, CEO Stealthy Hosting Inc
    Shared/Reseller/Dedicated Hosting Http://StealthyHosting.com
    Please Contact us for VPS/Colo pricing.
    Email: sales@stealthyhosting.com Phone: 253-880-1233
  24. #13
  25. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    1
    Rep Power
    0

    One more thing


    Your site may not have permissions (mine does on godaddy) if you set up your account to use a Windows host. Only *nix bases support this type of permission system. Windows has one, but it's different and usually doesn't effect read/write of programs already installed.

    My suggestions:

    1. Try using mkdir in recursive mode.

    2. Contact GoDaddy support and ask if you have a Windows or Linux shared hosting account. If it's Windows, ask to change to Linux.*

    *About: Linux supports PHP and Apache better, and is cheaper. It will run pretty much everything needed for a website. It actually powers most the web, so if you have a Windows host don't worry about changing, you're better off with Linux on this one.

    Recursive Mode:
    Use the reference of the script to locate where you want to go.
    Let's say your script is in /path/to/script.php
    You want to make a directory/file /path/to/newfile
    to do this in PHP you would type
    mkdir("../newfile",0777,true);

    -The true at the end of the file will tell mkdir to be recursive, or to refer to itself as the starting point. The two dots mean to go up a directory level a single dot means to stay in the folder the script is located in.

    I know this works because I have my site, pessetto.com, hosted with goDaddy too.

IMN logo majestic logo threadwatch logo seochat tools logo