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?

    Use the PHPIniDir directive under the VirtualHost directives, that way you can maintain separate php.ini files for them.

      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

        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.

          Write a Reply...