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/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
