[opencms-dev] Installing OpenCMS and migrating data/settingsfromanother (older) installation

Stefanie Juliane Schmidt sjs at act-consulting.de
Wed Oct 14 15:02:53 CEST 2009


Dear Kai,

 

thank you very much for your quick response! It gave me a good idea, where
to head to, but I still have some questions/problems, as seen below.

 

  _____  

Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Schliemann, Kai
Gesendet: Mittwoch, 14. Oktober 2009 14:11
An: The OpenCms mailing list
Betreff: Re: [opencms-dev] Installing OpenCMS and migrating
data/settingsfromanother (older) installation

 

Hi Jane,

if you have used a MySQL-Database on your old server it is very easy.

[SJS] Yes, I have that. 

 

First of all, get rid of the opencms.war and the opencms directory on your
new servers webapp directory (CATALINA_HOME/webapps/)

[SJS] which one is the $CATALINA_HOME in my case? Is it /usr/share/tomcat5.5
or /var/lib/tomcat5.5 - or how do I find out? On the old server the variable
is not set, but 

Debian:/# find / -name webapps

returns 

/var/lib/tomcat5.5/webapps

On the new server the $CATALINA_HOME is /usr/share/tomcat5.5 If I change
that, I get an error message, when I try to start tomcat.

 

1.      Copy the opencms webapp (ROOT) from your old tomcat directory to the
new servers tomcat webapp directory (CATALINA_HOME/webapps/). If there
already is a ROOT-webapp, rename that one or move to a backup directory.

[SJS] There is none.

 

2.      Copy the opencms database from your old database directory to the
new servers database directory. (The safer way would be to do this via
mysqldump) 

[SJS] In the root-directory I just typed "mysqldump --opt -p --all-databases
> datensicherung.sql". That's the right approach, right?

 

3.      Change the db connection in the opencms.properties file. It is
located in the WEB-INF/config directory of your opencms webapp.

[SJS] I cannot find a "db connection" in that file, but a lot of entries
that start with "db.pool.default" Or did you mean those entries:

server.ethernet.address=.

server.name=OpenCmsServer

?

 

4.      Change the server connection in the opencms-system.xml as well.

[SJS]  Did you mean something like

      <sites>

      <workplace-server>http://www. . .de</workplace-server>

      <default-uri>/sites/default/</default-uri>

      <site server="http://www. ... .de" uri="/sites/default/"/>

? I cannot find any ip-adress in there, only URLs to websites, where the
current projects are.

 

5.      Restart Tomcat.

6.      Login to OpenCms and clear the flex cache and do a static export.

[SJS] With what code snippet could I do that?

 

After doing that, you will have a 1:1 copy of your old installation.

 

 

[SJS] Also I still got those problems: 

Another problem is: I checked
http://www.installationwiki.org/OpenCms#Check_Your_Configuration: When I try
to access localhost:8080, I get the message "Failed to Connect", whereas
localhost:80 works fine (I get a webpage, saying "It works!). How can I
adjust the firewall settings - assuming it is a firewall problem?

 

Also how do you read the documentation in
http://www.opencms.org/en/modules/downloads/dl_dochow_httpd_7.0.0.html.

As I downloaded it, I got a manifest.xml-file and some cryptic html-files,
which I don't know how to read.

 

Can anyone help with that?

Thanks a lot! 

 

Jane

 

 

Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] Im Auftrag von Stefanie Juliane
Schmidt
Gesendet: Mittwoch, 14. Oktober 2009 13:51
An: opencms-dev at opencms.org.
Betreff: [opencms-dev] Installing OpenCMS and migrating data/settings
fromanother (older) installation

 

Hello!

 

I have some problems in setting up OpenCms, and I hope someone on this list
could help me.

 

For my system: I use Debian and already installed Java and Tomcat, but I'm
still a newbie on Linux.

 

How can I migrate OpenCms to another server (where testings shall take
place)? I would like to set up everything on that new server exactly as on
the old one.

As it says on
http://www.opencms.org/en/development/installation/server.html#a4 I placed
the opencms.war in the folder CATALINA_HOME/webapps/. Restarting of
Tomcat5.5 created a directory /var/lib/tomcat5.5/webapps/opencms/, which now
contains the directories META-INF, setup and WEB-INF.

On the old server these and the directories resources and export are
contained in /var/lib/tomcat5.5/webapps/ROOT/.

Also $CATALINA_HOME is the path /usr/share/tomcat5.5 with me (I used the
script in http://www.installationwiki.org/OpenCms#Linux_Configuration, and
those *.sh's are all in that directory).

That's not how it's supposed to be, is it? How can I fix this?

And how should I import all the settings from the other (older) server?

 

Another problem is: I checked
http://www.installationwiki.org/OpenCms#Check_Your_Configuration: When I try
to access localhost:8080, I get the message "Failed to Connect", whereas
localhost:80 works fine (I get a webpage, saying "It works!). How can I
adjust the firewall settings - assuming it is a firewall problem?

 

Also how do you read the documentation in
http://www.opencms.org/en/modules/downloads/dl_dochow_httpd_7.0.0.html.

As I downloaded it, I got a manifest.xml-file and some cryptic html-files,
which I don't know how to read.

 

Thank you very much for your help!

Jane

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20091014/781f22ef/attachment.htm>


More information about the opencms-dev mailing list