Uploaded image for project: 'JBoss Web Server'
  1. JBoss Web Server
  2. JWS-184

Solaris Apache HTTP Server .postinstall does not set LD_LIBRARY_PATH

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JWS 3.0.1 CR1
    • JWS 3.0.1 DR1, JWS 3.0.1 DR2, JWS 3.0.1 ER1
    • httpd
    • None
    • Workaround Exists
    • Hide

      Set LD_LIBRARY_PATH manually prior to running Apache HTTP Server and hope for the best or use crle, if possible.

      Show
      Set LD_LIBRARY_PATH manually prior to running Apache HTTP Server and hope for the best or use crle , if possible.
    • Hide
      1. unzip jws-httpd-3.0.1-DR2-sun10.sparc64.zip to an arbitrary location
      2. note echo $LD_LIBRARY_PATH
      3. run ./.postinstall.httpd
      4. note echo $LD_LIBRARY_PATH
      5. run ./apachectl start and note loaded/missing *.so libraries
      Show
      unzip jws-httpd-3.0.1-DR2-sun10.sparc64.zip to an arbitrary location note echo $LD_LIBRARY_PATH run ./.postinstall.httpd note echo $LD_LIBRARY_PATH run ./apachectl start and note loaded/missing *.so libraries

      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

              rhn-engineering-mturk Mladen Turk
              mbabacek1@redhat.com Karm Karm
              Jean-Frederic Clere
              Karm Karm Karm Karm
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: