#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    5
    Rep Power
    0
    Hi,
    I've made a Linux server with Suse 6.4. The server runs apache, php and MySQL.

    Everything works fine except that if I upload files to my web directory with ftp I cannot access them. Apache gives the error that I haven't got the permission to read them. If I check the files in the webdir with ls -l it gives that only the root can read the uploaded files.

    My question is: how can I upload files with the correct permissions (so everyone can read them)?

    Greetings,

    Wytse
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    81
    Rep Power
    15
    You need to chmod your files. Log in to your shell, go to your web docs, and type:
    chmod 0644 <filename>
    Where <filename> is the name of a specific file or a wildcard expression denoting several (e.g. * for all, *.html for all html, etc. etc.)
  4. #3
  5. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    Not that. He somehow messup the umask.

    Check out -> http://www.devshed.com/Talk/Forums/F...ML/000168.html

IMN logo majestic logo threadwatch logo seochat tools logo