On 24.02.2011 21:53, Ronald Appelfelder wrote:
> While playing with php5-midgard2 (PHP_API: apache2handler) I tried to change
> the ShareDir config variable but midgard2 did not honor this (at connect
> time):
>
> midgard_connection::get_instance()->open("sampleConfig");
>
> The same was true by setting the php ini directive "midgard.configuration".
>
> With the current implemention of the php5-midgard2 schema initialization at
> php module load time there seems to be no way to have separate schemas per
> virtual host.That's the way it works now and there isn't clean solution for apache2handler case. There are 2 alternative approaches, though, which can solve the situation: 1) Currently, the recommended way for running Midgard applications is via AiP https://github.com/indeyets/appserver-in-php That is definitely the way to go, if your applications are based on MidgardMVC 2) You can use fastcgi to connect application to apache In both cases, you will be able to have separate php.ini files for your projects, projects will be running in different processes and you can even setup them to be run by different user-accounts. -- Alexey Zakhlestin, http://twitter.com/jimi_dini http://www.milkfarmsoft.com/ _______________________________________________ user mailing list [email protected] http://lists.midgard-project.org/mailman/listinfo/user
