in reply to Unable to install CGI::Session on a hosted site

@INC not contains paths with cgi-bin
  • Comment on Re: Unable to install CGI::Session on a hosted site

Replies are listed 'Best First'.
Re^2: Unable to install CGI::Session on a hosted site
by cdarwall (Initiate) on Oct 08, 2007 at 02:10 UTC
    I removed the CGI::Session module folder from my cgi-bin directory, following your suggestions, and placed it in /public/perlmod/CGI with 755 (The public folder hangs from the root)

    However, I still get "Can't locate CGI/Session.pm in @INC (@INC contains: /public/perlmod/CGI.....

    I noticed in the boilerplate my ISP uses when loading SSH that (Quote)Your homedirectory begins at "/". Yet, "/etc" is a system directory. This can be a bit confusing at first. Your public directory is found at: /public and so on. If you are working with scripts using absolute, hard-coded paths and need to run them in the shell, consider using the environment variable "DOCUMENT_ROOT" in your code.
    This is always set properly and will work in the shell and when run through the webservers.(unquote)

    This explains why I placed /perlmod under /public. I am clueless when it comes to applying DOCUMENT_ROOT.

    If it helps at all the full path of my Web site on the server is: /services/webpages/m/y/mydomaine.com

    Thanks again