You're pretty much out of luck as only the PHP module supports the php_value
and php_flag
directives.
What you can do is create a php.ini
file for each website. From memory, you will need this to be a full php.ini
file as a new file will completely override the system one.
One simple way to do this would be copy the system file and then add your custom property, eg
cp /usr/share/php5/php.ini /path/to/site/php.d/php.ini \
&& echo 'include_path = "[INCLUDE PATH]"' >> /path/to/site/php.d/php.ini
Then, in the site's .htaccess
file, set the PHPRC
environment variable. This is to avoid having to add a php.ini
file into every directory.
SetEnv PHPRC /path/to/site/php.d
Ideally though, each site should take care of its own include_path
in code. This will make your applications much more portable.
set_include_path(implode(PATH_SEPARATOR, [
'[INCLUDE_PATH'],
get_include_path()
]));