{"id":650,"date":"2013-06-12T18:31:08","date_gmt":"2013-06-12T18:31:08","guid":{"rendered":"http:\/\/scunster.co.uk\/?p=650"},"modified":"2013-11-20T12:06:21","modified_gmt":"2013-11-20T12:06:21","slug":"virtualmin-suexec-command-on-your-system-is-configured-to-only-run-scripts-under-varwww","status":"publish","type":"post","link":"https:\/\/scunster.co.uk\/?p=650","title":{"rendered":"Virtualmin &#8211; Suexec command on your system is configured to only run scripts under \/var\/www"},"content":{"rendered":"<p>Solution to a common problem running virtualmin<\/p>\n<p>If you install Virtualmin manually on an existing Apache installation you may encounter a couple of suexec errors.<\/p>\n<p>The first one usually directs you to use suexec-custom instead if suexec. But doing so without further configuration, still gives you this error:<\/p>\n<p>Error<\/p>\n<p>Failed to save enabled features : The Suexec command on your system is configured to only run scripts under \/var\/www, but the Virtualmin base directory is \/home. CGI and PHP scripts run as domain owners will not be executed.<\/p>\n<p>To resolve this you should find your way to: etc\/apache2\/suexec\/ and edit the file www-data<\/p>\n<p>The file will look something like this:<\/p>\n<p><code>\/var\/www<br \/>\npublic_html\/cgi-bin<\/code><\/p>\n<p># The first two lines contain the suexec document root and the suexec userdir<\/p>\n<p># suffix. Both features can be disabled separately by prepending a # character.<\/p>\n<p># This config file is only used by the apache2-suexec-custom package.<\/p>\n<p>Change the path from<br \/>\n<code>\/var\/www<\/code><br \/>\nto<br \/>\n<code>\/home<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Solution to a common problem running virtualmin If you install Virtualmin manually on an existing Apache installation you may encounter a couple of suexec errors. The first one usually directs you to use suexec-custom instead if suexec. But doing so without further configuration, still gives you this error: Error Failed to save enabled features : [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,12],"tags":[],"class_list":["post-650","post","type-post","status-publish","format-standard","hentry","category-linux","category-webhosting"],"_links":{"self":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=650"}],"version-history":[{"count":3,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/650\/revisions"}],"predecessor-version":[{"id":892,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/650\/revisions\/892"}],"wp:attachment":[{"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/scunster.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}