Fix URL to point to correct host IP

I’m using Suitecrm docker container by Bitnami. Forgetting password gives me the following link.

http://localhost/index.php?entryPoint=Changenewpassword&guid=63d843c6-3489-6032-4d2d-642fb724b43d&key=63da539a-caec-5c0f-4483-642fb75877d1

I can replace localhost to the right IP address (hosted locally) and it will work. Where can I fix this?

If there are any bitnami container users here, not sure if it’s an environmental variable that defines this? If not, where can I modify this in the installation?

Hey
You need to fix the site_url parameter located inside the /config.php. Currently it would be something like “http://localhost” change it to the correct url. Do not put any trailing slashes in the url

I am using docker, and I save my volume in my NAS. I went to the folder, and I can see config.php in all these folders.

image

Any idea which I have to modify?

I see you are using suiteCRM 8.x
Your config.php should be in suitecrm_data\public\legacy\config.php

the parameter that you have to modify should look something like this
image

Wow! Thanks. I see it.

1 Like

Hi,
Everything was working with this kind of URL ( with custom port # ) in WSL2, SuiteCRM v. 8.1.2:
http://www.website.dom:8087/
I did replace localhost for www.website.dom:8087 in \var\www\crm\public\legacy\config.php:
‘site_url’ => ‘http://www.website.dom:8087’,

And now I’m getting this error for either previous or new value for ‘site_url’:

Oops! An Error Occurred

The server returned a “500 Internal Server Error”.

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

How to fix it, please.

Look for FATAL error messages in the logs

public/legacy/suitecrm.log
php_errors.log (in any directory where you find it, either root, or public, or public/legacy)
logs directory

Did 2 things and website is now back online, thanks.

  1. created /etc/wsl.conf:
    [automount]
    enabled=true
    options=metadata,uid=1000,gid=1000,umask=022

Restarted WSL

  1. Changed permission to 777:
    wsl sudo chmod -R 777 /var/www/crm/public/legacy/config.php