Phar Installer and redirection loop issue
Phar Installer and redirection loop issue
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?
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
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.
In the meantime you should be able to use the expanded installer, although I appreciate it would be nice to solve the issue anyway.
Not getting the answer you need? CMSMS support options
Re: Phar Installer and redirection loop issue
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.
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
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
Yes, also running Litespeed here.
-
- Forum Members
- Posts: 153
- Joined: Thu Jan 10, 2013 8:02 am
Re: Phar Installer and redirection loop issue
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!
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
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.
Edit: no more redirection loop issue with the installer.
Re: Phar Installer and redirection loop issue
Great, thanks for testing!
Re: Phar Installer and redirection loop issue
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?
According to the source : “Are cms spared from Y2K?”
Re: Phar Installer and redirection loop issue
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
I'll give it a try and get back to you if I have any more problems. Thanks for the clarification.
Last edited by y2k on Sat May 25, 2024 6:49 pm, edited 3 times in total.
According to the source : “Are cms spared from Y2K?”