A
A
admin-baton2016-04-26 18:52:55
PHP
admin-baton, 2016-04-26 18:52:55

How to add specific open_basedir to all virtual hosts?

I want to add "/usr/share/php" to each virtual host in addition to the default value of open_basedir (usually "/var/www/site:.") - here are shared php libraries that should be available to all virtual hosts.
If you write
php_admin_value open_basedir "/usr/share/php"
before the <Directory> and <VirtualHost> sections, it will not give any effect, because redefined within them.
Or it is necessary to add to each virtual host separately?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iRedds, 2016-04-27
@iRedds

Specify the path in the php config.

V
Viktor Taran, 2016-04-27
@shambler81

This directive pretty much slows down the site, and in fact it does not provide much protection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question