RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1221275 - LANG doesn't take effect after httpd graceful restart
Summary: LANG doesn't take effect after httpd graceful restart
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: httpd
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Luboš Uhliarik
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-13 15:25 UTC by Martin Frodl
Modified: 2021-01-14 09:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 963146
: 1221301 1221611 (view as bug list)
Environment:
Last Closed: 2015-05-18 09:40:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Frodl 2015-05-13 15:25:02 UTC
+++ This bug was initially created as a clone of Bug #963146 +++

Description of problem:

Similar to RHEL-6 bug 963146. When the 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";
?>
---
# systemctl start httpd
# curl http://localhost/info.php
LANG=C
# echo 'LANG=ja_JP.utf-8' > /etc/sysconfig/httpd
# service httpd graceful
# curl http://localhost/info.php
LANG=C
# systemctl restart httpd
# curl http://localhost/info.php
LANG=ja_JP.utf-8

Version-Release number of selected component (if applicable):
httpd-2.4.6-32.el7.x86_64

Comment 2 Jan Kaluža 2015-05-18 09:40:40 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.


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