Help moving to a new server

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Henry1941
Registered User
Posts: 10
Joined: Wed Aug 17, 2022 2:58 pm

Help moving to a new server

Post by Henry1941 »

  • Server is Alma Linux 8.10
  • Running on VMware ESXi 6.0
  • Both servers are running Apache
  • Both servers are fully updated
  • I have root access to everything
  • Both servers are in my office, no CPanel, direct access
  • Both on the same subnet and on the same Proliant server
  • I am not a Linux or PHP guru. Novell and Windows
We could no longer load either of the two boards for very complicated reasons. The server has to be decommissioned. I logged into both servers as root and used Filezilla to copy the entire /var/www folder to the new computer. It's an identical build to the crashed one but with a different name and IP address.
Next, I dumped all the database files copied the dumps across with Filezilla and imported them into the new clean database.
I copied the /etc/httpd/conf.d files that run the two virtual Apache servers.
I have no idea of the version it must be located somewhere. If you need it, please tell me where to look for it.

Where do I go from here?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26846
Joined: Fri Aug 29, 2008 9:49 am

Re: Help moving to a new server

Post by Mick »

  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6335
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Help moving to a new server

Post by thecoalman »

Henry1941 wrote: Sun Oct 06, 2024 11:08 am I logged into both servers as root and used Filezilla ....
One thing to be aware of if you haven't already done so is to change the default mode in FileZilla to binary mode. phpBB stores attachments with no extensions. Every other FTP client on the planet defaults to binary mode for files without extensions(or unknown extensions) which can safely transfer binary or ASCII files. Filezilla defaults to ASCII which will corrupt binary files.

As far as the server configuration that is question best directed to Apache forum. Specifically with phpBB assuming same domain the only steps required should be to edit config.php if DB credentials changed and make sure the folders files/, store/ and images/avatars/upload are writable.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
exemplary1
Registered User
Posts: 211
Joined: Mon Feb 05, 2024 11:41 am

Re: Help moving to a new server

Post by exemplary1 »

thecoalman wrote: Mon Oct 07, 2024 10:39 am
One thing to be aware of if you haven't already done so is to change the default mode in FileZilla to binary mode. phpBB stores attachments with no extensions. Every other FTP client on the planet defaults to binary mode for files without extensions(or unknown extensions) which can safely transfer binary or ASCII files. Filezilla defaults to ASCII which will corrupt binary files.
Wow, you learn something new everyday. I just checked my Filezilla settings and while its set Auto by default, other two selected options below, indicates ASCII transfer in some cases. Thank you.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6335
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Help moving to a new server

Post by thecoalman »

If it's text file ASCII is fine. The issue is when you have file with no extension. Typically on a server a file with no extension is a text file but there is no reason it can't be a binary file either. You can safely transfer ASCII or binary files using binary which is why other FTP programs default to binary.

Why Filezilla has decided to to pick ASCII mode as default is really unexplainable. If you transferred the attachments without changing the default mode they are corrupt, at least any of them that are binary files like images.

You may ask why they would be stored like this and the answer is simple. It's for security. A file with executable code and no extension by default can't be executed. If for example there was some other break down in security and they could access the file directly with browser it won't be executed.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
Henry1941
Registered User
Posts: 10
Joined: Wed Aug 17, 2022 2:58 pm

Re: Help moving to a new server

Post by Henry1941 »

I've restored everything, and been through the config.php. There is no problem there at all because it's an exact copy of the one on the crashed machine and I double checked that the database is there and intact.

I type the URL into my border. (I've tried Firefox, Chrome and Brave) and I get a blank page. No error message nothing.

Remember I couldn't do any of the pre-move steps. it was already unloadable. A can edit the database if necessary.

What do I do now?
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6335
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Help moving to a new server

Post by thecoalman »

Create a text file called test.html with some text in it and upload to root of domain and try and access it with browser to make sure it's actually serving pages as expected.

White pages are usually indicative of php error, check the server error logs.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
Henry1941
Registered User
Posts: 10
Joined: Wed Aug 17, 2022 2:58 pm

Re: Help moving to a new server

Post by Henry1941 »

It seems to be Ok when I do that.

I have two virtual phpBB boards running on the same IP address on a VMware 60.0 ESCI server, the Virtual machine is an Alma Linux VM. The one give =s me a blank page and the other:

Index of

Favicon
User avatar
janus_zonstraal
Registered User
Posts: 6607
Joined: Sat Aug 30, 2014 1:30 pm

Re: Help moving to a new server

Post by janus_zonstraal »

Do you have a error log? Or can you add error logs?
Sorry! My English is bat ;) !!!
exemplary1
Registered User
Posts: 211
Joined: Mon Feb 05, 2024 11:41 am

Re: Help moving to a new server

Post by exemplary1 »

You need to activate error display on page. That would make easy to solve the problem. I don't know what's the setting for that. Someone might suggest here.
User avatar
Helter Skelter
Registered User
Posts: 176
Joined: Tue Jan 25, 2005 8:22 am
Location: integramod.com

Re: Help moving to a new server

Post by Helter Skelter »

Im not familiar with v3.3 error reporting but this should work.
OPEN
root/common.php
FIND

Code: Select all

if (!defined('IN_PHPBB'))
{
	exit;
}
AFTER ADD

Code: Select all

ini_set('display_startup_errors',1); 
ini_set('display_errors',1);
error_reporting(-1);
when your done, remove or comment out these lines because they will report everything

Return to “[3.3.x] Support Forum”