<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apache configuration in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982142#M4861</link>
    <description>Thanks a lot, Bill. problem solved!&lt;BR /&gt;</description>
    <pubDate>Thu, 29 May 2003 05:19:45 GMT</pubDate>
    <dc:creator>Claudio Cilloni</dc:creator>
    <dc:date>2003-05-29T05:19:45Z</dc:date>
    <item>
      <title>Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982131#M4850</link>
      <description>Does anybody know why Apache's SetEnv command &lt;BR /&gt;doesn't work? I wrote this&lt;BR /&gt;in httpd.conf:&lt;BR /&gt;&lt;BR /&gt;  &lt;DIRECTORY&gt;&lt;BR /&gt;    SetEnv ORACLE_HOME /home/oracleclient/oracle_home&lt;BR /&gt;    Order allow,deny&lt;BR /&gt;    Allow from all&lt;BR /&gt;    Options +ExecCGI&lt;BR /&gt;  &lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;But no ORACLE_HOME env variable could be found by my cgi scripts. No errors in apache's logs.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Tue, 27 May 2003 06:15:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982131#M4850</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-05-27T06:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982132#M4851</link>
      <description>"Directory and .htaccess context is available in Apache 1.3.7 and later" (from &lt;A href="http://httpd.apache.org/docs/mod/mod_env.html#setenv)" target="_blank"&gt;http://httpd.apache.org/docs/mod/mod_env.html#setenv)&lt;/A&gt; - which version do you run?&lt;BR /&gt;&lt;BR /&gt;You can put SetEnv in server config or virtual server config&lt;BR /&gt;&lt;BR /&gt;Vitaly. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 May 2003 07:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982132#M4851</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2003-05-27T07:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982133#M4852</link>
      <description>I'm running apache-1.3.27-2.&lt;BR /&gt;It's funny to see that the SetEnv command works well in another part of httpd.conf:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;IFMODULE mod_alias.c=""&gt;&lt;BR /&gt;  ...&lt;BR /&gt;  Alias /gest/ "/home/web/gest/"&lt;BR /&gt;    &lt;DIRECTORY&gt;&lt;BR /&gt;        SetEnv PYTHONPATH /home/web/gest/site-packages:/home/web/gest/app-packages:/home/web/gest/applications&lt;BR /&gt;        SetEnv ORACLE_HOME /home/oracleclient/oracle_home&lt;BR /&gt;        Order allow,deny&lt;BR /&gt;        Allow from all&lt;BR /&gt;        Options +ExecCGI&lt;BR /&gt;    &lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;/IFMODULE&gt;&lt;BR /&gt;&lt;BR /&gt;In this aliased directory the env variables are visible by the scripts.&lt;BR /&gt;But not in the user web directories.&lt;BR /&gt;&lt;BR /&gt;tx&lt;BR /&gt;Claudio</description>
      <pubDate>Tue, 27 May 2003 07:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982133#M4852</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-05-27T07:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982134#M4853</link>
      <description>Can it be related to your /home/*/public_html then /home/oracleclient/oracle/home, won't you have to define /home/*/oracle/home instead, or is ocalcle_home but only one dir ?&lt;BR /&gt;</description>
      <pubDate>Tue, 27 May 2003 07:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982134#M4853</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-05-27T07:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982135#M4854</link>
      <description>the string '/home/oracleclient/oracle_home/' is only the value&lt;BR /&gt;of the environment variable ORACLE_HOME that my cgi scripts&lt;BR /&gt;need to see. It has no interest for apache.&lt;BR /&gt;&lt;BR /&gt;The only difference I see between my two examples is that&lt;BR /&gt;the cgi scripts running in the user web directories (first&lt;BR /&gt;example) will the started by apache through the command&lt;BR /&gt;suexec, which lets apache to change the user that owns the script's process.&lt;BR /&gt;Nevertheless this, all the other apache-specific environment&lt;BR /&gt;variables are still available to the cgi scripts, but not&lt;BR /&gt;the variables I defined.&lt;BR /&gt;&lt;BR /&gt;tx again&lt;BR /&gt;Claudio</description>
      <pubDate>Tue, 27 May 2003 08:12:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982135#M4854</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-05-27T08:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982136#M4855</link>
      <description>Your methodology is interesting, but not how oracle does it in their own modfication of apache, which they ship with their application server(HP-UX).&lt;BR /&gt;&lt;BR /&gt;They set variables in the cgi script itself.  If they need to be configured differently on different occaisions, the cgi script reads a data file and sets environment variables accordingly.&lt;BR /&gt;&lt;BR /&gt;If all you are doing is setting ORACLE_HOME, go ahead and hard code it into the script, thats all you're trying to do with the httpd.conf anyway.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 May 2003 11:12:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982136#M4855</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-27T11:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982137#M4856</link>
      <description>This is surely a good workaround, and it's easy to implement. But it doesn't solve this unwanted behaviour from apache (it could be my fault, of course... I'm looking for someone that knows apache better than me :-)&lt;BR /&gt;&lt;BR /&gt;tx&lt;BR /&gt;Claudio</description>
      <pubDate>Tue, 27 May 2003 11:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982137#M4856</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-05-27T11:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982138#M4857</link>
      <description>If the directive is working in other parts of the httpd.conf file, then it should be workable for you.&lt;BR /&gt;&lt;BR /&gt;I would try and move the directive to a different part of the file.&lt;BR /&gt;&lt;BR /&gt;If you have virtual hosting setup to handle more than one IP/website, then move the code there.&lt;BR /&gt;&lt;BR /&gt;Then &lt;BR /&gt;&lt;BR /&gt;service httpd restart&lt;BR /&gt;&lt;BR /&gt;Run a test script and see if the variable is set.&lt;BR /&gt;&lt;BR /&gt;If you are running perl in the cgi script there is a directive for bringing environment variables into a normal variable.  It could be geting set, but you might need to pull it in.&lt;BR /&gt;&lt;BR /&gt;$variable=$ENV{'CONTENT_LENGTH'};&lt;BR /&gt;&lt;BR /&gt;$oracle_home=$ENV{'ORACLE_HOME'};&lt;BR /&gt;&lt;BR /&gt;Mabye the variable IS being set, just the script isn't set up to read it in and use it.&lt;BR /&gt;&lt;BR /&gt;This code with a print statement would be a very good test as you play with apache.&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 27 May 2003 15:53:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982138#M4857</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-05-27T15:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982139#M4858</link>
      <description>&lt;DIRECTORY&gt; is literally looking for path '/home/*/public_html'. Instead, use regular expressions this way:&lt;BR /&gt;&lt;BR /&gt;&lt;DIRECTORY&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;/DIRECTORY&gt;&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;&lt;DIRECTORYMATCH&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;/DIRECTORYMATCH&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIRECTORY&gt;</description>
      <pubDate>Tue, 27 May 2003 18:34:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982139#M4858</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2003-05-27T18:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982140#M4859</link>
      <description>the string '/home/*/public_html' matches any public_html directory&lt;BR /&gt;in user homes, not the literal '/home/*/public_html' (I taken&lt;BR /&gt;it from a commented example in apache's original httpd.conf file).&lt;BR /&gt;the match string is correct because the directive 'Options +ExecCGI'&lt;BR /&gt;works. However, the regular expression string doesn't change&lt;BR /&gt;a thing. But I think it is a better way to say the same thing :-)&lt;BR /&gt;&lt;BR /&gt;Thanks anyway!&lt;BR /&gt;</description>
      <pubDate>Wed, 28 May 2003 07:18:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982140#M4859</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-05-28T07:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982141#M4860</link>
      <description>Inthe apache documentation at:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://httpd.apache.org/docs/env.html" target="_blank"&gt;http://httpd.apache.org/docs/env.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When suexec is used to launch CGI scripts, the environment will be cleaned down to a set of safe variables before CGI scripts are launched. The list of safe variables is defined at compile-time in suexec.c.&lt;BR /&gt;&lt;BR /&gt;I suspect the suexec is your problem.  You can modify the suexec.c file to allow ORACLE_HOME and re-compile apache, or launch your CGIs without using suexec.</description>
      <pubDate>Thu, 29 May 2003 00:39:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982141#M4860</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-05-29T00:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Apache configuration</title>
      <link>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982142#M4861</link>
      <description>Thanks a lot, Bill. problem solved!&lt;BR /&gt;</description>
      <pubDate>Thu, 29 May 2003 05:19:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/apache-configuration/m-p/2982142#M4861</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-05-29T05:19:45Z</dc:date>
    </item>
  </channel>
</rss>

