Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: CGI Problem
Date: Feb 18 1998 6:51PM

Hugh Caley wrote:
> I am attempting to access a Sybase 11 database using CGI.  The server is
> the latest non-beta Apache, Perl is 5.004_04, platform is Solaris 2.5.1,
> Sybperl is 2.09.
> I can run the script from the command line, and it works fine.  When I
> try to access it from the web, I get a #500 error, and the httpd log
> reads:
> The context allocation routine failed when it tried to load localization
> files!!
> One or more following problems may caused the failure
> Your sybase home directory is /sybase. Check the environment variable
> SYBASE if it is not the one you want!
> Cannot access file /sybase/config/objectid.dat

Here's your problem - it's probably a permission problem that
keeps the script from accessing this file when run as a CGI - in
particular if you've set things so that the scripts run
as user 'nobody'.

Michael Peppler       -||-  Data Migrations Inc.  -||-