Moving Dada Mail to Another Server

Post Reply
DennyP
Posts: 5
Joined: Fri Jul 31, 2020 3:13 am

Moving Dada Mail to Another Server

Post by DennyP » Sun Sep 20, 2020 12:11 am

Running Pro Dada version 11.11.0 8/06/20 .

I am migrating from a production to a test server which will become my production server after everything is transferred and tested.

I copied all the web files from the production server to the test server. I used phpmyadmin to verify the sql files got copied (20 of them) and are accessible. The file owner and permissions look correct (same as the production server). I spot checked a few files to ensure they got copied as Ascii text files, they did.

I got a 500 server error - The server encountered an internal error or misconfiguration and was unable to complete your request - when I went to: dennyptest.com/cgi-bin/dada/mail.cgi

Below is from the error log.

2020-09-19 19:07:29 Error 97.124.116.148 500 GET /cgi-bin/dada/mail.cgi HTTP/1.0 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36 Edg/85.0.564.51 3.11 K Apache SSL/TLS access

2020-09-19 19:07:29 Error 97.124.116.148 End of script output before headers: mail.cgi Apache error

Is there something else I need to do to be able to test on my new test server?

My guess is that I have to manually change some paths in a configuration file someplace because the domain name changed.

Thank you.

User avatar
dadamail
Site Admin
Posts: 33
Joined: Fri Nov 29, 2019 10:47 pm
Contact:

Re: Moving Dada Mail to Another Server

Post by dadamail » Tue Sep 22, 2020 9:04 pm

First, here's the guide on how to migrate:

https://dadamailproject.com/support/doc ... l.pod.html

Boils down to moving the .dada_files directory, moving the, "dada" directrory, and migrating the MySQL database. After that, just follow the upgrade instructions as usual.

You could also just do a clean install of Dada Mail on the new host using a new MySQL database. When that's all working, migrate the old database, drop back into the installer, and switch the configuration to use that just migrated database.

The error you're reporting is a file permissions problem, most likely on the mail.cgi script - that should be, "755".
Justin J
Creator, Dada Mail

frederickjh
Posts: 1
Joined: Tue Apr 21, 2020 7:25 am

Re: Moving Dada Mail to Another Server

Post by frederickjh » Mon Dec 07, 2020 2:09 pm

dadamail wrote:
Tue Sep 22, 2020 9:04 pm
You could also just do a clean install of Dada Mail on the new host using a new MySQL database. When that's all working, migrate the old database, drop back into the installer, and switch the configuration to use that just migrated database.
@dadamail, so when you say migrate the old database you don't mean import the migrated database to replace the one that was created by the Dada Mail installer? Or would that also work?

Thanks in advance for any help you can give!
Frederick

User avatar
dadamail
Site Admin
Posts: 33
Joined: Fri Nov 29, 2019 10:47 pm
Contact:

Re: Moving Dada Mail to Another Server

Post by dadamail » Wed Dec 09, 2020 7:10 am

frederickjh wrote:
Mon Dec 07, 2020 2:09 pm

@dadamail, so when you say migrate the old database you don't mean import the migrated database to replace the one that was created by the Dada Mail installer? Or would that also work?
Well, before you even run the installer, migrate the database over to the new host. In the installer, when it asks you to input the database and credentials you want to use, enter the database and credentials for the database you just migrated. The installer will notice that the database already exists, and you'll have to check an extra checkbox saying that, yes: this is what you mean to do.
Justin J
Creator, Dada Mail

Post Reply