Author Topic: Album.pl new installation problem...  (Read 4403 times)

0 Members and 1 Guest are viewing this topic.

Offline Wildkarrde

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Album.pl new installation problem...
« on: August 09, 2006, 23:17:54 »
Hi, I tried searching for this issue, but each instance I pulled up was just a little different than my current issue (as far as I can tell).  I loaded up my album.pl installation and essentially kept the directory structure exactly as it came out of the zip file.  So, my album folder is on the rot (public_html)  Everything else went into the cgi-bin in ther respective directories.  I went through your list and CHMOD all the files appropriately. (I double checked them)  Here is what my album.cfg says as far as paths:

cgi_dir=/home/darned/public_html/cgi-bin
album_dir=/home/darned/public_html/album
cgi_web=http://www.darnedfunnystuff.com/cgi-bin
album_web=http://www.darnedfunnystuff.com/album
module_path=/home/darned/public_html/cgi-bin/Modules

I checked with my host and he agrees I have not made any typos there.

I get this error message when I run http://www.darnedfunnystuff.com/cgi-bin/album.pl

Can't locate album_display.pm in @INC (@INC contains: ./Modules /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /home/darned/public_html/album.pl line 1854.

For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

You can run the album_test.pl at the same location and you'll see that it tries to tell me it cannot find /album.pl  I find that interesting because the /album.pl looks to me like it is trying to find that file in my root.  Go figure.  The box this is on is a UNIX machine.  I sure hope you can help me.

Thanks,
Wildkarrde

MisterX

  • Guest
Re: Album.pl new installation problem...
« Reply #1 on: August 09, 2006, 23:45:46 »
Hello,

I encountered this problem.


Can't locate album_display.pm in @INC (@INC contains

The path I used for the modules was the absolute path in the server's file system.

What does yours say? I was unable to use a relative path off of the root... Maybe that will help.

For ex:

module_path
The full file system path to the module files used by album.pl. That is where album_admin.pm and others are located.   

I used:
D:/inetpub/virtual/username/wwwroot/album_files/cgi-bin/Modules


You are using:

module_path=/home/darned/public_html/cgi-bin/Modules

This is a relative path. You need to use the full path like my example above
« Last Edit: August 09, 2006, 23:49:50 by MisterX »

Offline Wildkarrde

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Album.pl new installation problem...
« Reply #2 on: August 10, 2006, 01:30:11 »
What I have listed is as full as it gets.  As I said, I checked with my ISP and he says the path is correct.  I have other perl scripts running and their paths are the same and they work just fine.  This is why this is so confusing to me.

MisterX

  • Guest
Re: Album.pl new installation problem...
« Reply #3 on: August 10, 2006, 05:37:31 »
uh - well that is the nature your problem. There is a full path which you need to supply.

You can drop a test.cgi into your cgi-bin folder which can tell you all the variables via a browser. Not sure if it works on a unix box.

Sample test.cgi contents below.

#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
print "<HTML><BODY BGCOLOR=white>\n";
print "<B>Local configuration:</B><BR><BR>\n";
print "
========================================================";
print "<BR><B>Environment:</B><BR><BR>\n";
for $name (sort keys %ENV) {  print "Variable: $name =" . $ENV{$name} . "<BR>\n"; }

print "<BR><BR>\n</BODY>\n</HTML>\n";




« Last Edit: August 10, 2006, 05:39:51 by MisterX »

Offline Wildkarrde

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Album.pl new installation problem...
« Reply #4 on: August 10, 2006, 12:02:38 »
The paths I have listed are the full paths.  Verified and double verified.  Of course album.pl still does not work.

MisterX

  • Guest
Re: Album.pl new installation problem...
« Reply #5 on: August 10, 2006, 12:29:46 »
The error says it cant find modules listed in the modules folder.

The example you give doesnt list any drive letter and one of the variables in question. That is key to it not being a full or absolute path. See my example with d:/folderpath/modules NOT /folderpath/modules

Good luck.
« Last Edit: August 10, 2006, 12:32:09 by MisterX »

Offline Wildkarrde

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Album.pl new installation problem...
« Reply #6 on: August 10, 2006, 12:58:54 »
Yes but on a UNIX box the path is not written as D:\blah\blah\balh.
The path is written as I have posted above.  On a Windows box that path you described would work perfectly.  It is not appropriate for my system.

MisterX

  • Guest
Re: Album.pl new installation problem...
« Reply #7 on: August 10, 2006, 13:01:20 »
Unix doesnt use drive letters?

This isnt a unix windows thing. It's a perl thing..........

However I just remembered that I also modified line 241 of Album.pl in order for this to go away.

   $::module_path="D:/inetpub/virtual/user/wwwroot/album_files/cgi-bin/Modules";


If nothing is working for you then you have nothing to lose by trying something similar.


http://perl.apache.org/docs/general/perl_reference/perl_reference.html#The__INC_array

The @INC array
@INC is a special Perl variable which is the equivalent of the shell's PATH variable. Whereas PATH contains a list of directories to search for executables, @INC contains a list of directories from which Perl modules and libraries can be loaded.

When you use(), require() or do() a filename or a module, Perl gets a list of directories from the @INC variable and searches them for the file it was requested to load. If the file that you want to load is not located in one of the listed directories, you have to tell Perl where to find the file. You can either provide a path relative to one of the directories in @INC, or you can provide the full path to the file.
« Last Edit: August 10, 2006, 13:20:40 by MisterX »

Offline Wildkarrde

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Album.pl new installation problem...
« Reply #8 on: August 11, 2006, 01:39:08 »
I didn't say UNIX didn't use drive letters.  I just said the path on a UNIX box (where I should have said THIS UNIX box) doesn't use drive letters in the path.  However I will ask my ISP about what you just said to see if he can throw me a bone.  Speaking of throwing me a bone, is Mike B. available for comment?  I'd be curious to see what you'd have to say about this issue if you have the time :)
Thanks,
Wildkarrde

MisterX

  • Guest
Re: Album.pl new installation problem...
« Reply #9 on: August 11, 2006, 01:47:12 »
I'd try uploading that script above to your web server and loading it in your browser at home. it might spew something useful. I never had to talk to my hosting company since I used that. I found out the paths and other variables I needed from it.

Variable: PATH_TRANSLATED =D:\inetpub\virtual\user\wwwroot\cgi-bin\serverinfo.cgi

I wish you luck and am willing to even assist :-)

Offline Wildkarrde

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Album.pl new installation problem...
« Reply #10 on: August 11, 2006, 10:10:06 »
Ok, I'm going to get that script above activated and check to see what it tells me and let you know.  I appreciate the offer for assistance, and it may come down to that, but let me see if I can get it going first :)  I never learn anything if I always have others do it for me.

Offline Wildkarrde

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Album.pl new installation problem...
« Reply #11 on: August 11, 2006, 22:09:21 »
waiting for my isp to tell me why this is but when I run that test.pl or album.pl file I get this error.  LOL  this is slowing driving me mad :P

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


--------------------------------------------------------------------------------

Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.8a PHP/5.1.2 mod_perl/2.0.2 Perl/v5.8.8 Server at www.darnedfunnystuff.com Port 80

Offline Wildkarrde

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Album.pl new installation problem...
« Reply #12 on: August 12, 2006, 00:11:31 »
Ok, I got this running now but I have one last little problem.

I type this in:
http://www.darnedfunnystuff.com/cgi-bin/album.pl?function=config

All this does is take me to my album.  I checked the album.cfg and set it to 777 to get into it but I cannot.  I have set function passwords, but do not know how to invoke them.  Maybe I was supposed to add them to that web address line above but I do not know how.  If one of you guys can tell me how I can get back into the configuration screen I'd appreciate it.  I have to adjust my template paths.
Thanks

MisterX

  • Guest
Re: Album.pl new installation problem...
« Reply #13 on: August 12, 2006, 00:49:15 »
To get in to the admin screen an example would be

http://www.darnedfunnystuff.com/cgi-bin/album.pl?function=PASSWORD


It should then load a slightly different screen with an orange section where you would want to click on  the "configuration management" button.

The internal 500 errors could have been a misconfiguration of permissions on files --> Chmod not done correctly? Not sure but you're past that and going down the final stretch :-)
« Last Edit: August 12, 2006, 00:54:31 by MisterX »

Offline Wildkarrde

  • album.pl User
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Album.pl new installation problem...
« Reply #14 on: August 12, 2006, 01:23:06 »
yes the 500 errors were CHMOD issues. :)  Thanks for the password help.  That worked :)