{"id":537,"date":"2010-02-23T15:12:20","date_gmt":"2010-02-23T19:12:20","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=537"},"modified":"2013-03-20T08:42:24","modified_gmt":"2013-03-20T12:42:24","slug":"perl-script-cant-do-setuid-cannot-exec-sperl","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/perl-script-cant-do-setuid-cannot-exec-sperl","title":{"rendered":"Perl Script: Can&#8217;t do setuid (cannot exec sperl)"},"content":{"rendered":"<p>Your perl script sometimes work from the command line but shows &#8220;Internal Server Error&#8221; on accessing the script via the browser. The Apache error logs shows the error message as<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\">\"Can't do setuid (cannot exec sperl)\".<\/span><\/pre>\n<\/blockquote>\n<p>The the reason for the setuid error on the\u00a0 perl script is the script have the setuid bit set and won&#8217;t work from the browser since they are running under the user apache. To make such perl scripts work, you need to <strong>install the perl-suidperl package<\/strong>.<\/p>\n<p>To install the package, just execute the command<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"># yum install perl-suidperl<\/span><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Your perl script sometimes work from the command line but shows &#8220;Internal Server Error&#8221; on accessing the script via the browser. The Apache error logs shows the error message as<\/p>\n<p>&#8220;Can&#8217;t do setuid (cannot exec sperl)&#8221;.<\/p>\n<p>The the reason for the setuid error on the\u00a0 perl script is the script have the setuid bit set and won&#8217;t work from the browser since they are running under the user apache. To make such perl scripts work, you need to install the perl-suidperl package.<br \/>\nTo install the package, just execute the command<\/p>\n<p># yum [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[713,714,716,715,718,717],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/537"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=537"}],"version-history":[{"count":5,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/537\/revisions"}],"predecessor-version":[{"id":2182,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/537\/revisions\/2182"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}