Page 1 of 1
Phar Installer and redirection loop issue
Posted: Sat Jul 08, 2023 9:09 am
by creopard
Hello,
I know this issue came up a few times in the past and there was also a phar-testfile floating around
viewtopic.php?p=324232#p324232
Unfortunately this testfile is not available anymore.
My issue is that the phar install file only works with PHP7.4 and stops working from PHP8.0 (on the same host). With PHP8.0 or any higher version, I'm facing the infamous redirect loop.
How could I debug what the issue is?
Is there another testfile to check if there is any prerequisite missing?
Re: Phar Installer and redirection loop issue
Posted: Sat Jul 08, 2023 1:38 pm
by DIGI3
You should be able to find a Phar section in phpinfo if phar is installed/active. I'll see if we can get a phar test file and troubleshooting steps set up in a more permanent location.
In the meantime you should be able to use the expanded installer, although I appreciate it would be nice to solve the issue anyway.
Re: Phar Installer and redirection loop issue
Posted: Sat Jul 08, 2023 2:05 pm
by creopard
Unfortunately, you can't just edit the phar Installer file due to some checksum(?) checks.
Any (debug) changes to that file result in an instant phar error.
I wanted to find the cause of the indefinite 301 redirects.
Re: Phar Installer and redirection loop issue
Posted: Wed Apr 24, 2024 6:36 pm
by Franck
I also have this problem with PHP8+ and a host with Litespeed as server API. Is it your case too?
Re: Phar Installer and redirection loop issue
Posted: Wed Apr 24, 2024 6:40 pm
by creopard
Yes, also running Litespeed here.
Re: Phar Installer and redirection loop issue
Posted: Thu Apr 25, 2024 9:30 am
by pierrepercee
Hello,
Here perhaps
solution
Re: Phar Installer and redirection loop issue
Posted: Thu Apr 25, 2024 10:22 am
by creopard
Hello pierrepercee,
nice finding!
So one needs at leat PHP 8.2.16 or PHP 8.3.3 to have PHAR supporting litespeed.
PHP 8.1.x didn't get that fix!
Re: Phar Installer and redirection loop issue
Posted: Thu Apr 25, 2024 12:28 pm
by Franck
Good. I'm gonna try to run the installer on a PHP8.2.16+ version and come back here with the result.
Edit: no more redirection loop issue with the installer.

Re: Phar Installer and redirection loop issue
Posted: Thu Apr 25, 2024 2:55 pm
by creopard
Great, thanks for testing!
Re: Phar Installer and redirection loop issue
Posted: Sat May 25, 2024 12:29 am
by y2k
Hi everyone, I've been following your discussions regarding the redirection loop issue with PHP 8 and Litespeed. Have any of you encountered similar problems with other applications, or is it specific to the Phar installation file?
Re: Phar Installer and redirection loop issue
Posted: Sat May 25, 2024 1:17 pm
by creopard
As it was indeed a bug within PHP that has been fixed, probably many other applications were affected by this " phar + litespeed" issue.
Re: Phar Installer and redirection loop issue
Posted: Sat May 25, 2024 6:48 pm
by y2k
I'll give it a try and get back to you if I have any more problems. Thanks for the clarification.