pascual_dav Posted September 4, 2014 Report Share Posted September 4, 2014 Hi, I just started to use Uniform for developments in PHP and think it's an incredible tool. I'm working with Uniform Zero XI but also with other tools from PortableApps project's. Uniform is located in the path X:/PortableApps/UniServerZ I need to install the "Oracle Instant Client" so that share the facility with some applications and the Uniform Server, so I have set in: X:/PortableApps/instantclient_11_2 I need to include in the httpf.conf SetEnv directives file, for example: SetEnv ORACLE_HOME "${US_ROOTF}../instantclient_11_2" However, this configuration does not seem to be interpreted correctly by Apache / PHP (see phpinfo). Is there any way to include my own variables in algú Uniform ini file to do the replacement? Perhaps this issue should be treated as a new feature. Thanks for everything, I hope your answer. Quote Link to comment Share on other sites More sharing options...
Ric Posted September 24, 2014 Report Share Posted September 24, 2014 I am assuming "Oracle Instant Client" is a separate application!If this is true you cannot set the environment as above.You need to set environment variables at the system level. It looks like you are using Windows 7 (Main OS),proceed as follows to set the environment variable and any other variables required:1. From the Desktop, right-click the Computer icon and select Properties. If you do not have a Computer icon on your desktop, click the Start button, right-click the Computer option in the Start menu, and select Properties.2. Click the Advanced System Settings link in the left column. In the System Properties window, click on the Advanced tab, then click the Environment Variables button near the bottom of that tab.3. In the Environment Variables window, click New and enter the Variable name and Variable value.Quick test: After setting the environment variable open a CMD window and enter command set this lists all the environments variables. Note: After setting environment variable always open a new commandwindow to perform the above test.All the bestRic Quote Link to comment Share on other sites More sharing options...
pascual_dav Posted November 6, 2014 Author Report Share Posted November 6, 2014 Hi, It is not necessary to set the environment variable at the system level . It works well if you get to read it properly using Apache SetEnv . The same applies to JRE (for example), if you want PHP to access a particular version, you can specify it by Apache env var using setenv . In any case, it would be interesting for users set their own collection of "properties" to replace in configuration files at UniServer boot.Thank you very much for the reply and sorry for my delay in reading it . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.