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.

How to CHMOD a file/folder on my local PC?

Discussion in 'Site & Server Administration' started by TopDraw, Dec 5, 2006.

  1. #1
    Hello,

    Can someone tell me how to change the permission/CHMOD a file folder inside the Apache2Triad directory on my home PC? I know how to do it using an FTP client with an online server, but how to do it on my home PC?

    Thnks
     
    TopDraw, Dec 5, 2006 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    in your bash / shell
    for example to chmod all html/htm files to 644 ( rw - r - r ) you would do:

    1.
    change to directory you want to chmod the files, then
    2.
    chmod 644 *.htm*
     
    hans, Dec 5, 2006 IP
  3. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #3
    If you're on windows you can't ...
     
    krakjoe, Dec 5, 2006 IP
  4. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #4
    for your entire future:

    if ever you want to get precise answers you need to give precise questions first
    you no-where mentioned what OS you are on
    chmod is a Linux/Unix feature

    certain win OS may have an chmod equivalent

    since you still did NOT mention WHAT precise win OS version you use - I recommend you Google - if your questions precise in G search you find result to meet your needs
     
    hans, Dec 5, 2006 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    that's right, "attrib" however, apache never requires it, not even for world writable permissions, IIS does, but not apache.....
     
    krakjoe, Dec 5, 2006 IP
  6. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I use XAMPP from www.apachefriends.org, but either this or Apache2Triad the way I chmod on files is through Total Commander, a Windows-explorer like with 2 panels, which file menu allows to browse your PC files and change attributes: www.ghisler.com
     
    Pat Gael, Dec 5, 2006 IP
  7. TopDraw

    TopDraw Active Member

    Messages:
    314
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #7
    Thanks, I'm running Win XP and browser is Firefox 1.5.0.8 on my local PC. I've tried Xamp before, but I'm using Apache2Triad now.

    Total Commander is a shareware, would there be a freeware version available anywhere? What I dont understand is how come I use Filezilla to upload into my webhost and to chmod any file in the webhost is real easy, but on the local PC....still not sure how its done lol
     
    TopDraw, Dec 6, 2006 IP
  8. mich_alex

    mich_alex Well-Known Member

    Messages:
    511
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    108
    #8
    I can't do it with XAMPP too.
     
    mich_alex, Dec 6, 2006 IP
  9. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #9
    I sed already, it's not done, with apache and windows, theres VERY rarely a need to change permisssions on the folders / files under apaches webroot as apache runs as a system service, with system privileges, and so does php.

    What exactly is the error that's occuring that makes you thnk of chmodding as the answer ?
     
    krakjoe, Dec 6, 2006 IP
  10. TopDraw

    TopDraw Active Member

    Messages:
    314
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #10
    I'm trying to get a Wysiwyg hack of FCKEditor and also Editor Monkey to run in Wordpress on my local PC, their read me says to change the CHMOD permissions on certain folders... :)
     
    TopDraw, Dec 6, 2006 IP
  11. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Well, on localhost running windows, all files and folders have write permission by default. If some scripts want 444, 644 or such as "not writable", from the explorer, rt click on file and check "readonly"
     
    agnivo007, Dec 6, 2006 IP
  12. Pat Gael

    Pat Gael Banned

    Messages:
    1,331
    Likes Received:
    68
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Total Commader is shareware but fully functional, never expiring, the only difference with the registered version it that shareware display a nag screen to click on a given number.

    I have FileZilla installed but I never use it so I have no idea how to do it with FTP clients over Windows.

    However I have seen to stand-alone chmod utilities for Windows if you wanna give them a try:

    www.gefware.gefnet.com
    www.codelifter.com/chmod2index.html
     
    Pat Gael, Dec 6, 2006 IP
    TopDraw likes this.
  13. saadahmed007

    saadahmed007 Admínistratör

    Messages:
    5,272
    Likes Received:
    869
    Best Answers:
    0
    Trophy Points:
    380
    #13
    Unless you are using Unix/Linux on your local pc it is not possible....Mostly scripts work on windows without chmoding..
    Saad
     
    saadahmed007, Dec 7, 2006 IP
  14. TopDraw

    TopDraw Active Member

    Messages:
    314
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #14
    Thanks Saad, Agnivo, and Pat,

    Me thinks too...IMO youre probably right, all the files in Win are "read only" by default. But then again, this Chen Press FCKEditor wont work, the others do though..

    Thanks for the recommendations, I'll check them out. Green here.
     
    TopDraw, Dec 7, 2006 IP
  15. parag

    parag Banned

    Messages:
    62
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #15
    I know its a little late for an answer but still if it might help somebody!

    I am using WIN ME and XAMPP 1.5.4

    Run -> command -> parent dir ->
    type attrib "folder to chmod" -r

    worked fine for me!
     
    parag, Apr 27, 2007 IP