I have been working for some days to migrate my osTicket installation from one server to another, due to changing server providers. I dumped the MySQL database to .sql file, copied the files, and then tried to set it up on the new server.
I have reviewed many support articles and tried it a few ways. On the new server, I created a new sql database of the same name and set up all permissions to a sql user with the same username and password. I imported the sql dump file and copied all files to the public_html folder where my apache2 daemon is using as the document root. When I try to load any .php file such as https://helpdeskstage.mydomain.com/index.php, the web browser tries about 10 times in succession to load the file and it stops due to a redirection loop, I believe.

access.log:
10.0.0.10 - - [06/Apr/2026:18:53:37 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:37 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:37 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:37 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:37 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:37 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:38 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
10.0.0.10 - - [06/Apr/2026:18:53:39 -0400] "GET /index.php HTTP/1.0" 302 325 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:148.0) Gecko/20100101 Firefox/148.0"
I am on helpdeskstage.mydomain.com for testing, but was previously on helpdesk.mydomain.com on the old server, but I don't imaging the domain name would matter.
When I try to load a static text file such as index.html, it works fine. It is only the .php files that have the problem.
old server:

new server:
Ubuntu Server 24.04
php 8.1 (was 8.4 and I downgraded to see if that would help, it did not.)
both running Apache2
Does anyone know what I did wrong?