Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Hot Topic (More than 10 Replies) help needed with server migration (Read 412 times)
 
Paste Member Name in Quick Reply Box fd
New Member
*
Offline


I Love YaBB!

Posts: 9
Joined: Jan 22nd, 2024
Gender: Male
Zodiac sign: Capricorn
help needed with server migration
Jan 22nd, 2024 at 8:27am
Mark & QuoteQuote  
Hi, I am switching from hostgator to namecheap and they are having trouble getting the yabb forum up and running. They got the wikis and the php forum running no problem.

The forum is at: ozpolitic - com/forum/YaBB.pl. I am running yabb 2.5.2. The new server is at 162.0.230.155.

They initially had some problems, which they resolved by moving the Paths.pl file into the Modules folder (see quote below). The forum home page now loads OK, so long as you are not logged in. If you are logged in (the login must have transitioned from the old server) you get a partially loaded page with this message: "Unable to open ./Members/***.vars : Permission denied" where *** is the user name.

If you are not logged in, you can navigate to a board, but if you click on a thread you get another error message: "Unable to open ./Messages/1705792099.ctb
Verbose: Permission denied." Namecheap fixed that one by changing the file permission to 777, but I suspect it is a bad idea to go changing all the file permissions.

Any idea what is going on? I checked the file and folder permissions from the installation instructions and they all seem correct, except that a lot of pl files have 755 instead of 644.


Quote:
We have checked Apache error logs and located the following:

Can't locate Paths.pl in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 ./Modules) at /home/ozpolit/public_html/forum/YaBB.pl line 42.

BEGIN failed--compilation aborted at /home/ozpolit/public_html/forum/YaBB.pl line 56.



We have copied Paths.pl from /home/ozpolit/public_html/forum to /home/ozpolit/public_html/forum/Modules and the site became active.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: help needed with server migration
Reply #1 - Jan 22nd, 2024 at 2:32pm
Mark & QuoteQuote  
Quote:
/home/ozpolit/public_html/forum/YaBB.pl line 42.

BEGIN failed--compilation aborted at /home/ozpolit/public_html/forum/YaBB.pl line 56.



I don't have a copy of YaBB 2.5 on my current machine. Could you post lines 41 to 57 of your YaBB.pl? (or just zip up a copy of your YaBB.pl and attach it here?)
  

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


I Love YaBB!

Posts: 9
Joined: Jan 22nd, 2024
Gender: Male
Zodiac sign: Capricorn
Re: help needed with server migration
Reply #2 - Jan 22nd, 2024 at 8:04pm
Mark & QuoteQuote  
Thanks for taking a look Dandello. I have attached a bunch of the pl files.
  

20240123_transfer.7z ( 420 KB | 18 Downloads )
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box fd
New Member
*
Offline


I Love YaBB!

Posts: 9
Joined: Jan 22nd, 2024
Gender: Male
Zodiac sign: Capricorn
Re: help needed with server migration
Reply #3 - Jan 23rd, 2024 at 10:57pm
Mark & QuoteQuote  
That's odd. Yesterday I was able to view a thread where the ctb file permission had been changed to 777. Now when I try to load the same thread, I get this error:

Quote:
Untrapped Error :
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/^NoPost{ <-- HERE (\d+)}$/ at ./Sources/ExtendedProfiles.pl line 294. Compilation failed in require at ./Sources/Display.pl line 606.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: help needed with server migration
Reply #4 - Jan 23rd, 2024 at 11:17pm
Mark & QuoteQuote  
This is due to Perl deprecating some iffy code structures.
in ExtendedProfiles.pl find:
Code (Perl)
Select All
                elsif ( $group =~ m/^NoPost\{(\d+)}$/sm ) { 


and make it
Code (Perl)
Select All
                elsif ( $group =~ m/^NoPost\[{](\d+)}$/sm ) { 



As I recall this issue comes up in a number of places in old versions of Yabb. If you see the 'Unescaped left brace in regex is illegal here in regex;' you need to find the line, then find the '{' and change it to '[{]'
  

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


I Love YaBB!

Posts: 9
Joined: Jan 22nd, 2024
Gender: Male
Zodiac sign: Capricorn
Re: help needed with server migration
Reply #5 - Jan 23rd, 2024 at 11:21pm
Mark & QuoteQuote  
Thanks Dandello.

What am I getting myself into here? Would I be better asking for an older version of perl?
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: help needed with server migration
Reply #6 - Jan 23rd, 2024 at 11:33pm
Mark & QuoteQuote  
For the alleged Paths issue try:
in Yabb.pl find
Code (Perl)
Select All
      push(@INC, "./Modules"); 


just before it add
Code (Perl)
Select All
use lib '.'; 



The use of the '.' to designate the current working directory is no longer automatically added to the @INC list and has to be added in by hard code.
  

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


I Love YaBB!

Posts: 9
Joined: Jan 22nd, 2024
Gender: Male
Zodiac sign: Capricorn
Re: help needed with server migration
Reply #7 - Jan 24th, 2024 at 12:10am
Mark & QuoteQuote  
I have fixed a few lines in Extended profiles, so I can view the posts again now, after I change permission. But I am still getting permission denied errors. Is it dangerous to change all permissions to 777? I think I would have to do it to all the files in boards, members, messages and variables. Also, this allows me to reply to existing threads, but not start new ones, so it is probably not a workable solution.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box fd
New Member
*
Offline


I Love YaBB!

Posts: 9
Joined: Jan 22nd, 2024
Gender: Male
Zodiac sign: Capricorn
Re: help needed with server migration
Reply #8 - Jan 24th, 2024 at 12:15am
Mark & QuoteQuote  
Dandello wrote on Jan 23rd, 2024 at 11:33pm:
For the alleged Paths issue try:
in Yabb.pl find
Code (Perl)
Select All
      push(@INC, "./Modules"); 


just before it add
Code (Perl)
Select All
use lib '.'; 



The use of the '.' to designate the current working directory is no longer automatically added to the @INC list and has to be added in by hard code.


Thanks. This one fixed the issue with finding paths.pl. It's just the permission denied errors now. I suspect this must be some kind of setting on the server that affects perl accessing files.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box fd
New Member
*
Offline


I Love YaBB!

Posts: 9
Joined: Jan 22nd, 2024
Gender: Male
Zodiac sign: Capricorn
Re: help needed with server migration
Reply #9 - Jan 24th, 2024 at 2:02am
Mark & QuoteQuote  
Namecheap have resolved the permission error by doing this:

Quote:
We have installed mod_suexec for Apache to resolve the issue with the permissions since the processes are now running under cPanel user (not a 'nobody' user as previously).


Looks like I am up and running now.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box fd
New Member
*
Offline


I Love YaBB!

Posts: 9
Joined: Jan 22nd, 2024
Gender: Male
Zodiac sign: Capricorn
Re: help needed with server migration
Reply #10 - Jan 24th, 2024 at 2:32am
Mark & QuoteQuote  
Thanks for your assistance Dandello. I hope you get a chance to resurrect this software one day.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box fd
New Member
*
Offline


I Love YaBB!

Posts: 9
Joined: Jan 22nd, 2024
Gender: Male
Zodiac sign: Capricorn
Re: help needed with server migration
Reply #11 - Jan 24th, 2024 at 10:12am
Mark & QuoteQuote  
Dandello wrote on Jan 23rd, 2024 at 11:33pm:
For the alleged Paths issue try:
in Yabb.pl find
Code (Perl)
Select All
      push(@INC, "./Modules"); 


just before it add
Code (Perl)
Select All
use lib '.'; 



The use of the '.' to designate the current working directory is no longer automatically added to the @INC list and has to be added in by hard code.


FYI, I had to do this in AdminIndex.pl also.
  
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2235
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: help needed with server migration
Reply #12 - Jan 24th, 2024 at 1:48pm
Mark & QuoteQuote  
At least you're now up and running.  Smiley and a thumbs up.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
help needed with server migration

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 5000 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