Unable to execute Perl script through httpd in Red Hat Enterprise Linux (RHEL) 8

Solution Verified - Updated -

Issue

  • Seeing the following error message in the Apache logs when attempting to execute a perl script via Apache
Can't locate CGI/Apache.pm in @INC (you may need to install the CGI::Apache module)

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 8
  • Apache Web Server HTTPD
    • 2.4.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