gbailey at lxpro.com
Tue Aug 26 14:47:46 UTC 2008
Jim Perrin wrote:
> On Tue, Aug 26, 2008 at 6:01 AM, Mad Unix <madunix at gmail.com> wrote:
>> i did the following, created a startup script
>> [pons at king script]$ cat start_apache.sh
>> NLS_LANG=AMERICAN_AMERICA.AR8MSWIN1256; export NLS_LANG
>> NLS_DATE_FORMAT=dd-mm-yyyy ; export NLS_DATE_FORMAT
>> export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH LD_LIBRARY_PATH_32
>> /usr/sbin/apachectl start
>> and call it from the rc.local...
> Which completely circumvents the usual process for starting up apache,
> and will be wiped away with a simple 'service httpd restart' or even
> better (the weekly logrotate), and require you to reboot the machine
> or call your script again. That might not be the *best* solution.
> Ian's previous post about setting variables in /etc/sysconfig/httpd is
> correct. Define the vars in /etc/sysconfig/httpd, and make sure you
> export them there.
> This is the intended use and the 'redhat' method.
Also, depending on whether or not you're invoking CGI scripts, etc., you
may need the following directive in your httpd.conf:
with one or more of the environment variables you set in the
/etc/sysconfig/httpd file mentioned above.
More information about the CentOS