title: "/usr/bin/" not in PATH of Apache cgi-bin system() call binaries
body: <p>After we recently had our server upgraded to CentOS Linux release 7.9.2009 and running Apache/2.4.6, I noticed that some of our custom cgi-bin binaries were no longer working. The log files had entries like below which showed that system() calls to &quot;rm&quot; and &quot;sort&quot; were not found.</p>
  <p>AH01215: sh: rm: command not found, referer: ...
  AH01215: sh: sort: command not found, referer ...</p>
  <p>I temporarily resolved the issue by explicitly calling &quot;/usr/bin/rm&quot; and &quot;/usr/bin/sort&quot; in our cgi-bin binaries.  However, this is not ideal going forward as I'm going to have to manually patch system() calls in all future releases of a number of tools.  Given that this hasn't been an issue in the past or on other linux installs, there must be some setting that species the default PATH of binaries executed via system() calls of cgi-bin C/C++ binaries.  I would love any hints on where I should be looking to attempt to resolve this.  Thank you!</p>