Jump to content

Archived

This topic is now archived and is closed to further replies.

Eric_Ryk

php.ini per virtual host

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Do you have access to the httpd.conf? If you do you can use the "php_admin_value name value" in your httpd.conf.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.