If you are connecting an Oracle Database using an Apache2 webserver that runs on an Ubuntu machine, you might randomly have this error.
Warning: ocilogon() http://function.ocilogon: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries.
It can be solved setting properly the environment variable LD_LIBRARY_PATH in the configuration file /etc/apache2/apache2.conf
Add below the ServerRoot path:
the following line:
Don’t forget to let us know if the solution is working also for you ;)