Skip to content

How to deploy the apache server in openshift #6629

@thincal

Description

@thincal

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions