Click to See Complete Forum and Search --> : Load different extensions for different vhosts?


Flatron
03-30-2008, 11:29 AM
Hi!

I have an apache2+PHP5.2.3 instaled under ubuntu (general release from apt). I would like to use the Zend Debugger and the eAccelerator too, but it's recommended not to use them together. I would like to set up a virtual host in apache, and set the eAccelerator enabled and debugger disabled for the main site, and another vhost for developing, with eAccelerator disabled and Debugger enabled.

Can it be done this way or I need another apache to run for different loaded extensions?

bradgrafelman
03-31-2008, 10:51 PM
Use the PHPIniDir directive under the VirtualHost directives, that way you can maintain separate php.ini files for them.

Flatron
04-01-2008, 02:29 PM
I've got this when I wrote the 2 lines in the VirtualHosts directive:
Only first PHPINIDir directive honored per configuration tree - subsequent ones ignored

cahva
04-01-2008, 06:40 PM
I dont think this is possible with mod_php. If you run php as cgi(preferably fcgid), then you can (and must) use different php.ini with every user.