#30100 [Bgs]: Is there a possibility to load php modules per virtualhost directives?
| From: | php-answer at karolyi dot hu | Date: | Fri, 17 Sep 2004 21:48:28 +0000 |
| Subject: | #30100 [Bgs]: Is there a possibility to load php modules per virtualhost directives? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-66364@lists.php.net to get a copy of this message | ||
ID: 30100
User updated by: php-answer at karolyi dot hu
Reported By: php-answer at karolyi dot hu
Status: Bogus
Bug Type: Dynamic loading
Operating System: Linux
PHP Version: 5.0.1
New Comment:
Okay, thanks in advance.
By the way, it would be great in the future use if an option would
exist which switches off a module's functions per virtualhost.
I know i'm getting annoying, but this option would be really great.
Greets,
Laszlo KAROLYI
Previous Comments:
------------------------------------------------------------------------
[2004-09-16 18:04:01] rasmus@php.net
it's not a senseless feature to want, it's just that per-vhost loading
of shared libraries is a senseless implementation. When you load a
shared library it cannot in any way be restricted to a single vhost.
You could load and unload on every request, but that would destroy any
sort of advantage you get from using the module version of PHP and you
might as well use the CGI version and simply have different ini files
on a per-vhost basis to get that functionality.
------------------------------------------------------------------------
[2004-09-16 10:13:04] php-answer at karolyi dot hu
I want to restrict access to functions, without putting it in
disable_functions.
In other view, this would cause lesser memory usage. Loading modules
which the user won't use has no meaning.
Is it still a senseless question?
--
Regards,
Laszlo KAROLYI
------------------------------------------------------------------------
[2004-09-16 05:48:18] rasmus@php.net
Why do you think it would be more efficient? When you load in an
extension it gets loaded into the Apache process which serves requests
for all your virtual hosts anyway. There would be no difference
between doing it per-vhost at startup vs. just doing it from your
php.ini.
------------------------------------------------------------------------
[2004-09-16 02:16:22] php-answer at karolyi dot hu
Description:
------------
I wonder if there is an option to load external php modules like gd,
mysql and imap into php below a <VirtualHost> section with
php_admin_value directives.
I think it could be possible, like dl()-ing from php scripts.
But as i've tried with "php_admin_value extension gd.so", it doesn't
works at this moment.
Please report back if this is a solvable problem, because
virtualhosting would be much more efficient if this option would work.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30100&edit=1