From alt36 at cam.ac.uk Mon Jul 10 15:54:27 2023 From: alt36 at cam.ac.uk (Adam Thorn) Date: Mon, 10 Jul 2023 15:54:27 +0100 Subject: [ZendTo] Support for custom mail headers References: <5b3d60c8-9190-a5e0-abdc-77d062725a97@cam.ac.uk> Message-ID: Would it be possible to add support for specifying custom mail headers to the mails sent by ZendTo? My specific use case is to be able to specify a header specific to Exchange Online which controls the sending of various out-of-office-type autoreplies.. https://learn.microsoft.com/en-us/openspecs/exchange_server_protocols/ms-oxcmail/ced68690-498a-4567-9d14-5c01f974d8b1 ..on the basis that I know that header is useful for many of my recipients. It looks like for PHPMailer one calls $mail->addCustomHeader() : https://phpmailer.github.io/PHPMailer/classes/PHPMailer-PHPMailer-PHPMailer.html#method_addCustomHeader whereas for php's mail() one just appends to the $header string that gets eventually passed to mail(). mail() expects a raw header line in the form 'Header-Name: Header-Value', whereas PHPMailer supports being called either with two arguments: $mail->addCustomHeader('Header-Name', 'Header-Value'); or with just a single argument of the same form that could be given directly to mail(): $mail->addCustomHeader('Header-Name: Header-Value'); Thus, it might be simpler to go for the second form and to have an optional array one could specify in the preferences of the form.. $prefs = array( ... 'extraMailHeaders' => array( 'My-First-Header: Foo', 'My-Second-Header: Bar', ), ... ); which can then either be immediately passed to addCustomHeader() or imploded and added to $headers, as appropriate. Regards, Adam From Peter.Zillmann at kzoo.edu Wed Jul 12 22:22:13 2023 From: Peter.Zillmann at kzoo.edu (Peter Zillmann) Date: Wed, 12 Jul 2023 21:22:13 +0000 Subject: [ZendTo] [Data migration from old installation] References: Message-ID: A few years ago Greg Clarke suggested a ZendTo server migration method using an alternate DNS name during a transition period (described here: http://mailman.ecs.soton.ac.uk/pipermail/zendto/2018-March/003161.html). One step Greg mentioned was to change the pickup URL delivered in the pickup notices. Could anyone suggest the best way to change this URL in the pickup notices? I see that I can change the serverRoot in preferences.php, but I suspect doing so would break other things. Would it make sense to hard-code the URL in dropoff_email_html.tpl and dropoff_email.tpl? Are there other places I should change it? I looked in request_email_html.tpl and request_email.tpl and they don?t seem to be laid out the same way. Caveat: PHP is not my first language. Gratefully, Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From tzimmerman at fsu.edu Thu Jul 13 15:04:15 2023 From: tzimmerman at fsu.edu (Travis Zimmerman) Date: Thu, 13 Jul 2023 14:04:15 +0000 Subject: [ZendTo] [Data migration from old installation] In-Reply-To: References: Message-ID: When we decided to change the hostname for our server running Zendto, I think all we ended up doing was set up a CNAME in DNS to point to the new hostname and then updated the anything related to the name in config directory files. You shouldn?t have to touch the templates for hostname change. Do you have a test VM you could try it out on first? I think as long as the URLs go somewhere and the server is configured to accept the old name and redirect to the new name, it should all work. I don?t remember having to muck about in the DB, just made changes in Apache configs and /opt/zendto/config. ------------------------------------------------------ Travis Zimmerman tzimmerman at fsu.edu 850-645-8030 Linux Enterprise Applications & Systems its-linuxadmins at fsu.edu Information Technology Services, Florida State University On Jul 12, 2023, at 5:22 PM, Peter Zillmann via ZendTo > wrote: A few years ago Greg Clarke suggested a ZendTo server migration method using an alternate DNS name during a transition period (described here: http://mailman.ecs.soton.ac.uk/pipermail/zendto/2018-March/003161.html). One step Greg mentioned was to change the pickup URL delivered in the pickup notices. Could anyone suggest the best way to change this URL in the pickup notices? I see that I can change the serverRoot in preferences.php, but I suspect doing so would break other things. Would it make sense to hard-code the URL in dropoff_email_html.tpl and dropoff_email.tpl? Are there other places I should change it? I looked in request_email_html.tpl and request_email.tpl and they don?t seem to be laid out the same way. Caveat: PHP is not my first language. Gratefully, Peter _______________________________________________ ZendTo mailing list ZendTo at zend.to https://urldefense.com/v3/__http://jul.es/mailman/listinfo/zendto__;!!PhOWcWs!zApwFSOEAvIK3ueudAMfdLBJ6AGP7fKQpd_Een8vjxu2QmPVQ5zfEqXA5_tr0x6Z8DTPiULLuvLZNMTP$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter.Zillmann at kzoo.edu Thu Jul 13 15:32:12 2023 From: Peter.Zillmann at kzoo.edu (Peter Zillmann) Date: Thu, 13 Jul 2023 14:32:12 +0000 Subject: [ZendTo] [Data migration from old installation] In-Reply-To: References: Message-ID: Thanks, Travis, that?s useful feedback. Maybe my memory was wrong about changing the hostname in the config. I?ll give it a shot on a test server and I?ll aim to report back. From: Travis Zimmerman Date: Thursday, July 13, 2023 at 10:04 To: ZendTo Users Cc: Peter Zillmann Subject: Re: [ZendTo] [Data migration from old installation] When we decided to change the hostname for our server running Zendto, I think all we ended up doing was set up a CNAME in DNS to point to the new hostname and then updated the anything related to the name in config directory files. You shouldn?t have to touch the templates for hostname change. Do you have a test VM you could try it out on first? I think as long as the URLs go somewhere and the server is configured to accept the old name and redirect to the new name, it should all work. I don?t remember having to muck about in the DB, just made changes in Apache configs and /opt/zendto/config. ------------------------------------------------------ Travis Zimmerman tzimmerman at fsu.edu 850-645-8030 Linux Enterprise Applications & Systems its-linuxadmins at fsu.edu Information Technology Services, Florida State University On Jul 12, 2023, at 5:22 PM, Peter Zillmann via ZendTo > wrote: A few years ago Greg Clarke suggested a ZendTo server migration method using an alternate DNS name during a transition period (described here: http://mailman.ecs.soton.ac.uk/pipermail/zendto/2018-March/003161.html). One step Greg mentioned was to change the pickup URL delivered in the pickup notices. Could anyone suggest the best way to change this URL in the pickup notices? I see that I can change the serverRoot in preferences.php, but I suspect doing so would break other things. Would it make sense to hard-code the URL in dropoff_email_html.tpl and dropoff_email.tpl? Are there other places I should change it? I looked in request_email_html.tpl and request_email.tpl and they don?t seem to be laid out the same way. Caveat: PHP is not my first language. Gratefully, Peter _______________________________________________ ZendTo mailing list ZendTo at zend.to https://urldefense.com/v3/__http://jul.es/mailman/listinfo/zendto__;!!PhOWcWs!zApwFSOEAvIK3ueudAMfdLBJ6AGP7fKQpd_Een8vjxu2QmPVQ5zfEqXA5_tr0x6Z8DTPiULLuvLZNMTP$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Peter.Zillmann at kzoo.edu Thu Jul 13 15:43:54 2023 From: Peter.Zillmann at kzoo.edu (Peter Zillmann) Date: Thu, 13 Jul 2023 14:43:54 +0000 Subject: [ZendTo] [Data migration from old installation] In-Reply-To: References: Message-ID: Though running through install.sh again I see this warning: I have set your 'serverRoot' value in preferences.php to 'serverRoot' => 'https://xyz.university.edu/' Be sure to check this is correct, or ZendTo will fail in strange ways. Let?s see what happens. From: Peter Zillmann Date: Thursday, July 13, 2023 at 10:32 To: Travis Zimmerman , ZendTo Users Subject: Re: [ZendTo] [Data migration from old installation] Thanks, Travis, that?s useful feedback. Maybe my memory was wrong about changing the hostname in the config. I?ll give it a shot on a test server and I?ll aim to report back. From: Travis Zimmerman Date: Thursday, July 13, 2023 at 10:04 To: ZendTo Users Cc: Peter Zillmann Subject: Re: [ZendTo] [Data migration from old installation] When we decided to change the hostname for our server running Zendto, I think all we ended up doing was set up a CNAME in DNS to point to the new hostname and then updated the anything related to the name in config directory files. You shouldn?t have to touch the templates for hostname change. Do you have a test VM you could try it out on first? I think as long as the URLs go somewhere and the server is configured to accept the old name and redirect to the new name, it should all work. I don?t remember having to muck about in the DB, just made changes in Apache configs and /opt/zendto/config. ------------------------------------------------------ Travis Zimmerman tzimmerman at fsu.edu 850-645-8030 Linux Enterprise Applications & Systems its-linuxadmins at fsu.edu Information Technology Services, Florida State University On Jul 12, 2023, at 5:22 PM, Peter Zillmann via ZendTo > wrote: A few years ago Greg Clarke suggested a ZendTo server migration method using an alternate DNS name during a transition period (described here: http://mailman.ecs.soton.ac.uk/pipermail/zendto/2018-March/003161.html). One step Greg mentioned was to change the pickup URL delivered in the pickup notices. Could anyone suggest the best way to change this URL in the pickup notices? I see that I can change the serverRoot in preferences.php, but I suspect doing so would break other things. Would it make sense to hard-code the URL in dropoff_email_html.tpl and dropoff_email.tpl? Are there other places I should change it? I looked in request_email_html.tpl and request_email.tpl and they don?t seem to be laid out the same way. Caveat: PHP is not my first language. Gratefully, Peter _______________________________________________ ZendTo mailing list ZendTo at zend.to https://urldefense.com/v3/__http://jul.es/mailman/listinfo/zendto__;!!PhOWcWs!zApwFSOEAvIK3ueudAMfdLBJ6AGP7fKQpd_Een8vjxu2QmPVQ5zfEqXA5_tr0x6Z8DTPiULLuvLZNMTP$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssilva at sgvwater.com Thu Jul 13 16:04:18 2023 From: ssilva at sgvwater.com (Scott Silva) Date: Thu, 13 Jul 2023 15:04:18 +0000 Subject: [ZendTo] [Data migration from old installation] In-Reply-To: References: <75bc130fa1214b21991c97efb123fa1a@sgvwater.com> Message-ID: I recently built a new server and I just copied the files and database over from the old one. That way I didn?t have to worry about expiring old files? From: ZendTo On Behalf Of Travis Zimmerman via ZendTo Sent: Thursday, July 13, 2023 7:04 AM To: ZendTo Users Cc: Travis Zimmerman ; Peter Zillmann Subject: Re: [ZendTo] [Data migration from old installation] CAUTION: This email originated from outside your organization. Exercise caution when opening attachments or clicking links, especially from unknown senders. When we decided to change the hostname for our server running Zendto, I think all we ended up doing was set up a CNAME in DNS to point to the new hostname and then updated the anything related to the name in config directory files. You shouldn?t have to touch the templates for hostname change. Do you have a test VM you could try it out on first? I think as long as the URLs go somewhere and the server is configured to accept the old name and redirect to the new name, it should all work. I don?t remember having to muck about in the DB, just made changes in Apache configs and /opt/zendto/config. ------------------------------------------------------ Travis Zimmerman tzimmerman at fsu.edu 850-645-8030 Linux Enterprise Applications & Systems its-linuxadmins at fsu.edu Information Technology Services, Florida State University On Jul 12, 2023, at 5:22 PM, Peter Zillmann via ZendTo > wrote: A few years ago Greg Clarke suggested a ZendTo server migration method using an alternate DNS name during a transition period (described here: http://mailman.ecs.soton.ac.uk/pipermail/zendto/2018-March/003161.html). One step Greg mentioned was to change the pickup URL delivered in the pickup notices. Could anyone suggest the best way to change this URL in the pickup notices? I see that I can change the serverRoot in preferences.php, but I suspect doing so would break other things. Would it make sense to hard-code the URL in dropoff_email_html.tpl and dropoff_email.tpl? Are there other places I should change it? I looked in request_email_html.tpl and request_email.tpl and they don?t seem to be laid out the same way. Caveat: PHP is not my first language. Gratefully, Peter _______________________________________________ ZendTo mailing list ZendTo at zend.to https://urldefense.com/v3/__http://jul.es/mailman/listinfo/zendto__;!!PhOWcWs!zApwFSOEAvIK3ueudAMfdLBJ6AGP7fKQpd_Een8vjxu2QmPVQ5zfEqXA5_tr0x6Z8DTPiULLuvLZNMTP$ -------------- next part -------------- An HTML attachment was scrubbed... URL: From douglagm at gmail.com Thu Jul 27 09:36:19 2023 From: douglagm at gmail.com (Gregg Douglas) Date: Thu, 27 Jul 2023 10:36:19 +0200 Subject: [ZendTo] Another Migration/upgrade of ZendTO References: Message-ID: Hi All, I have been neglecting the upgrade on my ZendTO server, it has now come time for me to bite the bullet. I have scoured the mailing lists for recommendations. From what I understand is there are two options: 1. Implement a new server and change the upload url and create a CNAME 2. Implement a new server copy data and DB across then upgrade the scheme of the DB I have tried both, but I can't seem to get either to work. Using option 1, I change the following: In the preference.php, I change the serverRoot option to the CNAME In the apache configuration, I also change to the CNAME Reboot server, just to make sure However I can't upload any files and get the following error message: Sorry, I failed to drop-off your files! Note that you cannot drop-off directories, only files. When I change the above back to the original settings everything works Using the option 2: Current server is 5.23-3 New server is 6.13-3 The DB is MySQL/MariaDB Comment out all cron jobs on new server I export the DB from the current server and import into the new server Then run the following script as suggested: /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php However I get the following error: PHP Warning: Undefined array key "authLDAPAdmins" in /opt/zendto/lib/NSSLDAPAuthenticator.php on line 70 Cleanup of ZendTo for preference file: /opt/zendto/config/preferences.php Updating database schema PHP Fatal error: Uncaught mysqli_sql_exception: Duplicate column name 'Passphrase' in /opt/zendto/lib/MySQL.php:889 Stack trace: #0 /opt/zendto/lib/MySQL.php(889): mysqli->query() #1 /opt/zendto/lib/MySQL.php(716): Sql->DBReqAddPassphrase() #2 /opt/zendto/sbin/cleanup.php(58): Sql->DBUpdateSchema() #3 {main} thrown in /opt/zendto/lib/MySQL.php on line 889 I really like option 1 as I can then also migrate the DB to the default DB, but at this point I would be happy to get either option working. Any assistance or guidance will be highly appreciated. Regards Gregg -------------- next part -------------- An HTML attachment was scrubbed... URL: From I.Elston at bolton.ac.uk Thu Jul 27 09:41:07 2023 From: I.Elston at bolton.ac.uk (Elston, Ian) Date: Thu, 27 Jul 2023 08:41:07 +0000 Subject: [ZendTo] Another Migration/upgrade of ZendTO In-Reply-To: References: Message-ID: I'm in a similar position - a wiser man than me (Jules) once suggested that this jump is a bit large to handle nicely, and the best thing would be to launch a new server, potentially with a new name to make that simpler. Our service has been called 'zendto' for years so I'm loathe to change it, which makes things trickier to swap over, running two in parallel etc. -----Original Message----- From: ZendTo On Behalf Of Gregg Douglas via ZendTo Sent: 27 July 2023 09:36 To: ZendTo Users Cc: Gregg Douglas Subject: [ZendTo] Another Migration/upgrade of ZendTO WARNING: This message originated from outside the University. Use caution when following links or opening attachments. Hi All, I have been neglecting the upgrade on my ZendTO server, it has now come time for me to bite the bullet. I have scoured the mailing lists for recommendations. From what I understand is there are two options: 1. Implement a new server and change the upload url and create a CNAME 2. Implement a new server copy data and DB across then upgrade the scheme of the DB I have tried both, but I can't seem to get either to work. Using option 1, I change the following: In the preference.php, I change the serverRoot option to the CNAME In the apache configuration, I also change to the CNAME Reboot server, just to make sure However I can't upload any files and get the following error message: Sorry, I failed to drop-off your files! Note that you cannot drop-off directories, only files. When I change the above back to the original settings everything works Using the option 2: Current server is 5.23-3 New server is 6.13-3 The DB is MySQL/MariaDB Comment out all cron jobs on new server I export the DB from the current server and import into the new server Then run the following script as suggested: /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php However I get the following error: PHP Warning: Undefined array key "authLDAPAdmins" in /opt/zendto/lib/NSSLDAPAuthenticator.php on line 70 Cleanup of ZendTo for preference file: /opt/zendto/config/preferences.php Updating database schema PHP Fatal error: Uncaught mysqli_sql_exception: Duplicate column name 'Passphrase' in /opt/zendto/lib/MySQL.php:889 Stack trace: #0 /opt/zendto/lib/MySQL.php(889): mysqli->query() #1 /opt/zendto/lib/MySQL.php(716): Sql->DBReqAddPassphrase() #2 /opt/zendto/sbin/cleanup.php(58): Sql->DBUpdateSchema() #3 {main} thrown in /opt/zendto/lib/MySQL.php on line 889 I really like option 1 as I can then also migrate the DB to the default DB, but at this point I would be happy to get either option working. Any assistance or guidance will be highly appreciated. Regards Gregg [University of Bolton] This email (and any attachments) is confidential and may contain personal views which are not the views of the University of Bolton unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose information in any way nor act in reliance on it and notify the sender immediately. Please note the University of Bolton monitors emails sent or received. Further communication will signify your consent to this. From douglagm at gmail.com Thu Jul 27 10:29:48 2023 From: douglagm at gmail.com (Gregg Douglas) Date: Thu, 27 Jul 2023 11:29:48 +0200 Subject: [ZendTo] Another Migration/upgrade of ZendTO In-Reply-To: References: Message-ID: Hi Ian, As I understand it: The new CNAME is only used for the Pickups. The users will still use the original name and the CNAME will only be valid for the period the pickups on the old server have expired and been deleted. Gregg On Thu, Jul 27, 2023 at 10:41?AM Elston, Ian wrote: > I'm in a similar position - a wiser man than me (Jules) once suggested > that this jump is a bit large to handle nicely, and the best thing would be > to launch a new server, potentially with a new name to make that simpler. > Our service has been called 'zendto' for years so I'm loathe to change it, > which makes things trickier to swap over, running two in parallel etc. > > > > -----Original Message----- > From: ZendTo On Behalf Of Gregg Douglas via > ZendTo > Sent: 27 July 2023 09:36 > To: ZendTo Users > Cc: Gregg Douglas > Subject: [ZendTo] Another Migration/upgrade of ZendTO > > WARNING: This message originated from outside the University. Use caution > when following links or opening attachments. > Hi All, > > I have been neglecting the upgrade on my ZendTO server, it has now come > time for me to bite the bullet. I have scoured the mailing lists for > recommendations. From what I understand is there are two options: > > 1. Implement a new server and change the upload url and create a CNAME > 2. Implement a new server copy data and DB across then upgrade the > scheme of the DB > > > I have tried both, but I can't seem to get either to work. > > Using option 1, I change the following: > > In the preference.php, I change the serverRoot option to the CNAME > > In the apache configuration, I also change to the CNAME > > Reboot server, just to make sure > > However I can't upload any files and get the following error > message: > > Sorry, I failed to drop-off your files! Note that you > cannot drop-off directories, only files. > > When I change the above back to the original settings everything > works > > > Using the option 2: > > Current server is 5.23-3 > > > New server is 6.13-3 > > > The DB is MySQL/MariaDB > > > Comment out all cron jobs on new server > > > I export the DB from the current server and import into the new > server > > > Then run the following script as suggested: /usr/bin/php > /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php > > > However I get the following error: > > > PHP Warning: Undefined array key "authLDAPAdmins" in > /opt/zendto/lib/NSSLDAPAuthenticator.php on line 70 > > > Cleanup of ZendTo for preference file: > > /opt/zendto/config/preferences.php > > > Updating database schema > > PHP Fatal error: Uncaught mysqli_sql_exception: Duplicate > column name 'Passphrase' in /opt/zendto/lib/MySQL.php:889 > > Stack trace: > > #0 /opt/zendto/lib/MySQL.php(889): mysqli->query() > > #1 /opt/zendto/lib/MySQL.php(716): > Sql->DBReqAddPassphrase() > > #2 /opt/zendto/sbin/cleanup.php(58): Sql->DBUpdateSchema() > > #3 {main} > > thrown in /opt/zendto/lib/MySQL.php on line 889 > > > I really like option 1 as I can then also migrate the DB to the default > DB, but at this point I would be happy to get either option working. > > Any assistance or guidance will be highly appreciated. > > Regards > Gregg > > > > > [University of Bolton] > > This email (and any attachments) is confidential and may contain personal > views which are not the views of the University of Bolton unless > specifically stated. If you have received it in error, please delete it > from your system. Do not use, copy or disclose information in any way nor > act in reliance on it and notify the sender immediately. Please note the > University of Bolton monitors emails sent or received. Further > communication will signify your consent to this. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssilva at sgvwater.com Thu Jul 27 15:43:14 2023 From: ssilva at sgvwater.com (Scott Silva) Date: Thu, 27 Jul 2023 14:43:14 +0000 Subject: [ZendTo] Another Migration/upgrade of ZendTO In-Reply-To: References: Message-ID: I have to admit I didn?t let mine get that far behind before I migrated? 5xx to 6xx is a big jump. From: ZendTo On Behalf Of Gregg Douglas via ZendTo Sent: Thursday, July 27, 2023 1:36 AM To: ZendTo Users Cc: Gregg Douglas Subject: [ZendTo] Another Migration/upgrade of ZendTO CAUTION: This email originated from outside your organization. Exercise caution when opening attachments or clicking links, especially from unknown senders. Hi All, I have been neglecting the upgrade on my ZendTO server, it has now come time for me to bite the bullet. I have scoured the mailing lists for recommendations. From what I understand is there are two options: 1. Implement a new server and change the upload url and create a CNAME 2. Implement a new server copy data and DB across then upgrade the scheme of the DB I have tried both, but I can't seem to get either to work. Using option 1, I change the following: In the preference.php, I change the serverRoot option to the CNAME In the apache configuration, I also change to the CNAME Reboot server, just to make sure However I can't upload any files and get the following error message: Sorry, I failed to drop-off your files! Note that you cannot drop-off directories, only files. When I change the above back to the original settings everything works Using the option 2: Current server is 5.23-3 New server is 6.13-3 The DB is MySQL/MariaDB Comment out all cron jobs on new server I export the DB from the current server and import into the new server Then run the following script as suggested: /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php However I get the following error: PHP Warning: Undefined array key "authLDAPAdmins" in /opt/zendto/lib/NSSLDAPAuthenticator.php on line 70 Cleanup of ZendTo for preference file: /opt/zendto/config/preferences.php Updating database schema PHP Fatal error: Uncaught mysqli_sql_exception: Duplicate column name 'Passphrase' in /opt/zendto/lib/MySQL.php:889 Stack trace: #0 /opt/zendto/lib/MySQL.php(889): mysqli->query() #1 /opt/zendto/lib/MySQL.php(716): Sql->DBReqAddPassphrase() #2 /opt/zendto/sbin/cleanup.php(58): Sql->DBUpdateSchema() #3 {main} thrown in /opt/zendto/lib/MySQL.php on line 889 I really like option 1 as I can then also migrate the DB to the default DB, but at this point I would be happy to get either option working. Any assistance or guidance will be highly appreciated. Regards Gregg -------------- next part -------------- An HTML attachment was scrubbed... URL: From douglagm at gmail.com Fri Jul 28 13:11:00 2023 From: douglagm at gmail.com (Gregg Douglas) Date: Fri, 28 Jul 2023 14:11:00 +0200 Subject: [ZendTo] Another Migration/upgrade of ZendTO In-Reply-To: References: Message-ID: Hi All, Where can I get the installation file for my older version: 5.23-3? I download this file, but it is not the installation, it is just files: https://zend.to/files/ZendTo-5.23-3.tgz There is no installation script. Regards Gregg On Thu, Jul 27, 2023 at 4:43?PM Scott Silva via ZendTo wrote: > I have to admit I didn?t let mine get that far behind before I migrated? > > 5xx to 6xx is a big jump. > > > > > > *From:* ZendTo *On Behalf Of *Gregg Douglas via > ZendTo > *Sent:* Thursday, July 27, 2023 1:36 AM > *To:* ZendTo Users > *Cc:* Gregg Douglas > *Subject:* [ZendTo] Another Migration/upgrade of ZendTO > > > > CAUTION: This email originated from outside your organization. Exercise > caution when opening attachments or clicking links, especially from unknown > senders. > > Hi All, > > > > I have been neglecting the upgrade on my ZendTO server, it has now come > time for me to bite the bullet. I have scoured the mailing lists for > recommendations. From what I understand is there are two options: > > 1. Implement a new server and change the upload url and create a CNAME > 2. Implement a new server copy data and DB across then upgrade the > scheme of the DB > > > > I have tried both, but I can't seem to get either to work. > > > > Using option 1, I change the following: > > In the preference.php, I change the serverRoot option to the CNAME > > In the apache configuration, I also change to the CNAME > > Reboot server, just to make sure > > However I can't upload any files and get the following error message: > > Sorry, I failed to drop-off your files! Note that you cannot drop-off > directories, only files. > > When I change the above back to the original settings everything works > > > > Using the option 2: > > Current server is 5.23-3 > > New server is 6.13-3 > > The DB is MySQL/MariaDB > > Comment out all cron jobs on new server > > I export the DB from the current server and import into the new server > > Then run the following script as suggested: /usr/bin/php > /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php > > However I get the following error: > > PHP Warning: Undefined array key "authLDAPAdmins" in > /opt/zendto/lib/NSSLDAPAuthenticator.php on line 70 > > > > Cleanup of ZendTo for preference file: > > /opt/zendto/config/preferences.php > > > > Updating database schema > > PHP Fatal error: Uncaught mysqli_sql_exception: Duplicate column name > 'Passphrase' in /opt/zendto/lib/MySQL.php:889 > > Stack trace: > > #0 /opt/zendto/lib/MySQL.php(889): mysqli->query() > > #1 /opt/zendto/lib/MySQL.php(716): Sql->DBReqAddPassphrase() > > #2 /opt/zendto/sbin/cleanup.php(58): Sql->DBUpdateSchema() > > #3 {main} > > thrown in /opt/zendto/lib/MySQL.php on line 889 > > > > I really like option 1 as I can then also migrate the DB to the default > DB, but at this point I would be happy to get either option working. > > > > Any assistance or guidance will be highly appreciated. > > > > Regards > > Gregg > > > > > > > > > _______________________________________________ > ZendTo mailing list > ZendTo at zend.to > http://jul.es/mailman/listinfo/zendto > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.v.sangster at abdn.ac.uk Fri Jul 28 14:07:35 2023 From: m.v.sangster at abdn.ac.uk (Sangster, Mark) Date: Fri, 28 Jul 2023 13:07:35 +0000 Subject: [ZendTo] Another Migration/upgrade of ZendTO In-Reply-To: References: Message-ID: Installer: https://zend.to/files/install.ZendTo.tgz Linked from here: https://zend.to/downloads#useinstaller There is also upgrade instructions here: https://zend.to/upgrade Cheers Mark From: ZendTo On Behalf Of Gregg Douglas via ZendTo Sent: 28 July 2023 13:11 To: ZendTo Users Cc: Gregg Douglas Subject: Re: [ZendTo] Another Migration/upgrade of ZendTO CAUTION: External email. Ensure this message is from a trusted source and exercise caution before clicking links/opening attachments. Hi All, Where can I get the installation file for my older version: 5.23-3? I download this file, but it is not the installation, it is just files: https://zend.to/files/ZendTo-5.23-3.tgz There is no installation script. Regards Gregg On Thu, Jul 27, 2023 at 4:43?PM Scott Silva via ZendTo > wrote: I have to admit I didn?t let mine get that far behind before I migrated? 5xx to 6xx is a big jump. From: ZendTo > On Behalf Of Gregg Douglas via ZendTo Sent: Thursday, July 27, 2023 1:36 AM To: ZendTo Users > Cc: Gregg Douglas > Subject: [ZendTo] Another Migration/upgrade of ZendTO CAUTION: This email originated from outside your organization. Exercise caution when opening attachments or clicking links, especially from unknown senders. Hi All, I have been neglecting the upgrade on my ZendTO server, it has now come time for me to bite the bullet. I have scoured the mailing lists for recommendations. From what I understand is there are two options: 1. Implement a new server and change the upload url and create a CNAME 2. Implement a new server copy data and DB across then upgrade the scheme of the DB I have tried both, but I can't seem to get either to work. Using option 1, I change the following: In the preference.php, I change the serverRoot option to the CNAME In the apache configuration, I also change to the CNAME Reboot server, just to make sure However I can't upload any files and get the following error message: Sorry, I failed to drop-off your files! Note that you cannot drop-off directories, only files. When I change the above back to the original settings everything works Using the option 2: Current server is 5.23-3 New server is 6.13-3 The DB is MySQL/MariaDB Comment out all cron jobs on new server I export the DB from the current server and import into the new server Then run the following script as suggested: /usr/bin/php /opt/zendto/sbin/cleanup.php /opt/zendto/config/preferences.php However I get the following error: PHP Warning: Undefined array key "authLDAPAdmins" in /opt/zendto/lib/NSSLDAPAuthenticator.php on line 70 Cleanup of ZendTo for preference file: /opt/zendto/config/preferences.php Updating database schema PHP Fatal error: Uncaught mysqli_sql_exception: Duplicate column name 'Passphrase' in /opt/zendto/lib/MySQL.php:889 Stack trace: #0 /opt/zendto/lib/MySQL.php(889): mysqli->query() #1 /opt/zendto/lib/MySQL.php(716): Sql->DBReqAddPassphrase() #2 /opt/zendto/sbin/cleanup.php(58): Sql->DBUpdateSchema() #3 {main} thrown in /opt/zendto/lib/MySQL.php on line 889 I really like option 1 as I can then also migrate the DB to the default DB, but at this point I would be happy to get either option working. Any assistance or guidance will be highly appreciated. Regards Gregg _______________________________________________ ZendTo mailing list ZendTo at zend.to http://jul.es/mailman/listinfo/zendto The University of Aberdeen is a charity registered in Scotland, No SC013683. Tha Oilthigh Obar Dheathain na charthannas cl?raichte ann an Alba, ?ir. SC013683. -------------- next part -------------- An HTML attachment was scrubbed... URL: