Bug 1221301

Summary: HTTPD_LANG doesn't take effect after httpd graceful restart
Product: Red Hat Enterprise Linux 6 Reporter: Martin Frodl <mfrodl>
Component: httpdAssignee: Luboš Uhliarik <luhliari>
Status: CLOSED NOTABUG QA Contact: Filip Holec <fholec>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.7CC: dkutalek, fholec, jkaluza, jorton, psplicha, qe-baseos-apps, wburrows
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1221275 Environment:
Last Closed: 2015-11-02 08:53:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1172231, 1269913    

Description Martin Frodl 2015-05-13 16:26:04 UTC
PLEASE NOTE: this bug is not identical to bug 963146. Bug 963146 describes troubles related to graceful start of a stopped server, whereas this one points out similar yet different issue with graceful restart of a running server. While the former bug has been fixed (tested on httpd-2.2.15-45.el6.x86_64), this one persists.

+++ This bug was initially created as a clone of Bug #1221275 +++

Description of problem:

Similar to RHEL-6 bug 963146. When the HTTPD_LANG variable is changed in /etc/sysconfig/httpd and Apache restarted gracefully, the value is not updated.

Reproducer:
Create file /var/www/html/info.php containing the following code:
---
<?php
    print "LANG=" . getenv('LANG') . "\n";
?>
---
# service httpd start
# curl http://localhost/info.php
LANG=C
# echo 'HTTPD_LANG=ja_JP.utf-8' > /etc/sysconfig/httpd
# service httpd graceful
# curl http://localhost/info.php
LANG=C
# service httpd restart
# curl http://localhost/info.php
LANG=ja_JP.utf-8

Version-Release number of selected component (if applicable):
httpd-2.2.15-45.el6.x86_64

Comment 2 Jan Kaluža 2015-11-02 08:53:58 UTC
During the graceful restart, it is not possible to change the value of LANG variable. That would mean changing the value of environment variable of running process, which is not possible.

The previous old RHEL-6 bug 963146 is about graceful restart when httpd is *not* running. In that case, graceful restart started the httpd and the LANG variable has been ignored for that newly started httpd instance. But this should work as expected in RHEL7.