emAlbum.com
Welcome, Guest. Please Login or Register.
 
News: All boards on this forum are being made "read only". If you have a question or issue regarding emAlbum, please contact me directly. -Eric
emAlbum Support  |  emAlbum Standard  |  Feedback (Moderator: Eric)  |  Topic: Host mapping folders « prev next »
Pages: [1] :: Go Down Reply :: Notify of replies :: Send the topic :: Print
   Author  Topic: Host mapping folders  (Read 3206 times)
niffer
Newbie
*

Posts: 3


Host mapping folders
« on: March 28, 2005, 12:18:22 PM »
Reply with quote

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.



Report to moderator   Logged
Eric
Administrator
*****

Posts: 2761

emalbum emartineds
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:

Code:
#!/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
« Last Edit: March 28, 2005, 01:56:49 PM by Eric » Report to moderator   Logged
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
Report to moderator   Logged
Eric
Administrator
*****

Posts: 2761

emalbum emartineds
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
Report to moderator   Logged
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...
Report to moderator   Logged
Pages: [1] :: Go Up Reply :: Notify of replies :: Send the topic :: Print 
emAlbum Support  |  emAlbum Standard  |  Feedback (Moderator: Eric)  |  Topic: Host mapping folders « prev next »
Jump to: 
Support Forum Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.