Author
|
Topic: Host mapping folders (Read 3206 times)
|
niffer
Newbie

Posts: 3
|
Hi I don't know if this has been raised before but when I was installing emAlbum (which is great btw) I ran into an issue with setting $cgi_path.
My host maps its user directories in a slightly odd way which with env.cgi gives what I found to be misleading information. I.e. env.cgi threw up the following path:
/home/www/hosts/www.mydomain.com/cgi-bin
However, the absolute path to cgi-bin on my server is /home/www/username/cgi-bin
I resolved this by defining:
$cgi-bin_path = "/home/www/username/cgi-bin" as the mapping was screwing up the ENV variable settings.
Using the variable supplied by env.cgi didn't work.
You may well have come across this before. I'm new at perl so don't know if there's an easier solution. Just thought I'd raise it.
|
|
|
|
Eric
Administrator
    
Posts: 2761

|
 |
Re:Host mapping folders
« Reply #1 on: March 28, 2005, 01:56:22 PM »
|
Reply with quote
|
I have seen this issue before...it is due to misconfigured web servers. Try creating a test script with the following:
#!/usr/bin/perl
print "Content-type: text/html\n\n"; $this_file = __FILE__; print $this_file; |
|
Then chmod it to 755 and run it from your browser. See if it reports the correct path or not.
Thanks, Eric
|
|
|
|
niffer
Newbie

Posts: 3
|
 |
Re:Host mapping folders
« Reply #2 on: April 01, 2005, 01:47:41 AM »
|
Reply with quote
|
Um, thanks but isn't that just going to return the file name of whatever I call that snippet rather than the path?
As I said, it's not an issue as I tweaked the code, just wanted to make sure you were aware of it, which you are. I don't expect you to cater for my host's inability to map folders!
Cheers
|
|
|
|
Eric
Administrator
    
Posts: 2761

|
 |
Re:Host mapping folders
« Reply #3 on: April 01, 2005, 04:49:28 PM »
|
Reply with quote
|
It would return the entire path, which is why I suggested trying it...I am curious to see if Perl's interpretation of the path is the same as what the env.cgi script is reporting.
Thanks, Eric
|
|
|
|
niffer
Newbie

Posts: 3
|
 |
Re:Host mapping folders
« Reply #4 on: April 10, 2005, 05:32:34 PM »
|
Reply with quote
|
Apologies for the delay, I've been away on holiday. It just returns the file name which is odd.
Oh well, if it ain't broke...
|
|
|
|
|
|
|