-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
when running a container which using the apache server, there are two failures happened during the apache startup:
- port issue
(13)Permission denied: AH00072: make_sock: could not bind to address [::]:80
(13)Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:80 - log issue
(13)Permission denied: AH00091: apache2: could not open error log file /var/log/apache2/error.log.
Basically it's because of the apache needs to be running as the root user, but it's running as 1001 user actually.
I am trying to avoid using the root user or fix the privilege right in openshift, so the port issue is fixed by using 8080 port, but I don't have any idea about the second log issue.
also in general, what's the solution to handle this kind of root right issue in openshift ? especially that some service such as apache needs the root right.
Thanks.
answerquest