Open billionairiam opened 6 months ago
strace log:
openat(AT_FDCWD, "/proc/self/fd/2", O_WRONLY|O_CREAT|O_APPEND|O_CLOEXEC, 0666) = -1 EACCES (Permission denied) write(2, "(13)Permission denied: AH00091: "..., 86(13)Permission denied: AH00091: httpd: could not open error log file /proc/self/fd/2. ) = 86
# ls -l /dev/console
crw------- 1 nobody nogroup 5, 1 Feb 29 02:22 console
From the strace log, the process doesn't have permission to open /proc/self/fd/2 which is linked to /dev/console. So I think we need to find a solution to change the user/group of /dev/console.
Recommend to redirect 0,1,2 to /dev/null
when PTY is NOT supported. This should solve the problem as /dev/null
is accessible to world.
Below is the log info: