[root@localhost cgi-bin]# sudo grep AVC /var/log/audit/audit.log type=AVC msg=audit(1782208372.174:531): avc: denied { getattr } for pid=3714 comm="httpd" path="/home/my/public_html/test.cgi" dev="dm-2" ino=138 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_user_content_t:s0 tclass=file permissive=0 type=AVC msg=audit(1782208372.174:532): avc: denied { getattr } for pid=3714 comm="httpd" path="/home/my/public_html/test.cgi" dev="dm-2" ino=138 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_user_content_t:s0 tclass=file permissive=0 type=AVC msg=audit(1782208514.052:537): avc: denied { read } for pid=3716 comm="httpd" name="public_html" dev="dm-2" ino=137 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_user_content_t:s0 tclass=dir permissive=0 type=AVC msg=audit(1782208514.052:538): avc: denied { read } for pid=3716 comm="httpd" name="public_html" dev="dm-2" ino=137 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_user_content_t:s0 tclass=dir permissive=0 type=AVC msg=audit(1782208514.052:539): avc: denied { read } for pid=3716 comm="httpd" name="public_html" dev="dm-2" ino=137 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:httpd_user_content_t:s0 t^Cr permissive=0ntext=unconfined_u:object_r:httpd_sys_content_t:s0 tclass= [root@localhost cgi-bin]# sudo setenforce Permissive [root@localhost cgi-bin]# sudo tail /var/log/httpd/error_log [Mon Jun 29 14:26:23.633609 2026] [cgid:error] [pid 3493:tid 3582] [client 172.25.144.1:52651] End of script output before headers: check.cgi [Mon Jun 29 14:26:32.024973 2026] [cgid:error] [pid 3451:tid 3594] [client 172.25.144.1:52667] AH01215: stderr from /var/www/cgi-bin/joyful/check.cgi: Can't locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp module) (@INC entries checked: /usr/local/lib64/perl5/5.40 /usr/local/share/perl5/5.40 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /var/www/cgi-bin/joyful/check.cgi line 11. [Mon Jun 29 14:26:32.025139 2026] [cgid:error] [pid 3451:tid 3594] [client 172.25.144.1:52667] AH01215: stderr from /var/www/cgi-bin/joyful/check.cgi: BEGIN failed--compilation aborted at /var/www/cgi-bin/joyful/check.cgi line 11. [Mon Jun 29 14:26:32.025168 2026] [cgid:error] [pid 3451:tid 3594] [client 172.25.144.1:52667] End of script output before headers: check.cgi [Mon Jun 29 15:46:29.127342 2026] [cgid:error] [pid 3694:tid 3724] [client 172.25.144.1:63032] AH01215: stderr from /var/www/cgi-bin/joyful/check.cgi: Can't locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp module) (@INC entries checked: /usr/local/lib64/perl5/5.40 /usr/local/share/perl5/5.40 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /var/www/cgi-bin/joyful/check.cgi line 11. [Mon Jun 29 15:46:29.127471 2026] [cgid:error] [pid 3694:tid 3724] [client 172.25.144.1:63032] AH01215: stderr from /var/www/cgi-bin/joyful/check.cgi: BEGIN failed--compilation aborted at /var/www/cgi-bin/joyful/check.cgi line 11. [Mon Jun 29 15:46:29.127494 2026] [cgid:error] [pid 3694:tid 3724] [client 172.25.144.1:63032] End of script output before headers: check.cgi [Mon Jun 29 15:48:14.945397 2026] [cgid:error] [pid 3694:tid 3726] [client 172.25.144.1:63184] AH01215: stderr from /var/www/cgi-bin/joyful/check.cgi: Can't locate CGI/Carp.pm in @INC (you may need to install the CGI::Carp module) (@INC entries checked: /usr/local/lib64/perl5/5.40 /usr/local/share/perl5/5.40 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /var/www/cgi-bin/joyful/check.cgi line 11. [Mon Jun 29 15:48:14.945490 2026] [cgid:error] [pid 3694:tid 3726] [client 172.25.144.1:63184] AH01215: stderr from /var/www/cgi-bin/joyful/check.cgi: BEGIN failed--compilation aborted at /var/www/cgi-bin/joyful/check.cgi line 11. [Mon Jun 29 15:48:14.945691 2026] [cgid:error] [pid 3694:tid 3726] [client 172.25.144.1:63184] End of script output before headers: check.cgi [root@localhost cgi-bin]#