|butterball||how do i configure perl/apache to include the path to the current perl script in the list of places to look when opening files using relative paths?|
what should i add to PERL5LIB
|Randal||what is "perl/apache"?|
|butterball||i'm executing a script from the browser http://domain.tld/script.pl and using a relative path to open a file ./stuff/temp but it can't find the file|
|Randal||you're using CGI?|
|butterball||unless i use the absolute path /var/www/vhost/domain.tld/stuff/temp|
|butterball||i guess so|
|Randal||you don't know?|
|butterball||let me look|
|action||Randal rolls eyes|
|action||Randal . o O (why do so many people try to get in over their head with web apps?)|
|Randal||. o O (why do so many people try to get in over their head with web apps?)|
and mod_perl is enabled too
|Randal||Uh, which is it then?|
scripts are run by CGI
|Randal||so why talk about mod_perl?|
which version of apache? 1 or 2?
|Randal||Hmm. I seem to recall that apache2 doesn't necessarily cd to the script|
is there anything weird going on like setuidwrapper?
or wahtever that's called?
|butterball||no just using HTTP::Cookies|
is suexec enabled?
that's good, because I'm never sure what that does to the script. :)
|Randal||did you try to print pwd from the script to see where it actually is?|
|action||CPAN upload: Data-Dumper-Again-0.0002 by FERREIRA|
|CPAN||upload: Data-Dumper-Again-0.0002 by FERREIRA|
|Randal||#!/bin/sh \n echo content-type: text/plain \n echo \n pwd|
something like that
|butterball||well i know where the script is|
but it doesn't
|Randal||Right, but you don't know what the pwd of the script is when it's running, do you?|