OK, so I solved the problem. Yippee! My Apache conf was incorrect.

=========================
<IfModule mod_fcgid.c>
    DefaultInitEnv LD_LIBRARY_PATH /usr/local/instantclient_10_2
    DefaultInitEnv TNS_ADMIN /etc/oracle
</IfModule>

<VirtualHost *:80>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /home/username/myapp/public
    ServerName myapp.acme.com
    ServerAlias myapp
    ErrorLog logs/myapp.acme.com-error_log
    CustomLog logs/myapp.acme.com-access_log common

    # Taken from http://fastcgi.coremail.cn/configuration.htm#Ruby
    # and modified for Apache 2.2

    #SocketPath /tmp/fcgid_sock
    #SharememPath /tmp/fcgid_shm

    DefaultInitEnv RAILS_ENV production

    <Directory /home/username/myapp/public>
        Options ExecCGI FollowSymLinks
        AllowOverride AuthConfig Indexes Limit FileInfo Options
        Order allow,deny
        Allow from all

        AddHandler fcgid-script .fcgi

        FCGIWrapper "/usr/local/bin/ruby /home/username/myapp/public/
dispatch.fcgi" .fcgi

        RewriteEngine On
        RewriteRule ^$ index.html [QSA]
        RewriteRule ^([^.]+)$ $1.html [QSA]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
    </Directory>
</VirtualHost>
=========================

The "SetEnv" directives had no effect. The correct directive to use is
"DefaultInitEnv". Plus the following configuration information from
http://wiki.rubyonrails.com/rails/pages/HowToUseOracleWithFastCGI

Thanks for your patience!
/Kevin


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to