You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by James White <jb...@ncsu.edu> on 2007/07/01 21:37:50 UTC

[users@httpd] setting ORACLE_HOME

Hi,

I am trying to install Oracle XE to run PHP scripts. I have read that it
is preferable to set ORACLE_HOME before starting Apache instead of using
putenv() in the PHP script. I have tried the recommended script.

ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_HOME
echo "Oracle Home: $ORACLE_HOME"
echo Starting Apache
/usr/local/apache/bin/apachectl start

Unfortunately this does not work and I still have to use putenv(). I am
using PHP as a cgi.

How can I get this to work?

Jim



James White
Programmer
Biodiversity and Spatial Information Center
North Carolina State University
www.basic.ncsu.edu


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] setting ORACLE_HOME

Posted by James White <jb...@ncsu.edu>.
> On 02/07/07, James White <jb...@ncsu.edu> wrote:
>> I am trying to install Oracle XE to run PHP scripts. I have read that it
>> is preferable to set ORACLE_HOME before starting Apache instead of using
>> putenv() in the PHP script. I have tried the recommended script.
>>
>> ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
>> export ORACLE_HOME
>> echo "Oracle Home: $ORACLE_HOME"
>> echo Starting Apache
>> /usr/local/apache/bin/apachectl start
>
> You may find the PassEnv directive useful.
>
> "Specifies one or more environment variables to pass to CGI scripts
> and SSI pages from the environment of the shell which invoked the
> httpd process."
>
> Alternatively you could look at the envvars script which is invoked by
> apachectl in modern versions of apache, however the path you mentioned
> implies you're running 1.3 so don't have that.
> --
> noodl

Thanks. I decided to use SetEnv

SetEnv ORACLE_HOME /usr/lib/oracle/xe/app/oracle/product/10.2.0/server


Jim


>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] File Download size limit

Posted by Joshua Slive <jo...@slive.ca>.
On 7/4/07, Moholkar, Prashant <Pr...@bmc.com> wrote:
>
>
>
>
> I am using the Apache 2.0.59 on AIX 5.3

That's an older version. Try 2.2.

There may be some compile-time switches you can use to make 2.0.59
support large files on AIX, but I'm not sure.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] File Download size limit

Posted by Roger Haase <ha...@gmail.com>.
On 7/4/07, Moholkar, Prashant <Pr...@bmc.com> wrote:
>
>  I am using the Apache 2.0.59 on AIX 5.3
>
>
>
> Also we did the file limit to 10GB for flie size still we are getting the
> error in Apache.
>
>
>
If you mean upload rather than download, then the LimitRequestBody can be
used the maximum incoming size.  From my reading of the docs there doesn't
seem to be a default and the original httpd.conf that came with apache for
windows does not use the directive.  Maybe your httpd.conf has a 2000000
limit specified?

# maximum upload file size
LimitRequestBody 2000000

Roger

RE: [users@httpd] File Download size limit

Posted by "Moholkar, Prashant" <Pr...@bmc.com>.
I am using the Apache 2.0.59 on AIX 5.3 

 

Also we did the file limit to 10GB for flie size still we are getting
the error in Apache.

 

[Wed Jul 04 06:43:16 2007] [error] [client 137.72.254.113] (127)Value
too large to be stored in data type: access to
/bmc/epd/Products/product_29/00020994/63816.iso failed

 

 

 

-----Original Message-----
From: jslive@gmail.com [mailto:jslive@gmail.com] On Behalf Of Joshua
Slive
Sent: Tuesday, July 03, 2007 5:38 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] File Download size limit

 

On 7/2/07, Moholkar, Prashant <Pr...@bmc.com> wrote:

 

> It seems that in apache there is a limit of 2GB for download file
through

> http.

> 

> 

> 

> Is there any way to increase it?

 

There is no such limit. But older versions have less large-file

support and therefore may run into OS limits on the standard APIs.

 

Try running the most recent version.

 

Joshua.

 

---------------------------------------------------------------------

The official User-To-User support forum of the Apache HTTP Server
Project.

See <URL:http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org

   "   from the digest: users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] File Download size limit

Posted by Joshua Slive <jo...@slive.ca>.
On 7/2/07, Moholkar, Prashant <Pr...@bmc.com> wrote:

> It seems that in apache there is a limit of 2GB for download file through
> http.
>
>
>
> Is there any way to increase it?

There is no such limit. But older versions have less large-file
support and therefore may run into OS limits on the standard APIs.

Try running the most recent version.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] File Download size limit

Posted by "Moholkar, Prashant" <Pr...@bmc.com>.
 

It seems that in apache there is a limit of 2GB for download file
through http.

 

Is there any way to increase it? 


Re: [users@httpd] setting ORACLE_HOME

Posted by Vincent Bray <no...@gmail.com>.
On 02/07/07, James White <jb...@ncsu.edu> wrote:
> I am trying to install Oracle XE to run PHP scripts. I have read that it
> is preferable to set ORACLE_HOME before starting Apache instead of using
> putenv() in the PHP script. I have tried the recommended script.
>
> ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
> export ORACLE_HOME
> echo "Oracle Home: $ORACLE_HOME"
> echo Starting Apache
> /usr/local/apache/bin/apachectl start

You may find the PassEnv directive useful.

"Specifies one or more environment variables to pass to CGI scripts
and SSI pages from the environment of the shell which invoked the
httpd process."

Alternatively you could look at the envvars script which is invoked by
apachectl in modern versions of apache, however the path you mentioned
implies you're running 1.3 so don't have that.
-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org