Forum Moderators: phranque

Message Too Old, No Replies

apache + mod vhs [directives from database (mysql)?]

         

nichu

1:33 pm on Feb 7, 2008 (gmt 0)

10+ Year Member



Hello
I'm using apache (2.2.6) with mod_vhs (1.0.32) (for getting vhosts configuration from mysql) on gentoo. And I want apache to work as a specific vhost user - not as apache.
I don't want to use suphp (due to performance issues) or suexec (I can't use it because it doesn't work with mod_vhs).

So I chose mpm_itk (I know it's experimental) - it works nice with mod_vhs and apache works as a user which I choose in AssignUserID.

But I would like to take this parameter from mysql as well.
I tried to modify mod_vhs but I'm not good C programmer and apache api scaries me a little so - so far - I failed...

Do You know any ways to assign this parameter from database? Maybe in some kind of way using libhome as mod_vhs? any other idea?

I'd really appreciate any help

Best regards
nichu