Hi,
I have a problem which centers around using the POstgreSQL database
under PHP, Linux and Apache.
In a nutshell: environment variables set in the .htaccess file of a
directory are not being used (they are not "known"), and consequently
certain required files are not found.
.htaccess sets the following variables:
SetEnv cudb_env_root "/usr/local/httpd/htdocs/cudb/env"
SetEnv cudb_script_root "/usr/local/httpd/htdocs/cudb"
SetEnv mod_name "cudb"
which are being referred to in the file index.php:
<?php
require "$cudb_env_root/autoinclude.inc";
require "$cudb_script_root/req/auth_top.inc";
$pal = $dpal;
require "$cudb_script_root/req/auth_bottom.inc";
?>
The variables, however, are not being found, and as a consequence, there
is a complaint that the file autoinclude.inc could not be found.
If I set absolute paths in the files, everything works.
Does anybody have a clue why the environment variables are not being
used? .htaccess was written by an install script, so I assume it should
be correct. I'd be grateful for any bright ideas -- preferably both
posted and mailed.
Many thanks!
Andreas