'How to change USER , HOME path in RHEL 8

I tried to change HOME, USER in phpinfo() under environment module by setting envars, apachectl in /etc/httpd/ path but it's not working. Any clue to solve it?

ENVVARS FILE

 LD_LIBRARY_PATH="/usr/lib/oracle/19.11/client64/lib:$LD_LIBRARY_PATH"
 export LD_LIBRARY_PATH
 export TNS_ADMIN=/etc
 export HOME=/var/www/html

APACHECTL FILE

 HTTPD='/etc/httpd -f 
 /etc/httpd/conf/httpd.conf'
 if test -f /etc/httpd/envvars; then
 . /etc/httpd/envvars
fi

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source