redjersey
Verified User
I'm using php 5.6 (mod_php) with suhosin
I would like to use suhosin.executor.func.blacklist to disable certain php functions and only allow those functions for certain domains.
so I have created: suhosin.ini in /usr/local/directadmin/custombuild/custom/suhosin/
and set:
suhosin.executor.func.blacklist = "exec, passthru... ...."
when I rebuild php using custombuild, it works, those functions are blocked.
now I would like to allow those functions for certain domains, so based on help: https://help.directadmin.com/item.php?id=622 I have created:
/usr/local/lib/php.conf.d/30-mydomain.com.ini
and add
[HOST=mydomain.com]
suhosin.executor.func.blacklist = ""
and it's not working, for instance I can't use exec() on mydomain.com
any one knows how to fix it?
I would like to use suhosin.executor.func.blacklist to disable certain php functions and only allow those functions for certain domains.
so I have created: suhosin.ini in /usr/local/directadmin/custombuild/custom/suhosin/
and set:
suhosin.executor.func.blacklist = "exec, passthru... ...."
when I rebuild php using custombuild, it works, those functions are blocked.
now I would like to allow those functions for certain domains, so based on help: https://help.directadmin.com/item.php?id=622 I have created:
/usr/local/lib/php.conf.d/30-mydomain.com.ini
and add
[HOST=mydomain.com]
suhosin.executor.func.blacklist = ""
and it's not working, for instance I can't use exec() on mydomain.com
any one knows how to fix it?