Jump to content

Disable php extension by name in .htaccess


Recommended Posts

Hi all, this is kind of a weird question.

 

I have an extension loaded into php.ini. I would like this module to not be loaded in a virtual host, and needs to be loaded runtime, meaning we have to put it in .htaccess.

 

Easy, right? Well, here's the kicker: There isn't a key to disable the particular key/class we don't want.

 

So now my question: Is there a way to disable a module by name in the .htaccess file?

 

We could disable it in php.ini, then call it for each virtual domain, but that is resource intensive.

 

Thanks!!

Archived

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

×
×
  • Create New...

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.