I need disable some dangerous functions in php 5.3, but per domain basis not globaly. To do so i created such config in virtual host:
When i restarted apache got an error:
Found some related articles telling that it could happened because misspeled configuration. I tried other variations (single quotes, no quotes), no effect.
Code:
<VirtualHost 127.0.0.1:8080>
<IfModule mod_php5.c>
php_admin_value suhosin.executor.func.blacklist = "system, shell_exec, passthru, exec, popen, gzinflate, fsockopen, pfsockopen"
</IfModule>
ServerName mydomain.com
ServerAlias www.mydomain.com
DocumentRoot "/usr/local/www/apache22/data/mydomain.com"
<Directory "/usr/local/www/apache22/data/mydomain.com">
Options Indexes FollowSymlinks MultiViews
Order allow,deny
Allow from all
</Directory>
<Directory /usr/local/www/apache22/data/mydomain.com>
php_admin_value open_basedir "/usr/local/www/apache22/data/mydomain.com"
</Directory>
CustomLog /dev/null combined
ErrorLog /var/log/www/mydomain.com/aerror.log
</VirtualHost>
When i restarted apache got an error:
Code:
Performing sanity check on apache22 configuration:
Syntax error on line 3 of /usr/local/etc/apache22/Includes/mydomain.com.conf:
php_admin_value takes two arguments, PHP Value Modifier (Admin)