Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 73516 - php_value etc unusable from httpd.conf
php_value etc unusable from httpd.conf
Product: Red Hat Linux
Classification: Retired
Component: php (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
: 67586 (view as bug list)
Depends On:
Blocks: 73513
  Show dependency treegraph
Reported: 2002-09-05 12:41 EDT by Gary Benson
Modified: 2007-04-18 12:46 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-01-25 11:46:15 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Gary Benson 2002-09-05 12:41:18 EDT
Description of Problem:
If /etc/php.ini has short_open_tag = off, this cannot be overridden from within
a .htaccess or from within httpd.conf.  See http://bugs.php.net/bug.php?id=17234
for more details.

Version-Release number of selected component (if applicable):

How Reproducible:

Steps to Reproduce:
1. Make sure/etc/php.ini says:

  register_globals = Off
  short_open_tag = Off

2. Add this to httpd.conf:

  <Directory /foo/bar/baz>
    php_value register_globals 1
    php_value short_open_tag 1

3. Create a phpinfo() in /foo/bar/baz/phpinfo.php and look at it.

Actual Results:

  Directive          Local value       Global value
  register_globals   On                Off
  short_open_tag     Off               Off

Expected Results:

  Directive          Local value       Global value
  register_globals   On                Off
  short_open_tag     On                Off
Comment 1 Phil Copeland 2002-09-05 15:24:02 EDT
Well, it ain't going to get fixed for the next release as we just went past the
cutoff date for changes

I'll look into this

Comment 2 Joe Orton 2002-09-24 06:12:56 EDT
*** Bug 67586 has been marked as a duplicate of this bug. ***
Comment 3 Joe Orton 2002-12-04 04:28:29 EST
With php-4.2.2-10, "php_admin_flag" and "php_admin_value" can be used in
httpd.conf to override php.ini settings.  php_flag and php_value still don't
work in httpd.conf.
Comment 4 Ngo Than 2002-12-08 17:20:06 EST
Alias /wordtrans /var/www/wordtrans

<Directory /var/www/wordtrans>
   php_admin_flag short_open_tag On

/etc/init.d/http start

httpd starten: Syntax error on line 4 of /etc/httpd/conf.d/wordtrans.conf:
Invalid command 'php_admin_flag', perhaps mis-spelled or defined by a module not
included in the server configuration

It does not work with php-4.2.2-11.

Comment 5 Denice 2003-01-29 11:11:40 EST
I had also noted these problems with php directives when
I reported the safe_mode problem at:


This report was marked as a duplicate (the problem had already
been reported in the beta version of RH 8.0).  But you might
want to look at the report anyway for what I found with php 
directives in httpd.conf.
Comment 6 Joe Orton 2005-01-25 11:46:15 EST
Thanks for the report.  This is a mass bug update; since this release
of Red Hat Linux is no longer supported, please either:

a) try and reproduce the bug with a supported version of Red Hat
Enterprise Linux or Fedora Core, and re-open this bug as appropriate
after changing the Product field, or,

b) if relevant, try and reproduce this bug using the current version
of the upstream package, and report the bug upstream.

c) report the bug to the Fedora Legacy project who may wish to
continue maintenance of this package.

Note You need to log in before you can comment on or make changes to this bug.