mod_myvhost is an Apache module for dynamically configured name-based mass virtual hosting with PHP. Virtual host configurations and PHP settings are stored in a MySQL database. There is no need to have every vhost in apache's configuration file, or to restart apache after a configuration change. It is able to change PHP settings dynamically for any vhost. By default, it sets open_basedir as the vhost's rootdir, but you can change almost any parameter that exists in php.ini. For example, you can turn on safe_mode or register_globals for a particular vhost.