New Install - The page isn't redirecting properly

I am trying to install Suitecrm 8.9.1 on Linux Mint 22.2 running on Virtualbox. When I enter the URL localhost/crm/public it runs install.php but throws up an error “The page isn’t redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”

I have found a couple of other people on this forum that have had this problem, but no solution has been posted. SuiteCRM 8.0.1 installation problems .

The network log shows NS ERROR REDIRECT LOOP

I am running Apache 2.4.58, PHP 8.3.6

You need to set your web server still public/ folder.

Hello Rufus,

Best to use a subdomain / domain (like local.crm or similar) and add it to your hosts file.
Then you can setup a standard VHost file for your Apache and won’t have any redirect / mod_rewrite / .htaccess issues.

Thanks. That fixed it.

Hi,

In your config.php / config_override.php, ensure:

$sugar_config[‘site_url’] equals the exact URL you’re serving the site under (e.g., https://crm.yourdomain.com)

$sugar_config[‘host_name’] matches the hostname (no mismatched trailing slash, etc.)

SuiteCRM 8 uses URL rewrites to serve the proper front controller from the public/ folder. If those rules are broken, missing, or overridden by a server configuration, your request can bounce around.

Ensure mod_rewrite is enabled (Apache) and allowed (AllowOverride All) for the SuiteCRM directory.

Confirm you’re using the public/ folder as your DocumentRoot in Apache/Nginx.

Don’t delete .htaccess files — SuiteCRM relies on them to direct traffic correctly.