Error Spawning CGI Child With No such file or directory in Apache HTTPD

Solution Verified - Updated -

Issue

  • One test.pl I get Internal Server Error with the following log:

    [cgid:error] [pid 11111:tid 111111111111111] [client 111.111.111.111:11111] AH01241: error spawning CGI child: exec of '/var/www/cgi-bin/test.pl' failed (No such file or directory): /var/www/cgi-bin/test.pl
    

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Software Collections (RHSCL)
  • Red Hat JBoss Core Services (JBCS)
  • Apache Web Server (HTTPD)
    • mod_cgid

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