Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Check if env is right

    Code Block
    languagebash
    themeRDark
    su - testmysite  
    OMD[testmysite]:~$ echo $LD_LIBRARY_PATH
    /omd/sites/mysite/testopt/local/lib:/omd/sites/test/lib
  2. Check if the libary is available

  3. restore the default variable

  4. oracle/instantclient_21_4

    In that case the env is not correct. The env is pointing only to the libraries of the oracle instantclient

  5. Check if the libary is available

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ find -L -name "*libpython3.9.so.1.0*"
    ./version/lib/libpython3.9.so.1.0
    ./lib/libpython3.9.so.1.0

    In that case, the library is only available in the origin and default path of LD_LIBRARY_PATH

  6. restore the default variable
    You will find the original files of .profile or .bashrc in "/omd/versions/2.1.0b7.cee/skel"

    Code Block
    languagebash
    themeRDark
    ➜ /omd/versions/2.1.0b7.cee/skel ls -altr
    insgesamt 36
    -rw-r--r-- 1 root root 2055 Apr 25 00:02 .profile
    -rw-r--r-- 1 root root 1091 Apr 25 00:02 .bashrc

    One way would be to copy the LD_LIBRARY_PATH value from .profile and put it directly to the .profile of the site user:

    Code Block
    languagebash
    themeRDark
    su - mysite
    OMD[mysite]:~$ vi .profile 

    and to make the changes permanent, please enter:

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ source .profile 


  7. set the LD_LIBARY_PATH the right way

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ vi .profile 
    OMD[mysite]:~$ source .profile

    extend the LD_LIBRARY_PATH like that ":path/to/oracle/instanclient"
    At the end it should look like that:

    Code Block
    languagebash
    themeRDark
    OMD[mysite]:~$ echo $LD_LIBRARY_PATH
    /omd/sites/mysite/local/lib:/omd/sites/test/lib:path/to/oracle/instanclient
    
    


  8. Now after a restart of the site apache the error should be gone!

Filter by label (Content by label)
showLabelsfalse
max5
spacesCON
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "apache" and type = "page" and space = "CON"
labelsapache

...