Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

server migration

Featured Replies

Hi,

I am migrating froxlor to a new debian 12 machine with a temporary IP, not a private IP.

What is the best practice as far as froxlor is concerned to keep froxlor working after its real IP is assigned?

Tia & regards,

Dudi

Solved by ikaRus

Go to solution

if you have migrated all the necessary (customer) files, web, mail, databases (including mysql-database) then simply install froxlor, use your old lib/userdata.inc.php credentials files.

  • Author

Thank you very much.

I'll update when this is done.

Regards,

Dudi

  • Author

Hi,

There are 2 users on the old server with lots of data, mostly media files.

I created the users on the new server and used rsync for the data migration.

Is there a way to migrate domains/users and email? I can rsync or imapsync the email if the users exist, looking for a better way.

TIA & regards,

Dudi

why add the users again to the new server? You are migrating - just sync all the databases to the new server and froxlor will have all the data it needs.

1) have empty new server, install basics like webserver, php and mysql-database

2) create and rsync /var/customers

3) stop mysql on both servers, then rsync /var/lib/mysql, start mysql again on new server

4) download and extract froxlor to /var/www/html/froxlor, move lib/userdata.inc.php from old server to new server

5) see https://forum.froxlor.org/index.php?/topic/21122-server-migration/#findComment-48145

  • Author

Looks straight forward.

I'll do that.

Thanks again,

Dudi

  • Author

I sent u a PM via your profile.

Dudi

  • Author

This is what I get trying to login:

Domain not configured

This domain requires configuration via the froxlor server management panel, as it is currently not assigned to any customer.

  • Please ask your provider/hoster if you have any questions.

Regards,

Dudi

then you are using the wrong domain, you have to use the domain specified in the installation process (FQDN)

  • Author

Off Corse.

But if I'll type the old servername it will take me there

I'll try to turn DNS off and trick it via /etc/hosts or something.

Thanks for the hint.

Regards,

Dudi

  • Author

Hi,

This was not simple,,, migrating to a new hostname and different versions of mariadb was interesting...

I got froxlor running on the new server with all domains/users and data migrated.

2 issues remains:

1 - I created 2 new IPs in the GUI, assigned the new IPs to all domains, deleted the :80 old record, but when trying to delete the :443 record I get a msg the its being used, and I can't find where.

2 - /var/www/http/froxlor is owned by www-data:www-data, I need to chown every 5 minutes to froxlorlocal:froxlorlocal due to a cron job that changes all back to www-data.

Help appreciated.

Regards,

Dudi

migrating to a new hostname and different versions of mariadb was interesting...

never had any issues with that

1 - I created 2 new IPs in the GUI, assigned the new IPs to all domains, deleted the :80 old record,

why? That's what adjust IP address via cli: https://docs.froxlor.org/latest/admin-guide/cli-scripts/#switch-server-ip was for.....1 command, 2 seconds, done

2 - /var/www/http/froxlor is owned by www-data:www-data, I need to chown every 5 minutes to froxlorlocal:froxlorlocal due to a cron job that changes all back to www-data.

Then you did not re-configure correctly or have mismatching settings that dont correspond to your setup

  • Author

I found the web server owner:group in settings and modified.

As for the old :443 port - I'll keep looking.

Regards,

Dudi

  • Author
  • Solution

Found & fixed.

  • Author

Hi,

Seems that I have a new issue.

Upon apache2 restart, systemctl status apache2.service shows:

Sep 11 02:50:42 stoli.kolcore.com apachectl[44765]: AH00543: apache2: bad user name dudig - This is my customer name in froxlor.

If I remove the conf file, I get an error msg that apache can't bind the address, but netstat does not have port 80 or 443.

Please help.

Regards,

Dudi

again, seems like the new system was not configured correctly (unknown user -> missing libnss-extrausers?)

  • Author

Hi,

libnss-extrausers is there.

I created the missing users, now the service status shows:

Sep 11 10:04:59 stoli.domain.com apachectl[9938]: (98)Address already in use: AH00072: make_sock: could not bind to address ip.ad.re.ss:443

But - both netstat & lsof say that port 443 is not in use.

I am considering wiping everything, do a fresh install and reconfigure if I can't resolve this.

Regards,

Dudi

no idea what exactly it is you did there...is this a fresh install or did you migrate cleanly the way I recommended?

The error message clearly says "Address already in use" which means there is something listening on that port (maybe check for Listen statements in all your vhost configs? maybe there are duplicates?)

  • Author

Yes - this is the migrated install, I tried recreating froxlor config files, it rebuilt all apache2 conf files, but the same error persists.

All *.conf files are freshly created by 'php bin/froxlor-cli froxlor:config-services --create'

The server was running fine, this happened without anyone logged in.

I think that the fastest solution is to wipe and redo the work.

Regards,

Dudi

no its not...also, froxlor:config-service just re-configures the services, did you also run froxlor:cron -fd to regenerate the vhosts etc?

  • Author

Yes I did

Then I doubt you've migrated 1:1 ...clearly something's off, without knowing what exactly was done, it's really hard to help

  • Author

Yes - I did.

  • Author

Another thing is that froxlor still tries to restart php7.4-fpm (from the migrated server) while this machine has php8.2-fpm which I restart manually for now.

I did not find where to adopt froxlor to the available php-fpm.

Regards,

Dudi

Create an account or sign in to comment

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.