View previous topic :: View next topic |
Author |
Message |
adrive n00b
Joined: 01 Mar 2006 Posts: 1 Location: Slovakia
|
Posted: Wed Mar 01, 2006 12:56 pm Post subject: Apache 2.0.55, PHP 5.1.1, Oci8 troubles with ENV variables |
|
|
Hello!
I have troubles with installing Apache + PHP5 and OCI8 through oracle-instantclient-basic.
I emerged apache and dev-lang/php with keywrod ~x86 and with USE="oracle"
Code: | dev-lang/php-5.1.1 USE="apache2 bcmath berkdb bzip2 cli crypt curl dba exif flatfile ftp gd gdbm iconv imap inifile ipv6 ldap mhash mysql mysqli ncurses nls [b]oci8-instant-client[/b] pcntl pcre pdo postgres readline session simplexml soap spell spl sqlite ssl tidy tokenizer truetype xml xmlrpc zip zlib -adabas -apache -birdstep -calendar -cdb -cgi -cjk -ctype -curlwrappers -db2 -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob -fastbuild -fdftk -filepro -firebird -force-cgi-redirect -frontbase -gd-external -gmp -hardenedphp -hyperwave-api -informix -interbase -iodbc -java-external -kerberos -libedit -mcve -memlimit -ming -msql -mssql -oci8 -odbc -pdo-external -pic -posix -qdbm -recode -sapdb -sasl -sharedext -sharedmem -snmp -sockets -solid -sybase -sybase-ct -sysvipc -threads -vm-goto -vm-switch -wddx -xmlreader -xpm -xsl -yaz" |
All works fine, I see in my PHP info that oci8 is installed, but if i want to connect to oracle database, I need some environment variables specified.
These are in 50oracle-instantclient-basic (ORACLE_HOME, TNS_ADMIN, NLS_LANG, ORA10_NLS)
But apache Does not see them, even I added them into /etc/conf.d/apache2 to KEEPENV="PATH ORACLE_HOME TNS_ADMIN NLS_LANG";
In PHPinfo i see, all of these variables, but they are blank. All have "no value" except PATH, wich is correctly setted and ORACLE_HOME has value "." (dot).
I have to run env-update and source /etc/profile befor starting apache, but apache still does not have any values.
I try to have other environment variables in KEEPENV eg. LANG after or before PATH, but the result was also no value.
Do you know, what can I do with this?
Thanks |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
TimothyO n00b
Joined: 11 Jan 2006 Posts: 4 Location: London
|
Posted: Fri Sep 22, 2006 4:09 pm Post subject: |
|
|
UberLord wrote: | Try adding the variables you want to /etc/env.d/env_whitelist |
I think you mean /etc/conf.d/env_whitelist.
This has just had me pulling my hair out for two hours. _________________ Actually it is rocket science... |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|