Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

It doesn't let me run anything outside the public_html directory. So I want to disable it. Please help

share|improve this question

migrated from askubuntu.com Apr 22 '11 at 14:37

This question came from our site for Ubuntu users and developers.

1 Answer 1

Virtualmin does not prevent you from running things outside of the suexec docroot. It is one of many options for running PHP applications.

Select the virtual server where you'd like to run applications outside of the suexec docroot, and click Server Configuration->Website Options.

There you can choose whether to run scripts as the server owner (which enables or disables suexec), among other things.

If you want that to be the default for all virtual servers created in the future, you can edit your Server Templates under Apache website. But I would recommend you only do this for the one virtual server that needs to be able to run stuff outside of /home.

And, are you sure you don't want to just install your applications into /home? It allows them to be backed up as part of the normal Virtualmin backup process, in addition to the security benefits of suexec.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.
{"cc_re__cc_re__cc_by_sa_3_0": ["                  <li><a href=\"//area51.stackexchange.com\" title=\"proposing new sites in the Stack Exchange network\">Area 51</a></li>\r\n                        <li><a href=\"//careers.stackoverflow.com\">Stack Overflow Careers</a></li>\r\n                    \r\n                </ol>\r\n            </td>\r\n    </tr>\r\n</table>\r\n                </div>\r\n            </div>\r\n\r\n            <div id=\"copyright\">\r\n                site design / logo &#169; 2015 stack exchange inc; user contributions licensed under <a href=\"http://creativecommons.org/licenses/by-sa/3.0/\" rel=\"license\">cc by-sa 3.0</a> \r\n                with <a href=\"http://blog.stackoverflow.com/2009/06/attribution-required/\" rel=\"license\">attribution required</a>\r\n            </div>\r\n            <div id=\"svnrev\">\r\n                rev 2015.3.30.2412\r\n            </div>\r\n            \r\n        </div>\r\n    </div>\r\n    <noscript>\r\n        <div id=\"noscript-warning\">Server Fault works best with JavaScript enabled<img src=\"http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif\" alt=\"\" class=\"dno\"></div>\r\n    </noscr"], "copyright__copyright__copyright": ["your Server Templates under Apache website. But I would recommend you only do this for the one virtual server that needs to be able to run stuff outside of /home.\n\nAnd, are you sure you don't want to just install your applications into /home? It allows them to be backed up as part of the normal Virtualmin backup process, in addition to the security benefits of suexec.\n\nshare|improve this answer\n\nYour Answer\n\n\u00a0\ndiscard\n\nBy posting your answer, you agree to the privacy policy and terms of service."]}