RE: How to change the site name

thumbnail
Cezariusz Marek, modified 9 Years ago. New Member Posts: 12 Join Date: 9/12/16 Recent Posts
I've started Liferay 7.0 GA3 bundled with Tomcat, changed database driver to PostgreSQL, and restarted. In the initial configuration wizard I've entered the site name with a non-English character, and for some reason it has been saved to the database with a wrong encoding.

How do I change the site name? I cannot find it anywhere. I've tried Control Panel -> Sites -> Sites -> Edit, but the site name is only on the black bar at top of the page, and there is no field to edit it. I've tried to search for the solution, but all answers were related to version 6, and they apparently do not apply to version 7.
thumbnail
Cezariusz Marek, modified 9 Years ago. New Member Posts: 12 Join Date: 9/12/16 Recent Posts
I've found it by accident, looking for something else: Control Panel -> Configuration -> Instance Settings -> Configuration -> General -> Name.
thumbnail
Devang Patel, modified 9 Years ago. Regular Member Posts: 247 Join Date: 1/19/15 Recent Posts
Hi Cezariusz Marek,

Go to Control Panel -> your site -> Configuration-> Site Settings.
There is one field called "Name".
Regards,
Devang
Virat sen, modified 9 Years ago. Junior Member Posts: 57 Join Date: 7/21/13 Recent Posts
Hi,

Click on the site name that you want to change -> Configuration ->Site Settings - Edit the name of the site..


Thanks,
VS
thumbnail
Cezariusz Marek, modified 9 Years ago. New Member Posts: 12 Join Date: 9/12/16 Recent Posts
Devang Patel, Virat sen,

Where do you see the field with the site name here?

.
thumbnail
Devang Patel, modified 9 Years ago. Regular Member Posts: 247 Join Date: 1/19/15 Recent Posts
Hi Cezariusz Marek,

The siteName which you edit is your default LR site.
You didn't mention that you want to change LR's default site Name(Instance), So I suggested for newly created site.
Refer the below screenshot for new site.

Regards,
Devang
thumbnail
Cezariusz Marek, modified 9 Years ago. New Member Posts: 12 Join Date: 9/12/16 Recent Posts
Devang Patel:

You didn't mention that you want to change LR's default site Name(Instance), So I suggested for newly created site.


I'm a novice user, I had no idea there is a difference between the default site and a new site. Thanks for trying to help though.
Muhammad Usman, modified 7 Years ago. New Member Posts: 16 Join Date: 9/27/18 Recent Posts
Hi,
Devang Patel

Do you know how to import resouces in LR's default site using resource importer. i f i create a new site they get imported but with my existing default site they are not getting imported. I am using Liferay DXP 7.1

Tom Aerts, modified 7 Years ago. New Member Posts: 17 Join Date: 8/25/17 Recent Posts
To Change the default site's name (LR 7.1), run this script under Server Admin > Script

import com.liferay.portal.kernel.service.*;
import com.liferay.portal.kernel.util.*;

result = GroupLocalServiceUtil.search(PortalUtil.getDefaultCompanyId(), null, "Liferay DXP", null, null, false, 0, 1).get(0);
company = CompanyLocalServiceUtil.getCompany(result.getCompanyId())
company.getAccount().setName("New Site Name")
company.getAccount().persist()
thumbnail
Omkar Khandare, modified 7 Years ago. Junior Member Posts: 49 Join Date: 3/7/12 Recent Posts
I have added all public pages into default site and it has lots of pages.
How can i change default site name in LR 7.0.6.

I can't see Script tab into Server Administration
thumbnail
Olaf Kock, modified 7 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Omkar KhandareI have added all public pages into default site and it has lots of pages.
How can i change default site name in LR 7.0.6.

I can't see Script tab into Server Administration
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
thumbnail
Mohamed Sideek, modified 6 Years ago. New Member Posts: 5 Join Date: 1/14/15 Recent Posts
Olaf Kock
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
In DXP 7.1 After I changed from "Control Panel / Configuration / Instance Settings. It's the first input field."  it's working fine but after restart the server it's back again as "Liferay DXP" so how I can fix this issue
thumbnail
Gnaniyar Zubair, modified 6 Years ago. Liferay Master Posts: 724 Join Date: 12/19/07 Recent Posts
Mohamed Sideek
Olaf Kock
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
In DXP 7.1 After I changed from "Control Panel / Configuration / Instance Settings. It's the first input field."  it's working fine but after restart the server it's back again as "Liferay DXP" so how I can fix this issue

It is  a weird issue. Please check the "Group" table in DB after changing the Site name. 
thumbnail
Mohamed Sideek, modified 6 Years ago. New Member Posts: 5 Join Date: 1/14/15 Recent Posts
Gnaniyar Zubair
Mohamed Sideek
Olaf Kock
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
In DXP 7.1 After I changed from "Control Panel / Configuration / Instance Settings. It's the first input field."  it's working fine but after restart the server it's back again as "Liferay DXP" so how I can fix this issue

It is  a weird issue. Please check the "Group" table in DB after changing the Site name. 

Please explain more check what in "Group" table
After I changed in "Control Panel" the name in "Account_" table changed correctly but after restart the server the old value back again in "Account_" table
thumbnail
Gnaniyar Zubair, modified 6 Years ago. Liferay Master Posts: 724 Join Date: 12/19/07 Recent Posts
Mohamed Sideek
Gnaniyar Zubair
Mohamed Sideek
Olaf Kock
Control Panel / Configuration / Instance Settings. It's the first input field.
For all other sites in their own settings.
In DXP 7.1 After I changed from "Control Panel / Configuration / Instance Settings. It's the first input field."  it's working fine but after restart the server it's back again as "Liferay DXP" so how I can fix this issue

It is  a weird issue. Please check the "Group" table in DB after changing the Site name. 

Please explain more check what in "Group" table
After I changed in "Control Panel" the name in "Account_" table changed correctly but after restart the server the old value back again in "Account_" table


Sorry i thought you are trying to change the Site name. ( subject of the title misguided )

OK got it, You are changing the instance name of the portal, then it should be changed in Account_ table. 

Please check the portal-ext.properties if any default instance name is mentioned? 
thumbnail
Mohamed Sideek, modified 6 Years ago. New Member Posts: 5 Join Date: 1/14/15 Recent Posts
I checked liferay code and I found the issue in "com.liferay.portal.properties.swapper.internal.DefaultCompanyNameSwapper" so I ovrride this property in Portal-ext "company.default.name=NewName" and should take affect but not working
thumbnail
Gnaniyar Zubair, modified 6 Years ago. Liferay Master Posts: 724 Join Date: 12/19/07 Recent Posts
Mohamed SideekI checked liferay code and I found the issue in "com.liferay.portal.properties.swapper.internal.DefaultCompanyNameSwapper" so I ovrride this property in Portal-ext "company.default.name=NewName" and should take affect but not working


Did you check removing the property from portal-ext and changing the name through control panel?
thumbnail
Mohamed Sideek, modified 6 Years ago. New Member Posts: 5 Join Date: 1/14/15 Recent Posts
I did and the same 
I found this issue explained here

LRDOCS-3366
Mohamed AbdAlghany, modified 6 Years ago. New Member Post: 1 Join Date: 6/6/18 Recent Posts
RE: How to change the site name
thumbnail
Amos Fong, modified 6 Years ago. New Member Posts: 5 Join Date: 1/14/15 Recent Posts
The issue fixed in
​​​​​​​
Liferay DXP 7.1 Fix Pack 10