How to Change the Process Owner of the Apache httpd in RHEL?

Solution Verified - Updated -

Issue

  • How to change the Apache httpd user in RHEL?
  • How to change the process owner of the Apache httpd user in RHEL?
  • How to run Apache httpd at boot time as a non-root user?
  • How to change Apache httpd's parent process to a non-root user?
  • Facing below errors in logs:

    $ /usr/sbin/httpd -k start
    (13)Permission denied: AH00058: Error retrieving pid file /run/httpd/httpd.pid
    AH00059: Remove it before continuing if it is corrupted.
    

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Apache Web Server (HTTPD)

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