Page Index Toggle Pages: [1] 2  ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) missing path.pm (Read 8681 times)
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
missing path.pm
Apr 30th, 2019 at 5:12am
Mark & QuoteQuote  
YaBB 2.6.12

I got the new server. not with the plesk, but with a completely unknown. Call yourself keyhelp.
Now, however, I still get this error message. The setup went through without problems.

Quote:
Can't locate Paths.pm in @INC (you may need to install the Paths module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at YaBB.pl line 39.
BEGIN failed--compilation aborted at YaBB.pl line 74.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: missing path.pm
Reply #1 - Apr 30th, 2019 at 1:00pm
Mark & QuoteQuote  
In Yabb.pl find:
Code (Perl)
Select All
 #use Cwd;
 #my $cwd = cwd();
 #push @INC, $cwd; 


and remove the '#' on all three lines.

Do the same for AdminIndex.pl

Also make sure your Paths.pm has full directory paths, not '.' or './'
This will be on the order of:
Code
Select All
/home/mysite/public_html/cgi-bin/yabb2 


Note that there's no '/' at the end.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: missing path.pm
Reply #2 - Apr 30th, 2019 at 6:47pm
Mark & QuoteQuote  
OK. I made the changes, the paths look very good and I attach them. The error message is the same. I made the changes and then re-setup. The result is the same. It was practically a new installation, with fresh variables. If you want to have FTP access, no problem. Tomorrow we have the first of May, holiday to Germany, Labor Day. I go fishing.

Code
Select All
###############################################################################
 # Paths.pm                                                                    #
 ###############################################################################
 # YaBB: Yet another Bulletin Board                                            #
 # Open-Source Community Software for Webmasters                               #
 # Version:        YaBB 2.6.12                                                 #
 # Packaged:       December 2, 2014                                            #
 # Distributed by: http://www.yabbforum.com                                    #
 # =========================================================================== #
 # Copyright (c) 2000-2016  YaBB (www.yabbforum.com) - All Rights Reserved.    #
 # Software by:  The YaBB Development Team                                     #
 #               with assistance from the YaBB community.                      #
 ###############################################################################

 $lastsaved = "Administrator";
 $lastdate = "1556648594";

 ########## Directories ##########

 $boardurl = "https://boardmod.de/cgi-bin/yabb2";  # URL of your board's folder (without trailing '/')
 $boarddir = "/home/users/boardmod/www/cgi-bin/yabb2"; # The server path to the board's folder (usually can be left as
                                                   #  '.')
 $boardsdir = "/home/users/boardmod/www/cgi-bin/yabb2/Boards"; # Directory with board data files
 $datadir = "/home/users/boardmod/www/cgi-bin/yabb2/Messages"; # Directory with messages
 $memberdir = "/home/users/boardmod/www/cgi-bin/yabb2/Members"; # Directory with member files
 $sourcedir = "/home/users/boardmod/www/cgi-bin/yabb2/Sources"; # Directory with YaBB source files
 $admindir = "/home/users/boardmod/www/cgi-bin/yabb2/Admin"; # Directory with YaBB admin source files
 $vardir = "/home/users/boardmod/www/cgi-bin/yabb2/Variables"; # Directory with variable files
 $langdir = "/home/users/boardmod/www/cgi-bin/yabb2/Languages"; # Directory with Language files and folders
 $helpfile = "/home/users/boardmod/www/cgi-bin/yabb2/Help"; # Directory with Help files and folders
 $templatesdir = "/home/users/boardmod/www/cgi-bin/yabb2/Templates"; # Directory with template files and folders
 $htmldir = "/home/users/boardmod/www/public_html/yabbfiles"; # Base Path for all public-html files and folders
 $facesdir = "/home/users/boardmod/www/public_html/yabbfiles/avatars"; # Base Path for all avatar files
 $uploaddir = "/home/users/boardmod/www/public_html/yabbfiles/Attachments"; # Base Path for all attachment files
 $pmuploaddir = "/home/users/boardmod/www/public_html/yabbfiles/PMAttachments"; # Base Path for all PM attachment files
 $modimgdir = "/home/users/boardmod/www/public_html/yabbfiles/ModImages"; # Base Path for all mod images

 ########## URLs ##########

 $yyhtml_root = "https://boardmod.de/public_html/yabbfiles"; # Base URL for all html/css files and folders
 $facesurl = "https://boardmod.de/public_html/yabbfiles/avatars"; # Base URL for all avatar files
 $uploadurl = "https://boardmod.de/public_html/yabbfiles/Attachments"; # Base URL for all attachment files
 $pmuploadurl = "https://boardmod.de/public_html/yabbfiles/PMAttachments"; # Base URL for all PM attachment files
 $modimgurl = "https://boardmod.de/public_html/yabbfiles/ModImages"; # Base URL for all mod images

 1;
  

  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: missing path.pm
Reply #3 - Apr 30th, 2019 at 10:29pm
Mark & QuoteQuote  
Yeah, I'm going to need FTP access so I upload a copy of env.pl and see what's happening.

Since the YaBB 2.6.12 Setup completed YaBB.pl should run with $cwd added to the @INC array.

You can also try replacing the
Code (Perl)
Select All
push @INC, $cwd;  


with
Code (Perl)
Select All
use lib "$cwd"; 

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: missing path.pm
Reply #4 - May 1st, 2019 at 2:25pm
Mark & QuoteQuote  
Got in and got it.

Apparently the Perl on your new server didn't like using the $cwd variable even though that bit of code is what's recommended by other perl Mongers dealing with '.' being disabled.

Deriving the proper path from $ENV{'SCRIPT_FILENAME'} worked. This is the fix that will be going into 2.6.12 on the SVN.

In YaBB.pl changing this:
Code (Perl)
Select All
     # Make sure the module path is present
     require Paths;
     push @INC, "$boarddir/Modules";

     if ( $ENV{'SERVER_SOFTWARE'} =~ /IIS/sm ) {
         $yyIIS = 1;
         if ( $PROGRAM_NAME =~ m{(.*)(\\|/)}xsm ) {
             $yypath = $1;
         }
         $yypath =~ s/\\/\//gxsm;
         chdir $yypath;
         push @INC, $yypath;
     }

     $yyexec      = 'YaBB';
     $script_root = $ENV{'SCRIPT_FILENAME'};
     if ( !$script_root ) {
         $script_root = $ENV{'PATH_TRANSLATED'};
     }
     $script_root =~ s/\/$yyexec\.(pl|cgi)//igxsm; 


to this:
Code (Perl)
Select All
    $script_root = $ENV{'SCRIPT_FILENAME'};
     if ( !$script_root ) {
         $script_root = $ENV{'PATH_TRANSLATED'};
     }
     $yyexec      = 'YaBB';
     $script_root =~ s/\/$yyexec\.(pl|cgi)//igxsm;
     push @INC, $script_root;

     # Make sure the module path is present
     require Paths;
     push @INC, "$boarddir/Modules";

     if ( $ENV{'SERVER_SOFTWARE'} =~ /IIS/sm ) {
         $yyIIS = 1;
         if ( $PROGRAM_NAME =~ m{(.*)(\\|/)}xsm ) {
             $yypath = $1;
         }
         $yypath =~ s/\\/\//gxsm;
         chdir $yypath;
         push @INC, $yypath;
     } 



I made related changes to AdminIndex.pl and managed to get a backup.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: missing path.pm
Reply #5 - May 1st, 2019 at 3:37pm
Mark & QuoteQuote  
Great, that works the new server. That was a lot of work and then find and test the right tool. Now I'll see what he says to yabb 2.7. The old server does not want to.
You can see how different Perl responds on other servers.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: missing path.pm
Reply #6 - May 1st, 2019 at 4:09pm
Mark & QuoteQuote  
Please PM me the FTP to where your 2.7 install is and I'll check it later today or tomorrow. It may be something simple that went wrong - or not.

I doubt the current build of 2.7 will work on your new server as the Perl installed on it doesn't like getting the required path using Cwd
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: missing path.pm
Reply #7 - May 1st, 2019 at 4:20pm
Mark & QuoteQuote  
That's crazy. The new server can be YaBB 2.7 and I got along with chmod 755.
However, he does not find the path here either. I am waiting for the SVN.

The same FTP data, again boardmod.

I could not even start the setup on the old server.

YaBB test is still on the old server. But I'll leave it that way, so that we have the certainty that YaBB 2.7 runs everywhere. Is of course no guarantee.

However, you have no chance with the new Plesk. (Web Admin Edition).


  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: missing path.pm
Reply #8 - May 1st, 2019 at 7:32pm
Mark & QuoteQuote  
I will probably have the changes in the SVN sometime this evening (my time).

I still think there was a folder ownership misconfiguration with the Plesk server set up.

Executables in the cgi-bin should run as 'nobody' (which is basically the same as 'everybody') and should 'own' all the files and folders it can find - which is why Perl scripts have the potential of so extremely dangerous in the hands of malicious people or people who don't know what they're doiing. (And why we have to be so careful to not allow bad code to get in from the outside.)

But if YaBB's script was trying to create a file or write to a file in a folder that was 'owned' by someone other than 'nobody' then it couldn't write or create the file.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: missing path.pm
Reply #9 - May 14th, 2019 at 8:41am
Mark & QuoteQuote  
I still get this error message.

Quote:
Can't locate Paths.pm in @INC (you may need to install the Paths module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at BackupFix.pl line 17.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: missing path.pm
Reply #10 - May 14th, 2019 at 12:22pm
Mark & QuoteQuote  
Find :
Code (Perl)
Select All
require Paths; 


add before:
Code (Perl)
Select All
 $script_root =~ s/\/BackupFix[.](pl|cgi)//igxsm;
 push @INC, $script_root; 



Oddly enough, this one didn't throw errors in 2.7 on your server.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: missing path.pm
Reply #11 - May 14th, 2019 at 4:38pm
Mark & QuoteQuote  
Now I get Internal Server Error. I'll send you the FTP data and the URL via PM. The error would certainly not occur if I could make a direct move from Plesk to Plesk. The forum went well for 4 years. If it can not be otherwise, then I put it on again. I do not want to extend the contract from the old server unnecessarily, it costs all the money.
I've set up a test domain on the new server so I can get it to work. Actually, I wanted to play YaBB 2.7, but the installation of the mods does not really work.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: missing path.pm
Reply #12 - May 14th, 2019 at 8:22pm
Mark & QuoteQuote  
My goof.  Smiley
Before the 'require Paths' it should be:
Code (Perl)
Select All
 our $script_root = $ENV{'SCRIPT_FILENAME'};
 if ( !$script_root ) {
     $script_root = $ENV{'PATH_TRANSLATED'};
 }
 $script_root =~ s/\/BackupFix[.](pl|cgi)//igxsm;
 push @INC, $script_root; 

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: missing path.pm
Reply #13 - May 15th, 2019 at 5:14pm
Mark & QuoteQuote  
Unfortunately it does not work either. But let it be good, I just reopened the forum. The problem is simple, the paths on the new server are very different. Even an adjustment did not work. YaBB 2.7 is now working. There I find in the endurance test so far no errors.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: missing path.pm
Reply #14 - May 31st, 2019 at 7:40am
Mark & QuoteQuote  
After the server change. YaBB 2.6.12. Could also be at 2.7. Pop up. Is not tested yet.

Quote:
Can't locate Paths.pm in @INC (you may need to install the Paths module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at Dobackup.pl line 35.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 2 
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
missing path.pm

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 10000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry