Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 2.0.55, PHP 5.1.1, Oci8 troubles with ENV variables
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
adrive
n00b
n00b


Joined: 01 Mar 2006
Posts: 1
Location: Slovakia

PostPosted: Wed Mar 01, 2006 12:56 pm    Post subject: Apache 2.0.55, PHP 5.1.1, Oci8 troubles with ENV variables Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Mar 01, 2006 2:04 pm    Post subject: Reply with quote

Try adding the variables you want to /etc/env.d/env_whitelist
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
TimothyO
n00b
n00b


Joined: 11 Jan 2006
Posts: 4
Location: London

PostPosted: Fri Sep 22, 2006 4:09 pm    Post subject: Reply with quote

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. :x
_________________
Actually it is rocket science...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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