Oh, yeah!
I'll create a dedicated Information Sources for each virtual host, then
modify php-fpm config to work with a custom php.ini which I can put in to
the customer home directory so hi can change anything hi want there!

Great deal, thanks!

2010/2/23 Alvaro Lopez Ortega <[email protected]>

> On 23/02/2010, at 11:53, Juan J. Martínez wrote:
> > El mar, 23-02-2010 a las 11:43 +0100, Alvaro Lopez Ortega escribió:
> >> On 23/02/2010, at 11:26, Serg Smirnoff wrote:
> >>
> >>> - How can I set a custom PHP variables in the virtual hosts?
> >>>
> >>> For example, I need to set these one:
> >>>
> >>> php_value include_path "/tmp"
> >>> php_flag display_errors on
> >>> php_value error_reporting 2047
> >>> php_value track_errors true
> >>>
> >>> And I guess, it possible to do here -
> >>
> >> That would go in your php.ini configuration file. The one read by
> php-cgi (/etc/php5/cgi/php.ini on Debian/Ubuntu systems,
> /opt/local/etc/php5/php.ini on MacPorts, etc).
> >
> > The you may create a source for each vhost and serve each vhost with a
> > different configuration, ie:
> >
> > source!1!nick = php-vhost1
> > source!1!interpreter = /usr/local/bin/php-cgi
> > -c /usr/local/etc/php/php-vhost1.ini -b 127.0.0.1:2998
> > ...
> > source!2!nick = php-vhost2
> > source!2!interpreter = /usr/local/bin/php-cgi
> > -c /usr/local/etc/php/php-vhost2.ini -b 127.0.0.1:2998
>
> Small typo here. The second interpreter would have to listen to a different
> port:
>
> source!2!interpreter = /usr/local/bin/php-cgi -c
> /usr/local/etc/php/php-vhost2.ini -b 127.0.0.1:2999
>
> --
> Octality
> http://www.octality.com/
>
>


-- 
Serg Smirnov
email/xmpp: [email protected]

Joan Crawford<http://www.brainyquote.com/quotes/authors/j/joan_crawford.html>
- "I, Joan Crawford, I believe in the dollar. Everything I earn, I
spend."
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to