SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast tehtarik's Avatar
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to 'chmod' files in localhost

    Hi People,

    I've got PHP, MySQL and Apache running in my Win98 comp.
    I'd like to try out some scripts in the localhost.

    How do I 'chmod' the folders/files in my localhost?

    Am I suppose to use FTP???
    IF,yes, how do I set the login ID and password?

    Thanks


    Nic

  2. #2
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You do not have to change file permissions on windows because all files/folders are writable (777 on Unix)

    Sean

  3. #3
    SitePoint Addict
    Join Date
    Jul 2000
    Location
    North Central AR
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just remember though, if you plan to use these scripts on a host/webserver, permissions will be a big deal. One of the big differences(problems) between Win and say unix/apache. Just something to remember...

    ronnie
    The largest selection of PLR Articles on the Planet!
    Many Private Label Rights Products.

  4. #4
    SitePoint Enthusiast tehtarik's Avatar
    Join Date
    Jun 2001
    Location
    Malaysia
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


    Thanks a lot...
    I'm using it just to test run some scripts,
    so security is not a threat.

    Once again, thanks a lot


  5. #5
    SitePoint Member
    Join Date
    Jun 2001
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by ronnie
    Just remember though, if you plan to use these scripts on a host/webserver, permissions will be a big deal. One of the big differences(problems) between Win and say unix/apache. Just something to remember...

    ronnie
    are there any good resources online about this topic? any guidelines about what should and shouldn't be done security-wise with permissions?

    thanks much,
    john

  6. #6
    SitePoint Addict
    Join Date
    Jul 2000
    Location
    North Central AR
    Posts
    231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It seems my post was taken a different way. While permissions can be a security issue. I was talking more about the difference in permissions on windows v.s. say unix.

    What I meant, when using php locally in windows, there is no permissions. Meaning that you don't have to worry about files being writable. But now you get on your webserver under apache/unix and then your script that runs as "nobody" usually, can not write to files you uploaded by ftp, because it does not own them. I just went through this and it can be a pain.

    My point was, while these scripts test great on windows. Or you make new scripts and they work wonderfull on windows, you put them on a host and you've got all kinds of new problems. If your scripts have to write to files, you will now have an un expected problem. Unless you now that ahead of time. Just one of the differences on how scripts work locally under windows, v.s. the real work enviorment.

    Yes, security is a issue, it comes down to, you leave files open to be writable by anyone, any one could change your files for the worst.

    ronnie
    The largest selection of PLR Articles on the Planet!
    Many Private Label Rights Products.


Bookmarks

Posting Permissions

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