问题描述:

Liferay migration from one server to another help required. Can anyone share there steps for migration of Liferay portal 5.2.3 from one server to another. I am using Windows + Tomcat + MySql.

I have uploaded whole tomcat folder to the new windows machine and imported the database too with the corresponding change to the configuration file like Database details.

But after starting the tomcat server it is showing some error like "Unable to load repository http://plugins.liferay.com". Any idea why I am getting this error ?

网友答案:

These are the steps that I have followed and able to migrate the Liferay successfully:

  1. Take the backup of Liferay files and database from first windows machine.

  2. Install the same version of Liferay (Say Liferay 5.2.3) on second windows machine.

  3. Shut down Liferay.

  4. Import the database on new system.

  5. Add portal-ext.properties with relevant entries. (e.g Datbase Name, User Name , Pasword etc)

  6. Add \liferay-portal-5.2.3\data\document_library files from old machine.

  7. Start the tomcat. It will automtically do the rest.

NOTE: In the above method I have not deployed Theme and custom plugins etc, you have to deploy Theme and custom plugins also that are used on old system.

网友答案:

Lifery is trying to connect to plugin repository to find whether there are updates for plugins. Does your new machine have internet conectivity?

Also you have options to ignore that message or configure liferay not to check for updates. For later put in portal-ext.properties

plugin.repositories.trusted=
plugin.repositories.untrusted=

UPDATE:

If behind proxy create (if not existent) system-ext.properties (beside portal-ext.properties) and add

com.liferay.util.Http.proxy.host=proxy_host
com.liferay.util.Http.proxy.port=proxy_port

Change proxy_host and proxy_port with your values.

Also remove from portal-ext.properties if you want liferay to check repositories

plugin.repositories.trusted=
plugin.repositories.untrusted=
相关阅读:
Top