Installing OpenCMS and migrating data/settings from another (older) installation

View: New views
7 Messages — Rating Filter:   Alert me  

Installing OpenCMS and migrating data/settings from another (older) installation

by Stefanie Juliane Schmidt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

Re: Installing OpenCMS and migrating data/settings fromanother (older) installation

by Kai Schliemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Jane,

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

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

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.

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)

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

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

5.       Restart Tomcat.

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

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

 

HTH

Regards

_________________________________________

  

Kai Schliemann

Senior IT-Berater

   

comundus GmbH

Schüttelgrabenring 3, D-71332 Waiblingen

Telefon +49 7151-50028-0

E-Mail g.maas@...

Internet www.comundus.com

 

Geschäftsführer Klaus Hillemeier  

Amtsgericht Stuttgart, HRB 264290

        

comundus ist ein Unternehmen der IT EXCELLENCE Group

_________________________________________

 

Von: opencms-dev-bounces@... [mailto:opencms-dev-bounces@...] Im Auftrag von Stefanie Juliane Schmidt
Gesendet: Mittwoch, 14. Oktober 2009 13:51
An: opencms-dev@....
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



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

Re: Installing OpenCMS and migrating data/settingsfromanother (older) installation

by Stefanie Juliane Schmidt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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@... [mailto:opencms-dev-bounces@...] 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@... [mailto:opencms-dev-bounces@...] Im Auftrag von Stefanie Juliane Schmidt
Gesendet: Mittwoch, 14. Oktober 2009 13:51
An: opencms-dev@....
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



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

Re: Installing OpenCMS and migratingdata/settingsfromanother (older) installation

by Kai Schliemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Jane,

 

Hi Jane,

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

[SJS] Yes, I have that.

[KS] Good.

 

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

[KS] On your old server I guess $CATALINA_HOME is /var/lib/tomcat5.5/webapps then. Your OpenCms installation should be in the ROOT directory (This is the one you have to copy).

 

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.

[KS] Why do you want to change it?  I think that is not necessary.

 

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.

[KS] Great. So just copy the ROOT-webapp from your old server to your new server.

 

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?

[KS] It would be good to just dump the OpenCms database. The syntax is similar:  mysqldump --opt db_name > backup-file.sql

 

 

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

?

[KS] Have a look for the following lines:  

# URL of the JDBC driver

db.pool.default.jdbcUrl=jdbc:mysql://SERVERNAME:3306/DB_NAME

 

...

...

 

# user name to connect to the database

db.pool.default.user=USERNAME

 

# password to connect to the database

db.pool.default.password=PASSWORD

 

 

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.

[KS] Yes, that is correct. If you are accessing your new server via IP, you can type an IP address in there.

 

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?

[KS] You can choose them from the Administration view in OpenCms. Look for “Flex Cache Administration” and “Database Management”.

 

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?

[KS] Check in your tomcat’s server.xml file, if the connection port is set to 8080 (Search for 8080) in that file).

Concerning firewalls I can just say that you have to let http connections on port 8080 through. Maybe you can disable it for testing?

 

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.

[KS] There are helpful resources which explain how to connect Tomcat /OpenCms and Apache. Have a look at http://www.opencms-wiki.org/Opencms_as_/_with_Apache_%2B_mod_jk_%28or_mod_proxy%29.

Maybe you don’t need that for your testing environment?

 

HTH

Kai

 

Can anyone help with that?

Thanks a lot!

 

Jane

 

 

Von: opencms-dev-bounces@... [mailto:opencms-dev-bounces@...] Im Auftrag von Stefanie Juliane Schmidt
Gesendet: Mittwoch, 14. Oktober 2009 13:51
An: opencms-dev@....
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



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

Re: Installing OpenCMS and migratingdata/settingsfromanother (older) installation

by Stefanie Juliane Schmidt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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

 

[SJS]  Hi Kai,

thank you very much for your help!

 

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

[SJS] Done.

 

[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

[KS] On your old server I guess $CATALINA_HOME is /var/lib/tomcat5.5/webapps then. Your OpenCms installation should be in the ROOT directory (This is the one you have to copy).

 

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.

[KS] Why do you want to change it?  I think that is not necessary.

[SJS] I wanted to do that, because I wanted to put the ROOT directory in /var/lib/tomcat5.5/webapps, as it is on the old server; but on the other side, I should put it in CATALINA_HOME/webapps/, where CATALINA_HOME would be /usr/share/tomcat5.5, which is why I wanted to change the path for CATALINA_HOME. But I just discovered, that the first points to the latter, so that it effectively doesn’t matter.

 

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] Done.

 

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?

[KS] It would be good to just dump the OpenCms database. The syntax is similar:  mysqldump --opt db_name > backup-file.sql
[SJS] mysqldump --opt -p opencms > backup-file.sql done. Just out of curiosity and that I know it next time: why is it better not to copy all databases at once?

 

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

?

[KS] Have a look for the following lines:  

# URL of the JDBC driver

db.pool.default.jdbcUrl=jdbc:mysql://SERVERNAME:3306/DB_NAME

 

...

...

 

# user name to connect to the database

db.pool.default.user=USERNAME

 

# password to connect to the database

db.pool.default.password=PASSWORD

 

 

[SJS] I changed username and password and left

# URL of the JDBC driver

db.pool.default.jdbcUrl=jdbc:mysql://localhost:3306/opencms

 

the same, because the name of the db is the same, also that it’s on the same machine as tomcat. Is that the right procedure?

Do I need to change the “server.ethernet.adress”, too? That one is in Hex there, and ifconfig tells me a hexadress only for the hardware adress, so is this that what I need to put in there?

 

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.

[KS] Yes, that is correct. If you are accessing your new server via IP, you can type an IP address in there.

[SJS] Mmh, that is a little bit tricky: the old server is the one the websites lie on now, and that server will continue to run. The new server is just for testing purposes, that is, I want to change websites on that server, test if everything works out fine and deploy them to the old web server, without changing of addresses.

So should I leave the opencms-system.xml as-is and copy the /var/lib/tomcat5.5/conf/server.xml to the new server and e.g. change the Ports in the following part to something else?:

<!—Website www. … .de -->

    <Connector port="8189" maxHttpHeaderSize="8192"

               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

               proxyName="www.actsystems.de" proxyPort="80"

               enableLookups="true" redirectPort="8443" acceptCount="100"

               connectionTimeout="20000"

               useURIValidationHack="false"

               disableUploadTimeout="true" />

          Or should I change the server connection to

          <mailhost name="localhost" protocol="smtp" user="..." password="..."/>

       ...

       <sites>

      <workplace-server>http://localhost:8080</workplace-server>

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

      <site server="http://localhost:8080" uri="/sites/default/"/>

       </sites>

as the websites will be on the same machine as tomcat? I’m confused, because I’m still really new to Linux, and even newer to OpenCms and I think I’m just missing something really obvious.

 

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?

[KS] You can choose them from the Administration view in OpenCms. Look for “Flex Cache Administration” and “Database Management”.

 

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?

[KS] Check in your tomcat’s server.xml file, if the connection port is set to 8080 (Search for 8080) in that file).

Concerning firewalls I can just say that you have to let http connections on port 8080 through. Maybe you can disable it for testing?

 

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.

[KS] There are helpful resources which explain how to connect Tomcat /OpenCms and Apache. Have a look at http://www.opencms-wiki.org/Opencms_as_/_with_Apache_%2B_mod_jk_%28or_mod_proxy%29.

Maybe you don’t need that for your testing environment?

 

HTH

Kai

 

[SJS] Thanks again very much for your help!

[SJS]  Jane

 

 

Von: opencms-dev-bounces@... [mailto:opencms-dev-bounces@...] Im Auftrag von Stefanie Juliane Schmidt
Gesendet: Mittwoch, 14. Oktober 2009 13:51
An: opencms-dev@....
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



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

Re: Installing OpenCMS andmigratingdata/settingsfromanother (older) installation

by Kai Schliemann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Jane,

 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?

[KS] It would be good to just dump the OpenCms database. The syntax is similar:  mysqldump --opt db_name > backup-file.sql
[SJS] mysqldump --opt -p opencms > backup-file.sql done. Just out of curiosity and that I know it next time: why is it better not to copy all databases at once?

[KS2] That’s because for copying the opencms database from one server to the other, you just have to copy the opencms database. You don’t need the other ones. And if you copy all databases with one script to another server you might accidently overwrite an existing database.

 

1.       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

?

[KS] Have a look for the following lines:  

# URL of the JDBC driver

db.pool.default.jdbcUrl=jdbc:mysql://SERVERNAME:3306/DB_NAME

 

...

...

 

# user name to connect to the database

db.pool.default.user=USERNAME

 

# password to connect to the database

db.pool.default.password=PASSWORD

 

 

[SJS] I changed username and password and left

# URL of the JDBC driver

db.pool.default.jdbcUrl=jdbc:mysql://localhost:3306/opencms

 

the same, because the name of the db is the same, also that it’s on the same machine as tomcat. Is that the right procedure?

Do I need to change the “server.ethernet.adress”, too? That one is in Hex there, and ifconfig tells me a hexadress only for the hardware adress, so is this that what I need to put in there?

[KS2] You don’t need to change that. AFAIK this value is used for generation of UUIDs.

 

2.       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.

[KS] Yes, that is correct. If you are accessing your new server via IP, you can type an IP address in there.

[SJS] Mmh, that is a little bit tricky: the old server is the one the websites lie on now, and that server will continue to run. The new server is just for testing purposes, that is, I want to change websites on that server, test if everything works out fine and deploy them to the old web server, without changing of addresses.

[KS2] Ok, that sounds just like a second server for testing. There is no connection between them. Right?

So for opencms-system.xml enter the Servername or IP-Address (http://www.mytestserver.de:TOMCATPORT/ or http://IP-ADDRESS:TOMCATPORT/) to the workplace-server and site-server node.

I don’t know what to configure in Tomcat. I guess it must be the same as in opencms-system.xml (http://www.mytestserver.de:TOMCATPORT/ or http://IP-ADDRESS:TOMCATPORT/).

Actually there is no difference in the configuration of Tomcat for Linux or Windows (AFAIK).

So should I leave the opencms-system.xml as-is and copy the /var/lib/tomcat5.5/conf/server.xml to the new server and e.g. change the Ports in the following part to something else?:

<!—Website www. … .de -->

    <Connector port="8189" maxHttpHeaderSize="8192"

               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

               proxyName="www.actsystems.de" proxyPort="80"

               enableLookups="true" redirectPort="8443" acceptCount="100"

               connectionTimeout="20000"

               useURIValidationHack="false"

               disableUploadTimeout="true" />

          Or should I change the server connection to

          <mailhost name="localhost" protocol="smtp" user="..." password="..."/>

       ...

       <sites>

      <workplace-server>http://localhost:8080</workplace-server>

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

      <site server="http://localhost:8080" uri="/sites/default/"/>

       </sites>

as the websites will be on the same machine as tomcat? I’m confused, because I’m still really new to Linux, and even newer to OpenCms and I think I’m just missing something really obvious.

[KS2] It doesn’t matter how your infrastructure looks like. The settings in opencms-system.xml have to be exactly like how you access the OpenCms with your browser (Especially for the workplace-server setting). For the site server it is possible to define aliases. But as I already mentioned, I don’t know very much about Apache / Proxy configuration. Please refer to www.opencms-wiki.org.

 

Regards

Kai



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

Re: Installing OpenCMS and migrating data/settings from another (older) installation

by Stefanie Juliane Schmidt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Von: Stefanie Juliane Schmidt
Gesendet: Donnerstag, 15. Oktober 2009 16:07
An: 'The OpenCms mailing list'
Betreff: AW: [opencms-dev] Installing OpenCMS and migratingdata/settingsfromanother (older) installation

 

[SJS]  Hi Kai,

thank you very much for your help!

 

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

[SJS3] Done, hopefully in the right way.

 

2.      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.

[KS] Yes, that is correct. If you are accessing your new server via IP, you can type an IP address in there.

[SJS] Mmh, that is a little bit tricky: the old server is the one the websites lie on now, and that server will continue to run. The new server is just for testing purposes, that is, I want to change websites on that server, test if everything works out fine and deploy them to the old web server, without changing of addresses.

[KS2] Ok, that sounds just like a second server for testing. There is no connection between them. Right?

 

[SJS3] Right.

 

So for opencms-system.xml enter the Servername or IP-Address (http://www.mytestserver.de:TOMCATPORT/ or http://IP-ADDRESS:TOMCATPORT/) to the workplace-server and site-server node.

I don’t know what to configure in Tomcat. I guess it must be the same as in opencms-system.xml (http://www.mytestserver.de:TOMCATPORT/ or http://IP-ADDRESS:TOMCATPORT/).

Actually there is no difference in the configuration of Tomcat for Linux or Windows (AFAIK).

 

3.      Restart Tomcat.

[SJS3] I did that all, and then got an “If you're seeing this page via a web browser, it means you've setup Tomcat successfully. Congratulations!“-message on http://localhost:8080/

But as I tried http://localhost:8080/opencms/opencms/system/login/, I got

HTTP Status 404 - /opencms/opencms/system/login/

type Status report

message /opencms/opencms/system/login/

description The requested resource (/opencms/opencms/system/login/) is not available.

[SJJ3] Is this a simple problem of the path? In /var/lib/tomcat5.5/webapps/ROOT/WEB-INF/jsp/online/system/login there was an index.html.jsp, which may have produced that Website. But it’s still not a OpenCms configuring page. What could have went wrong?

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

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

[KS] You can choose them from the Administration view in OpenCms. Look for “Flex Cache Administration” and “Database Management”.

 

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

 

HTH

Kai

 

[SJS] Thanks again very much for your help!

[SJS]  Jane

 

 

Von: opencms-dev-bounces@... [mailto:opencms-dev-bounces@...] Im Auftrag von Stefanie Juliane Schmidt
Gesendet: Mittwoch, 14. Oktober 2009 13:51
An: opencms-dev@....
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



_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev