|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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.
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Delete file w/ perl CGI |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|