(13)Permission denied: AH000058: Error retrieving pid file /run/httpd/httpd.pid

Solution Verified - Updated -

Issue

Custom docker Apache image fails to run in OpenShift 3 with error:

(13)Permission denied: AH000058: Error retrieving pid file /run/httpd/httpd.pid

The same image works fine in a plain docker container runtime environment but fails in OpenShift.

Environment

  • OpenShift 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content