Menu

Strange install page

Help
2006-09-26
2013-06-05
  • Nathan Gibbs

    Nathan Gibbs - 2006-09-26

    I installed version 2.2 on my server, but when I try to load the install page for the first time, I get css & javascript code in my browser ?

    The server error log says

    [Tue Sep 26 12:09:23 2006] [error] [client 192.168.0.121] Can't read $DBI::err, last handle unknown or destroyed at closedShop.pm line 1698.
    [Tue Sep 26 12:09:23 2006] [error] [client 192.168.0.121] Can't read $DBI::errstr, last handle unkno wn or destroyed at closedShop.pm line 1698.

    I get the felling I am missing something here, but I don't know what.

     
    • Chris Fleizach

      Chris Fleizach - 2006-09-26

      Do you have the Perl DBI::* modules installed (DBI::mysql, DBI::DBD or something like that)? That's the only thing I can think of off the top of my head that would cause an error like that

       
    • Nathan Gibbs

      Nathan Gibbs - 2006-09-26

      I've gto DBI 1.20, but I am pulling the latest from CPAN now.  Thats the only thing I can think of too.

       
    • Chris Fleizach

      Chris Fleizach - 2006-09-26

      Searching google didn't help much... I assume mySQL is running and you can access it

      You might want to go to line 1698 and remove the following snippet

      "<BR>$DBI::err $DBI::errstr<BR><BR>"

      then run and you should at least be able to see what the error actually was

       
    • Nathan Gibbs

      Nathan Gibbs - 2006-09-26

      Yes, I have mysql installed & running.  I'm still fighting with perl.  I uninstalled the old DBI, but haven't got the new one to install yet.  Oh the joys of learning.! ;-)
      I'll keep you posted on my progress.

       
    • Nathan Gibbs

      Nathan Gibbs - 2006-09-27

      I uninstalled my old perl and installed 5.8.8, than DBI 1.5.2.
      Everything went fine there.

      Here is what my error log says
      [Tue Sep 26 23:37:25 2006] [error] [client 192.168.0.121] Can't locate loadable object for module DBI in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/DBI.pm line 259
      [Tue Sep 26 23:37:25 2006] [error] [client 192.168.0.121] BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/DBI.pm line 259.
      [Tue Sep 26 23:37:25 2006] [error] [client 192.168.0.121] Compilation failed in require at /var/www/woc/cgi-bin/closedShop2.2/Install.pl line 46.
      [Tue Sep 26 23:37:25 2006] [error] [client 192.168.0.121] BEGIN failed--compilation aborted at /var/www/woc/cgi-bin/closedShop2.2/Install.pl line 46.
      [Tue Sep 26 23:37:25 2006] [error] [client 192.168.0.121] Premature end of script headers: Install.p

      Its got to be soemthing simple, I just know it.  Back to the manuals.

       
      • Chris Fleizach

        Chris Fleizach - 2006-09-27

        It seems like your DBI install directory didn't go to the correct place

         
    • Nathan Gibbs

      Nathan Gibbs - 2006-09-30

      Yes, the solution was simple.
      The closedShop directory must be owned by the user that the web server runs as, usually apache.  This "MINOR" detail is not mentioned in the installation section of README.txt, but can be found in the COMMON_ERRORS.txt.
      In addition, DON'T use the permissions from COMMON_ERRORS.txt ( 777 ). Use the ones from README (755).  H'mm maybe COMMON_ERRORS is called that for a reason :-)
      Anyways, after that, the Install Page loaded, then failed to install, which led to chasing down a few problems with my perl installation. ( If the permissions on your perl libraries aren't 755 than your webserver can't see them. )  And now it works.  Thanks for your help.

       

Log in to post a comment.