Is there any way to run user uploaded pages securely on PHP?
<p>I would like to upload files (php sites/applications) to given directory and run them there, within my web server. However, already a simple shell_exec call can cause serious consequences.</p>

<p>All the things I can think of are setting the pages directory outside the public_html and setting the permissions automatically so that the user running that page doesn't have any rights outside it.</p>

<p>Other mediocre solution I've found so far is <a href="http://fi2.php.net/runkit" rel="nofollow" title="runkit_sandbox">runkit_sandbox</a>, which looks quite unsecure solution, specially as it seems to be abandoned.</p>

<p>Is there really no way? Not even with full shell access (shell scripts)?</p>
