#19368 [Bgs]: don't work disable_functions: phpinfo in httpd.conf
| From: | derick@php.net | Date: | Thu, 12 Sep 2002 08:31:56 +0000 |
| Subject: | #19368 [Bgs]: don't work disable_functions: phpinfo in httpd.conf | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-19211@lists.php.net to get a copy of this message | ||
ID: 19368
Updated by: derick@php.net
Reported By: thor@compnet.ru
Status: Bogus
Bug Type: *Web Server problem
Operating System: FreeBSD 4.1.1-RELEASE
PHP Version: 4.2.3
New Comment:
Yes, I already fixed that .. but it takes awhile before the manuel on
the site updates.
Derick
Previous Comments:
------------------------------------------------------------------------
[2002-09-12 02:36:24] thor@compnet.ru
> See:
http://www.php.net/manual/sv/print/function.ini-set.php#AEN68028
PHP_INI_PERDIR 2 Entry can be set in .htaccess
PHP_INI_SYSTEM 4 Entry can be set in php.ini or httpd.conf
I think:
- It means PHP_INI_PERDIR can be set in .htaccess
(to change this - I don't need restart server)
- And PHP_INI_SYSTEM can be set in httpd.conf
(to change - I MUST restart server, even I change in VHOST).
Maybe you rewrite doc section:
"PHP_INI_PERDIR - means .htaccess AND VIRTUALHOST."
Thank you.
------------------------------------------------------------------------
[2002-09-12 02:17:59] derick@php.net
You can't set those from VHost configurations, only from the main
httpd.conf or php.ini files.
See: http://www.php.net/manual/sv/print/function.ini-set.php#AEN68028
It says: disable_functions PHP_INI_SYSTEM, which means that it's only
settable from "system" files (ie. php.ini or the main httpd.conf). If
it would have included "PER_DIR" then it would have been settable per
VHost and from a .htaccess file.
Derick
------------------------------------------------------------------------
[2002-09-12 02:13:33] thor@compnet.ru
php.ini:
disable_functions =
exec,passthru,proc_close,proc_open,shell_exec,system
httpd.conf (<VirtualHost>):
php_admin_value disable_functions
phpinfo,exec,passthru,proc_close,proc_open,shell_exec,system
And in this virtual host phpinfo - works.
I don't know, may be it is not bug, but feature.
Help me please.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19368&edit=1