Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

apache2 path question

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache DNS question  
Author Message
user2574

External


Since: Nov 26, 2003
Posts: 2



(Msg. 1) Posted: Wed Nov 26, 2003 12:41 pm
Post subject: apache2 path question
Archived from groups: alt>apache>configuration (more info?)

Hello,

i am using apache 2.0.48 with mod_perl 1.99.

when i try to read the content from a file with

<-------------->
$foo = 0;
open (SEARCHITEMS, "<../".$user.".searchitems");
while (<SEARCHITEMS>)
{
chomp();
@felder = split(/###/);
( $kategoriefeld[$foo], $suchbegriff[$foo] ) = ( $felder[0], $felder[1] );
$foo++;
}
close (SEARCHITEMS);
<---------------------->

it does not work with the relative path in the second row.
when i used:

<----------------------->
open (SEARCHITEMS, "</usr/local/apache2/htdocs/".$user.".searchitems");
<----------------------->

it works fine.

it seems that relative path are not allow.
how can i enable the use of relative paths in my scripts?

regard hendrik

 >> Stay informed about: apache2 path question 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed Nov 26, 2003 12:41 pm
Post subject: Re: apache2 path question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hendrik Mestenhauser <hendrik.mestenhauser DeleteThis @eex.de> wrote:
 > open (SEARCHITEMS, "<../".$user.".searchitems");
 > it does not work with the relative path in the second row.

From which directory are you executing it? Is it executed from the
cgi-bin dir or from what Apache think is the DocRoot or what?
I'd start to check what's the WD when the script is executed.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: apache2 path question 
Back to top
Login to vote
user2574

External


Since: Nov 26, 2003
Posts: 2



(Msg. 3) Posted: Wed Nov 26, 2003 1:24 pm
Post subject: Re: apache2 path question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.TakeThisOut@onlyforfun.net> schrieb im Newsbeitrag
news:bq1qgj$1tqgud$1@ID-18487.news.uni-berlin.de...
 > From which directory are you executing it?

this ist the entry from my httpd.conf
<------------------------------>
<Directory /usr/local/apache2/htdocs>
Options Indexes FollowSymLinks
</Directory>

<DirectoryMatch scripts>
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
PerlSendHeader On
Options +ExecCGI
AddType text/html .html
</DirectoryMatch>

i start from the /usr/local/apache2/htdocs/scripts Directory

regards hendrik<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: apache2 path question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
full path link required question - I have just migrated my site over to a new host's server (Apache) Only by adding the full path will links work . (.htm or .html etc) An example is on the old sever (Cobalt) I could link with www.tradetiler.com/knee now I have to link with ..

weird problem with URL path - Hi, I just run into a weird problem with my new updated apache server. If I type in http://mydomain.com/directory/ the server loads up the default index.htm just fine. But if I remove the back slash of the URL, ie. if I type..

adding document include path to working shtml config - adding document include path to working shtml config in Apache 1.3.x I have server side includes working but would like to set a path for include statements to look in --other than current directory--. i.e. If the #include file doesn't insist in....

[newbie]apache2.0 and PHP - hi all, red hat9 comes with apache2.0 pre-installed. I've just read at http://php.planetmirror.com/manual/en/install.apache2.php the following msg: "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows." can...

Umlaute in Apache2 - Hallo, I am using Apache2 on suse-linux 9.0. Now I have the problems, that apache can not send words with the letters 'ä,ü,ö' any more. It is not a problem of my browsers, it must be anything with the new apache. Who, can give me a tip please? tnx
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]