Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
ahmad abuoun
copy Liferay portal from one machine to another
November 13, 2012 4:53 AM
Answer

ahmad abuoun

Rank: Junior Member

Posts: 31

Join Date: June 16, 2011

Recent Posts

Hi
when I copied application and database to another machine, everything run correctly except documents and images, it didn't appear.
how can I solve this issue.

regards
Hitoshi Ozawa
RE: copy Liferay portal from one machine to another
November 13, 2012 5:26 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

Copy the "data" folder to the new machine.
ahmad abuoun
RE: copy Liferay portal from one machine to another
November 13, 2012 6:15 AM
Answer

ahmad abuoun

Rank: Junior Member

Posts: 31

Join Date: June 16, 2011

Recent Posts

Hitoshi Ozawa, thanks for reply.
but I copied it with application and no result.
in document and media the folders and documents and images found , but I cant open it and when i try open or download it raise:


The requested resource was not found.
http://localhost:4020/documents/10180/18790/Q1_eng.pdf?version=2.0&t=1326637005150
Vilmos Papp
RE: copy Liferay portal from one machine to another
November 13, 2012 7:16 AM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Expert

Posts: 469

Join Date: October 21, 2010

Recent Posts

Have you checked that your data folder is located inside the application folder? You can find the settings in portal-ext.properties if you specified them .
Vilmos Papp
RE: copy Liferay portal from one machine to another
November 13, 2012 7:18 AM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Expert

Posts: 469

Join Date: October 21, 2010

Recent Posts

Also don't forget to reindex your indexes (if you haven't copied your lucene folder as well). Without it you can have empty search results e.g.: for users if you don't rely on db searches but index based searches.
ahmad abuoun
RE: copy Liferay portal from one machine to another
November 13, 2012 7:44 AM
Answer

ahmad abuoun

Rank: Junior Member

Posts: 31

Join Date: June 16, 2011

Recent Posts

Vilmos Papp
data folder is located with tomcat folder and deploy,logs,license folder
should I change where it located or not????

I didn't specify it in portal_ext.properties.
Vilmos Papp
RE: copy Liferay portal from one machine to another
November 14, 2012 12:28 AM
Answer

Vilmos Papp

LIFERAY STAFF

Rank: Expert

Posts: 469

Join Date: October 21, 2010

Recent Posts

Hm. Interesting, it should work then.

If you haven't changed, Liferay uses the FileSystemStore to store documents and images, what stores them inside {LIFERAY_HOME}/data/document_library folder. So if you moved them it should work.

Perhaps you can debug it whether you find the reason why it cannot load the physical file.