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

    Join Date
    Nov 2000
    Rep Power
    How does the httpd.conf need to be setup to delete files from a cgi. The directory is not part of the apache document root. It's part of another application in /usr/local.

    I have a monitoring program that creates files when there is a problem with a server. Once the issues has been resolved I want the user to delete the file from a webpage.
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    This is UNIX permission issue and has nothing to do with Apache at all. Assuming Apache is running as "nobody", then that directory and those files need to give "nobody" WRITE access. Chmod that directory 757 (drwxr-xrwx) and files 646 (-rw-r--rw-) should do it. To automated the task, your program/script needs to be able to set umask. A umask of 020 will set new files permission to 646.

IMN logo majestic logo threadwatch logo seochat tools logo