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: 56
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: 1633
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: 56
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: 56
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: 56
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: 56
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!
Post Reply

Return to “CMSMS Core”