My MAIB server may be irretrievably broken. None of the python scripts will run… at all. Web System Status Checks consistently return the message “Error: Something went wrong. Sorry.” PHP is also somehow corrupted. I got to the point where I simply tried the full install script: curl -s https://mailinabox.email/setup.sh | sudo -E bash
but the install broke at the point of installing RoundCube with the following:
PHP Warning: PHP Startup: Unable to load dynamic library 'apcu.so' (tried: /usr/lib/php/20170718/apcu.so (/usr/lib/php/20170718/apcu.so: undefined symbol: zend_string_init_interned), /usr/lib/php/20170718/apcu.so.so (/usr/lib/php/20170718/apcu.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'apc.so' (tried: /usr/lib/php/20170718/apc.so (/usr/lib/php/20170718/apc.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/apc.so.so (/usr/lib/php/20170718/apc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so' (tried: /usr/lib/php/20170718/imagick.so (/usr/lib/php/20170718/imagick.so: undefined symbol: zend_string_init_interned), /usr/lib/php/20170718/imagick.so.so (/usr/lib/php/20170718/imagick.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
ERROR: could not find driver
ERROR: Failed to connect to database
So I have decided that the only solution at this point is to set up a new box get everything working there then move it back to the old box. I use DigitalOcean cloud servers and I need to keep the current server/IP because I paid to have it whitelisted (an issue with DO’s IP addresses and dsbl blocking). I’m thinking that once I have the new box properly configured and all the data transferred over, I can do a simple snapshot to restore the existing server. Does any of that make sense?
My only problem is if I can’t manually run any of the python scripts, how do I get the existing data off the existing box to be able to transfer it all to the new box? What I’m most concerned with is whatever the database holds. I know I can do an rsync of the user-data directory. Will that be sufficient – especially if I run the python scripts on the new box to update?
Could someone please help walk me through the easiest way to do what I need? Thanks!!