Sorry,
there was a typo in the variable value:
Replace
AMERICAN_AMERICA.WE8IS8859P1
with
AMERICAN_AMERICA.WE8ISO8859P1
and restart the web server.
EDIT:
The environment variables on the Windows server should be fine. The environment variables on the Linux server itself should be sufficient if you can sqlplus to the server.
So let's check some things with a PHP script:
[PHP
echo getenv("ORACLE_HOME");
if (is_file("/home/oracle/product/9.0.1/network/admin/tnsnames.ora")) {
echo "tnsnames.ora found";
} else {
echo "tnsnames.ora not found";
}
[/code]
Additionally, check which libraries PHP has been linked against on the shell:
ldd /full/path/to/libphp5.so
EDIT: Did you add the oracle lib directory to ld.so.conf and execute ldconfig ?
EDIT2: I read somewhere that on RedHat 8 you can have problems with the web server's user (www or whatever).
Two things to try: Either add the www user to the oracle (or oinstall) group (/etc/group) or change the apache user in httpd.conf to the oracle user (and maybe group). Then restart the server.
I'd prefer if the first one works. The second one is some kind of "ugly".
Thomas