mazi-project / guides

MIT License
25 stars 2 forks source link

Changing domain for wordpress not possible. #21

Open ghost opened 5 years ago

ghost commented 5 years ago

If I change the domain for Mazi and try to do the same in Wordpress, Wordpress will break. Also I notice that all 'Installed Applications' keep the mazi domain. I do not see a way to change that.

panosnethood commented 5 years ago

Hi, yes this is a known issue discussed recently in the internal MAZI-tech mailing list. This is the latest answer by @mavridis92 which I plan to try out and update the wiki.

Any feedback welcome!

My solution is based on the structure of two different domains (portal.mazizone.eu/local.mazizone.eu ) we already use.

The former is the PORTAL DOMAIN which associated with the admin/user Portal interfaces, can be changed through the Networking page of the Admin interface.

Go to the Networking page of the Admin interface
Click the Edit Domain Portal button, and then change the domain of the portal

The latter is the APPS DOMAIN associated with mazizone applications, you can easily change it through the Applications page of the Admin interface.

But you'll need to take another step after that through the command line of the toolkit.

First, go to the Applications page of the Admin interface. For each application, click the Edit button, and then fill in the appropriate section with the domain you want, as shown in the screenshot below.

NOTE: Τhe APPS DOMAIN and the PORTAL DOMAIN must be different from each other

When you changed all application domains, you should set APPS DOMAIN in the hosts file. So,

Connecting via ssh to the toolkit (ssh pi@local.mazizone.eu)
Open the /etc/hosts file (nano /etc/hosts)
Specify the new APPS DOMAIN at the bottom of the file