Ioncube/SourceGuardian PHP Loaders

I’d like to install the ionCube and SourceGuardian PHP loaders which simply require a few files and a line in the php.ini file (to include the files) for each server. I know I can edit the PHP file for each vhost, but is there any way I can make it universally accessible to all vhosts instead of adding it manually?

I remember reading somewhere that Apache/PHP can load a “master” php.ini file that would apply to all vhosts but don’t remember where that file was located. Any thoughts?

Yup, you can do that by setting up one .conf file for all your stuff.

How to do that depends on your distro, which distro/version are you using?

-Eric

Using Ubuntu 10.04 LTS 64-bit, PHP 5.3.

Howdy,

Okay, if you create a .ini file in “/etc/php5/conf.d” containing the code to load that module, that should be loaded for all PHP applications running on your server.

-Eric