{"id":114,"date":"2011-11-07T07:18:39","date_gmt":"2011-11-07T04:18:39","guid":{"rendered":"http:\/\/meekconsulting.com\/?p=114"},"modified":"2011-11-07T07:20:09","modified_gmt":"2011-11-07T04:20:09","slug":"plesk-perl-cgi-scripts-permissions","status":"publish","type":"post","link":"https:\/\/meekconsulting.com\/?p=114","title":{"rendered":"plesk perl \/ cgi scripts &#8212; permissions!!!"},"content":{"rendered":"<p>This is a good instruction i found for pemissions<\/p>\n<p>Directory permissions and ownership are important too.<\/p>\n<p>The \/var\/log\/httpd\/suexec_log\u00a0 is the place to look when regular error_log doesn\u2019t show anything\u2026<\/p>\n<p>\u00a0<\/p>\n<p>Firstly, make sure you upload the script into the cgi-bin in ASCII mode. This is a problem more oftern then you can imagine. chmod 755 the script. Check permissions are USERID:psacln (the directory should be USERID:psaserv). Of course check that the site has CGI support ticked. You can also verify the syntax of the script by running \u201cperl -c SCRIPTNAME.CGI\u201d and it should report syntax ok.<br \/>\nIf you\u2019re still having problems then check the logs. Check \/home\/httpd\/vhosts\/DOMAIN\/statistics\/logs\/error_log (some installs my use \/var\/www\/ as opposed to the plesk standard \/home\/httpd\/vhosts) and look for errors. This log file will usually show the error message on the screen. You may also need to check \/var\/log\/httpd\/error_log. If you still don\u2019t see the problem then check \/var\/log\/httpd\/suexec.log for any<\/p>\n<p>Finally, check the correct suexec version is being used. do an \u201cls -la \/usr\/sbin\/suexec\u201d and compare that to \/usr\/local\/psa\/suexec\/psa-suexec. If they are different then make a backup copy of \/usr\/sbin\/suexec to something like \/usr\/sbin\/suexec.orig. then either copy or make a symlink of \/usr\/local\/psa\/suexec\/psa-suexec into the \/usr\/sbin directory.<\/p>\n<p>Hopefully this has been helpful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a good instruction i found for pemissions Directory permissions and ownership are important too. The \/var\/log\/httpd\/suexec_log\u00a0 is the place to look when regular error_log doesn\u2019t show anything\u2026 \u00a0 Firstly, make sure you upload the script into the cgi-bin &hellip; <a href=\"https:\/\/meekconsulting.com\/?p=114\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/114"}],"collection":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":3,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meekconsulting.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}