|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: brianlmoon at iname dot com
New email:
PHP Version: OS:


 [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 Jun 23 06:01:25 2021 UTC