Eric_Ryk Posted June 22, 2006 Share Posted June 22, 2006 How do I set it so that there is a php.ini file for each virtual host? Sort of like the settings from the local one override the main one, but everything else from the main one is used.I know that you can use .htaccess but I'd prefer to do it with a php.ini. Link to comment https://forums.phpfreaks.com/topic/12609-phpini-per-virtual-host/ Share on other sites More sharing options...
dptr1988 Posted June 24, 2006 Share Posted June 24, 2006 I don't know of a php.ini for each virtual host but you could try this: [a href=\"http://www.phpfreaks.com/phpmanual/page/configuration.changes.html#configuration.changes.apache\" target=\"_blank\"]http://www.phpfreaks.com/phpmanual/page/co....changes.apache[/a]This is what I use for different PHP settings per user Link to comment https://forums.phpfreaks.com/topic/12609-phpini-per-virtual-host/#findComment-48960 Share on other sites More sharing options...
Eric_Ryk Posted June 25, 2006 Author Share Posted June 25, 2006 Using .htaccess. I'd prefer not to do it that way, but I suppose if nobody knows how to do this then I'll have no choice. Link to comment https://forums.phpfreaks.com/topic/12609-phpini-per-virtual-host/#findComment-49387 Share on other sites More sharing options...
dptr1988 Posted June 25, 2006 Share Posted June 25, 2006 Do you have access to the httpd.conf? If you do you can use the "php_admin_value name value" in your httpd.conf. Link to comment https://forums.phpfreaks.com/topic/12609-phpini-per-virtual-host/#findComment-49445 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.