Jump to content


Photo

php.ini per virtual host


  • Please log in to reply
3 replies to this topic

#1 Eric_Ryk

Eric_Ryk
  • Members
  • PipPipPip
  • Advanced Member
  • 104 posts

Posted 22 June 2006 - 03:08 AM

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.

#2 dptr1988

dptr1988
  • Members
  • PipPipPip
  • Advanced Member
  • 372 posts

Posted 24 June 2006 - 01:17 AM

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
Need more help with your project? One of the thousands of programmers, web designers or artists at <a href="http://www.rentacode...d_6764522">Rent A Coder</a> would be happy to help.

Disclaimer: Free advice is usually worth what you paid for it. ( or at least when it's coming from me! )

#3 Eric_Ryk

Eric_Ryk
  • Members
  • PipPipPip
  • Advanced Member
  • 104 posts

Posted 25 June 2006 - 03:37 PM

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.

#4 dptr1988

dptr1988
  • Members
  • PipPipPip
  • Advanced Member
  • 372 posts

Posted 25 June 2006 - 08:19 PM

Do you have access to the httpd.conf? If you do you can use the "php_admin_value name value" in your httpd.conf.
Need more help with your project? One of the thousands of programmers, web designers or artists at <a href="http://www.rentacode...d_6764522">Rent A Coder</a> would be happy to help.

Disclaimer: Free advice is usually worth what you paid for it. ( or at least when it's coming from me! )




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users