-2

I coulnd't find anything on the internet how to create seperate php jails so I can create a "webspace" directory for someone in /var/www/html/ and their scripts cannot leave their webspace directory so that that folder is the root for php scripts in it and I can securely upload my scripts in another directory and its impossible for the person to access files outside their directory. Is there a solution how to create seperate jails or do i have to use UserDir ?

shobor
  • 3
  • 3

1 Answers1

0

You could make use of open_basedir setting

<Directory /var/www/html>
  php_admin_value open_basedir "/var/www/html"
</Directory>

See this page for more info: http://php.net/manual/en/ini.core.php#ini.open-basedir

Dale
  • 10,384
  • 21
  • 34