-
Bug
-
Resolution: Done
-
Major
-
JWS 3.0.1 DR1, JWS 3.0.1 DR2, JWS 3.0.1 ER1
-
None
-
-
-
-
-
-
Workaround Exists
-
-
Apart from other numerous issues, JWS-153, ./.postinstall.httpd contains this code:
if [ ".$LD_LIBRARY_PATH" = . ] then LD_LIBRARY_PATH="$INSTALL_ROOT/lib64" else LD_LIBRARY_PATH="$INSTALL_ROOT/lib64:$LD_LIBRARY_PATH" fi export LD_LIBRARY_PATH
that AFAIK does nothing. It merely sets the variable within the executing shell that then vanishes... There is no call to /usr/bin/crle, but that won't help anyway if the script ain't executed with root privileges.
If you run Apache HTTP Server with ./apachectl or as a service, there is no LD_LIBRARY_PATH set for you neither in ./apachectl nor in sysconfig/httpd.
Suggested fix
I suggest to use this updated ./.postinstall.httpd that with its latest commit (ATTOW) brings LD_LIBRARY_PATH to apachectl and sysconfig/httpd.
It requires apachectl.in to be patched as follows:
--- apachectl.in.old Wed Jul 8 07:58:35 2015 +++ apachectl.in Wed Jul 8 08:02:41 2015 @@ -41,6 +41,8 @@ # |||||||||||||||||||| START CONFIGURATION SECTION |||||||||||||||||||| # -------------------- -------------------- # +LD_LIBRARY_PATH=@ld_library_path@ +export LD_LIBRARY_PATH # the path to your httpd binary, including options if necessary HTTPD="@installroot@/sbin/httpd" ROOTDIR="-d @installroot@/etc/httpd"
Thank you for reviewing the suggested solution. It would be great to have it in ER1.
K