Enable php functions (ex: exec) on Apache Virtualhost

Giganews Newsgroups
Subject: Enable php functions (ex: exec) on Apache Virtualhost
Posted by:  Lachapelle Xavier (lachapell…@gmail.com)
Date: Thu, 28 Jul 2011

Hello,

I'm sure the question has already been asked but i didn't find any up-
to-date response on this.

I'd like to enable some functions like (exec, system, etc.) only for
some VirtualHost and only some directories.

I tried to add this, but didn't work :
<VirtualHost *:80>
<Directory /var/www/myexample>

php_admin_flag disable_functions " "

</Directory>
</VirtualHost>

Also tried with this, but didn't work  :
php_flag disable_functions " "
php_value disable_functions " "

Do you guys have any idea on how to do this?
I'm running Apache 2.2.9 and PHP 5

Thanks in advance,
Regards,
Lachapelle

Replies