seLinux won’t exec my .pl

Written by James McDonald

July 12, 2017

This error in httpd error_log

[Wed Jul 12 21:39:57.069313 2017] [cgi:error] [pid 16811] [client] AH01215: (13)Permission denied: exec of ‘/home/rupert/Sites/client1-www/cgi-bin/’ failed:/home/rupert/Sites/client1-www/cgi-bin/
[Wed Jul 12 21:39:57.070405 2017] [cgi:error] [pid 16811] [client] End of script output before headers:

This fix

sudo semanage fcontext -a -t httpd_sys_script_exec_t “/home/rupert/Sites/client1-www/cgi-bin(/.*)?”

sudo restorecon -Rv /home/rupert/Sites/client1-www/cgi-bin






Submit a Comment

Your email address will not be published.

You May Also Like…

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...