Support

Akeeba Solo

#42978 ERR_TOO_MANY_REDIRECTS after successfull login

Posted in ‘Akeeba Solo’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
7.4
Akeeba Solo version
9.1

Latest post by nicholas on Friday, 29 May 2026 03:44 CDT

gvitry

EXTREMELY IMPORTANT: Please attach a ZIP file containing your Akeeba Backup log file in order for us to help you with any backup or restoration issue. If the file is over 10MiB, please upload it on your server and post a link to it.

 

Hello,

I used to have akeeba solo on a subdirectory of a Moodle installation. Was working very well.
Sometimes ago we made a lot of change on the server and moodle.
Since I did not check akeeba backup solo.
Sometime ago, I realized that nothing was working.

I've installed a new version and added the following on top of the.htaccess file to force the right php version to run (7.4) :
<FilesMatch \.php$>
SetHandler "proxy:fcgi://127.0.0.1:9009"
</FilesMatch>

The login page is displaying and working as expected. But as soon as the login is successfull, it displays an error (303) page with a too many redirections message.

I've tried a lot of changes without success including the help of IA.

Could you help me to find out the problem ? What kind of credentials you need ?

Thanks

Laurent

nicholas
Akeeba Staff
Manager

Start by removing all contents of the .htaccess file except for the code you said is used to change the PHP version.

Edit the file Solo/assets/private/config.php and set the live_site line to an empty string:

"live_site": "",

Then, try logging in again.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

gvitry

I have modified both files accordingly.
The behavior is still the same.
extract of the phpinfo.php file result I have added in the solo directory :

Server API FPM/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php-7.4
Loaded Configuration File /etc/php-7.4/php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)

Moodle itself is running php 7.3

Do you want me to delete and re-install a fresh version of "solo" ?

 

nicholas
Akeeba Staff
Manager

You can try to install Solo again, but I think you will run into the same problem. The .htaccess files cascade through filesystem directories. The .htaccess file from Moodle does take effect when you try to access Solo and since we have no control over its contents it might very well be causing the redirection you observe. I would indeed recommend creating a subdomain and install Solo in there. 

As per your host's documentation, they place subdomains' web root directories under the subdomains directory which is next to httpdocs, not under it. Therefore, the subdomains are isolated from the main site as far as .htaccess file cascading goes.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

gvitry

There is no .htaccess on the root's moodle installation.

So I created a subdomain on which I made a fresh new installation (9.1.3).

Everything went well. However the ak_ tables in the solo's db connections were already existing and it's retreving all the data from them (stats of past backups, users, profiles...).

I had to create a minimum .htaccess file to force php 7.4 to be used for solo.

If I click on "home" (url is : https://solo.mydomain.com/index.php?view=main) --> same error (too many redirect).

If I go back and click on manage backups (url is : https://solo.mydomain.com/index.php?view=manage ) --> it works as expected

So I logout and restart the script. After the successfull login, it redirects to view=main and it fall back to the same too many redirections error.

However, if I change the url to view=manage for example, it works as expected. I just can't display the main dashboard page...

It's only the view "main" which has this problem...

nicholas
Akeeba Staff
Manager

What you describe is not the behavior of the software I have released. There are no external redirects beyond form submission. 

If you are not logged in, visiting any URL –even one that would normally result in a 404– results in the login page being displayed. The login form submits to the /index.php?view=login&task=login URL which redirects you to /index.php?view=main. This is the only kind redirection that takes place: on form submission.

When you go to the / (or /index.php) URL there is no external redirection happening. The default view is main. If you do not specify a view in the URL, it displays the main view (control panel) WITHOUT redirecting you.

What exactly is the live_url you see in your config file?

What happens if you empty it as per my previous instructions?

What happens if you set it to https://solo.mydomain.com?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

gvitry

Maybe my explanations were not clear enough.
When I try to change the view in the url it works only if I'm successfully logged.

I'm just "mimic" what the menu does.

After login it redirects to the "main" url. If I change 'main' to 'manage' for example in the url, it shows the right page/data. Only because my session is ok. I'm connected.

If I logout and try to modify the url, for example : https://solo.mydomain.com/index.php?view=strange, it always show the login page and only this one.

The live_site parameter in config.php file was empty after installation. 
I've tried to set it to what you suggest but it does not change the behavior of the home page. I let it for now.

current file is so :

<?php die; ?>
{
"dbdriver": "Mysqli",
"dbhost": "localhost",
"dbuser": "moodle_log",
"dbpass": "xxxxxxxxx",
"dbname": "moodle_log",
"prefix": "akeeba_",
"dbencryption": false,
"dbsslcipher": "",
"dbsslca": "",
"dbsslkey": "",
"dbsslcert": "",
"dbsslverifyservercert": false,
"timezone": "Europe\/Paris",
"live_site": "https://solo.mydomain.com",
"session_timeout": "1440",
"fs": {
"driver": "file",
"host": "127.0.0.1",
"port": "21",
"username": "",
"password": "",
"dir": "\/",
"ssl": false,
"passive": true
},
"options": {
"frontend_secret_word": "",
"show_howtorestoremodal": 0
}
}

nicholas
Akeeba Staff
Manager

I understood you just fine. What I am saying is that the behavior you observe is NOT how the application works. Since it's not a case of the Host HTTP header not being passed correctly –that's what live_site works around– my only conclusion is that you have some other kind of server issue.

Maybe you are using a CDN, or your LiteSpeed with its fairly broken PHP implementation?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

gvitry

I've asked our hoster's support specialists to check our setup.
Before posting on this forum I made a lot of test'n try with the help of Claude.ai.

Here is it's final conclusion :


Pour revenir au problème Akeeba Solo — puisqu'on a épuisé les pistes côté serveur, la prochaine étape raisonnable serait de poster sur le forum Akeeba (https://www.akeeba.com/support.html) avec les éléments qu'on a collectés :

  • PHP-FPM FastCGI sur port 9009
  • Session correctement écrite sur disque avec user_id=1
  • Mais aucun Set-Cookie émis dans la réponse 303 du login
  • CentOS, Apache 2.4.6, PHP 7.4.30

C'est clairement un bug dans la gestion des headers lors de la redirection post-login dans leur framework AWF, reproductible dans cette configuration FastCGI spécifique.

Far to be sure it's correct but it may help ?

nicholas
Akeeba Staff
Manager

PHP uses its own session management. Developers do not set a session cookie manually; PHP does it automatically (it's the PHPSESSID cookie). Authentication (logging in) sets the appropriate information in the PHP session. Moreover, if you had a login issue you'd be redirected back to the login page where you would have to log in again. Further to that, you have said yourself that using a different view name works, i.e. you are logged in. Therefore, claiming that this is an authentication issue is quite obviously false as per the information that you have provided yourself.

Not to mention that you essentially claimed that this software has never worked in the 13 years that's been around and that both me developing and using this in production, as well as thousands of clients who use the software, are all morons who didn't notice the software doesn't work and can't be configured. I think I do not have to tell you how you sound making such a claim, through the voice of a generic AI chatbot that you fed wrong information and spat out bullshit in response – the cookie is obviously set in the HTTP 200 showing you the login form, not the post-login redirect which only updates the session data exactly like Joomla itself does...

I am afraid there is nothing more for me to do here.

The behavior you observe cannot be reproduced in a wide assortment of servers. I have tried servers I have set up myself –both local and on commercial server virtualisation services– as well as commercial hosting provisioned by Rochen. There is no such issue.

Further to that, the behavior you report is NOT congruent with the code we ship. However, since you explicitly reinstalled the latest published version of the software from its distribution package we can be certain that you are not using an outdated or modified version of the code.

Given the fact that this behavior has not been observed by anyone else in those past 13 years, cannot be reproduced in any of the dozens of environments we have access to, and has only be reported by you and for only this particular site we can say with absolute confidence that this is a problem that only has to do with your site, web server, or server environment configuration.

You have explicitly stated that you have used a subdomain whose web root is outside your main site's web root, and you have implied you have checked your subdomain web root's parent folder for any .htaccess files. Therefore, we have ruled out that this is a .htaccess cascading issue.

Further to that, you have explicitly stated that you are using a minimal .htaccess file which only has the three lines necessary to select your PHP version. Therefore, we conclude that this is not a .htaccess issue in general.

This leaves us with only one possibility: something in the configuration of your web server or your hosting environment.

Given the fact that we are not your host, we are objectively neither involved nor responsible for the configuration of your server, or any hosting, networking, and content delivery infrastructure which may be in place in front of your site. As a result, this issue is outside the scope of our support.

As per our Terms of Service, I am now closing this ticket for an issue that is outside our support scope as invalid.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!