cepera
Новичок
Не находится переменная LD_LIBRARY_PATH
Собрал PHP 5.2.4 --with-oci8. Сам oracle на другой машине.
Написал простой скрипт:
<?
error_reporting(E_ALL);
$user = "user";
$pass = "password";
$host_db="0.0.0.0";
$charset="CL8MSWIN1251";
$conn = oci_connect($user,$pass,$host_db);
?>
получаем:
Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in /srv/www/portal/testdba.php on line 7
в phpinfo видим:
Environment
LD_LIBRARY_PATH /usr/lib/oracle/10.2.0.3/client/lib
PHP Variables
_ENV["LD_LIBRARY_PATH"] /usr/lib/oracle/10.2.0.3/client/lib
Что не так?
Собрал PHP 5.2.4 --with-oci8. Сам oracle на другой машине.
Написал простой скрипт:
<?
error_reporting(E_ALL);
$user = "user";
$pass = "password";
$host_db="0.0.0.0";
$charset="CL8MSWIN1251";
$conn = oci_connect($user,$pass,$host_db);
?>
получаем:
Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that LD_LIBRARY_PATH includes the directory with Oracle Instant Client libraries in /srv/www/portal/testdba.php on line 7
в phpinfo видим:
Environment
LD_LIBRARY_PATH /usr/lib/oracle/10.2.0.3/client/lib
PHP Variables
_ENV["LD_LIBRARY_PATH"] /usr/lib/oracle/10.2.0.3/client/lib
Что не так?