PHPerKaigi 2019


Please answer this simple SPAM challenge: max(one, one)?
(Example: nine)

The Note You're Voting On

daniel dot eckl at gmx dot de
16 years ago
There is a better solution than starting every virtual host in a seperate instance, which is wasting ressources.

You can set open_basedir dynamically for every virtual host you have, so every PHP script on a virtual host is jailed to its document root.

  DocumentRoot /www-home/
  <Location />
    php_admin_value open_basedir     \ "/www-home/"

If you set safe_mode on, then the script can only use binaries in given directories (make a special dir only with the binaries your customers may use).

Now no user of a virtual host can read/write/modify the data of another user on your machine.


<< Back to user notes page

To Top