|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7191 php_admin_* does not work in VirtualHost
Submitted: 2000-10-13 13:18 UTC Modified: 2000-11-05 22:29 UTC
From: brianlmoon at iname dot com Assigned:
Status: Closed Package: PHP options/info functions
PHP Version: 4.0.3 OS: Linux
Private report: No CVE-ID: None
 [2000-10-13 13:18 UTC] brianlmoon at iname dot com
Create two VitualHosts in Apache:

<VirtualHost 208.170.103.XXX>

DocumentRoot /www/virthost/dealmac

php_admin_flag asp_tags Off
php_admin_value include_path /www/virthost/dealmac
php_admin_value auto_prepend_file /www/virthost/dealmac/include/prepend.php


<VirtualHost 208.170.103.XXX>

DocumentRoot /www/virthost/dealnews

php_admin_flag asp_tags On
php_admin_value include_path /www/virthost/dealnews
php_admin_value auto_prepend_file /www/virthost/dealnews/include/prepend.php


phpinfo() in both yield:

asp_tags            Off
include_path        /www/virthost/dealmac
auto_prepend_file   /www/virthost/dealmac/include/prepend.php

I see this in the ChangeLog:

- Fixed a problem that allowed users to override admin_value's and admin_flag's (Zeev)

This is not in .htaccess, this is in httpd.conf.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-05 11:19 UTC]
Please check latest version from and report if it still happens.
 [2000-11-05 22:29 UTC]
Actually, the code fix in 4.0.3pl1 that fixed the use of admin flags in .htaccess files.  Close it
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed May 12 00:01:24 2021 UTC