Phar Installer and redirection loop issue

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
creopard
Forum Members
Forum Members
Posts: 82
Joined: Fri Nov 10, 2017 10:25 am
Location: .de
Contact:

Phar Installer and redirection loop issue

Post 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?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1715
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Phar Installer and redirection loop issue

Post 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.
Not getting the answer you need? CMSMS support options
User avatar
creopard
Forum Members
Forum Members
Posts: 82
Joined: Fri Nov 10, 2017 10:25 am
Location: .de
Contact:

Re: Phar Installer and redirection loop issue

Post 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.
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 257
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

Re: Phar Installer and redirection loop issue

Post by Franck »

I also have this problem with PHP8+ and a host with Litespeed as server API. Is it your case too?
User avatar
creopard
Forum Members
Forum Members
Posts: 82
Joined: Fri Nov 10, 2017 10:25 am
Location: .de
Contact:

Re: Phar Installer and redirection loop issue

Post by creopard »

Yes, also running Litespeed here.
pierrepercee
Forum Members
Forum Members
Posts: 153
Joined: Thu Jan 10, 2013 8:02 am

Re: Phar Installer and redirection loop issue

Post by pierrepercee »

Hello,
Here perhaps
solution
User avatar
creopard
Forum Members
Forum Members
Posts: 82
Joined: Fri Nov 10, 2017 10:25 am
Location: .de
Contact:

Re: Phar Installer and redirection loop issue

Post 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!
User avatar
Franck
Dev Team Member
Dev Team Member
Posts: 257
Joined: Tue Jun 12, 2007 1:29 pm
Location: France

Re: Phar Installer and redirection loop issue

Post 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. 8)
User avatar
creopard
Forum Members
Forum Members
Posts: 82
Joined: Fri Nov 10, 2017 10:25 am
Location: .de
Contact:

Re: Phar Installer and redirection loop issue

Post by creopard »

Great, thanks for testing!
y2k
New Member
New Member
Posts: 1
Joined: Sat May 25, 2024 12:24 am

Re: Phar Installer and redirection loop issue

Post 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?
According to the source : “Are cms spared from Y2K?”
User avatar
creopard
Forum Members
Forum Members
Posts: 82
Joined: Fri Nov 10, 2017 10:25 am
Location: .de
Contact:

Re: Phar Installer and redirection loop issue

Post 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.
y2k
New Member
New Member
Posts: 1
Joined: Sat May 25, 2024 12:24 am

Re: Phar Installer and redirection loop issue

Post by y2k »

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?”
Post Reply

Return to “CMSMS Core”