There are two Apache 1.3 modules that I have written to simplify work with huge amount of virtual hosts and ~user with php. All modules redistributed under Apache 2.0 License.
Module for vhosts now is beta quality, so it is not intended to use in production use.
[an error occurred while processing the directive]