Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Addition of directory to @INC variable via startup script/mod_perl: msg#00467

apache.mod-perl

Subject: Addition of directory to @INC variable via startup script/mod_perl

I currently have the following configuration in my httpd.conf file:
 
    PerlRequire /usr/local/apache/conf/startup.pl
    Alias /perl/ /usr/local/apache/cgi-bin
    PerlTaintCheck  On
    PerlWarn        On
    PerlFreshRestart On
    PerlTransHandler Apache::SessionManager
    PerlFreshRestart On
 
    <Location /perl>
    SetHandler      perl-script
    PerlSendHeader  On
    PerlHandler     Apache::Registry
    Options         ExecCGI
    </Location>
 
And here are the contents of the startup.pl script:
 
    #!/usr/bin/perl
 
    use strict;
 
    use lib qw(/usr/local/apache/require);
   
    use Apache::Registry();
    use CGI();
    use CGI::Session();
    use CGI::Carp();
    use DBI();
    use Net::LDAP();
 
    $ENV{MOD_PERL} or die "not running under mod_perl!";
 
    1;
 
When I stop/start the server and run a script with the following code:
 
    foreach $item (@INC) {
        print ($item . "<br>");
    }
 
I only get the output:
 
    /usr/local/lib/perl5/5.8.0/sun4-solaris
    /usr/local/lib/perl5/5.8.0
    /usr/local/lib/perl5/site_perl/5.8.0/sun4-solaris
    /usr/local/lib/perl5/site_perl/5.8.0
    /usr/local/lib/perl5/site_perl
    .
 
??  I can't seem to find any rhyme or reason why the directory "/usr/local/apache/require" isn't on the @INC array?
 
Any help is greatly appreciated.....according to all documentation I can find this should actually work.  I'm hoping that I'm doing something terribly stupid :).
 
thnx,
 
~j

 
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation