November 13th, 2000, 03:34 PM
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.
November 13th, 2000, 06:30 PM
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.