How to Install OpenCms

104 29
    • 1). Open a terminal window by holding down <ctrl> and <alt> and hitting <T>.

    • 2). Launch Mozilla Firefox from the terminal by entering "firefox" without the quotation marks. Download and install the newest version of Java Development Kit from the Oracle website. It is called the "JDK," and has the Java Runtime Environment as part of the package. Download the tar.gz for either 64-bit or 32-bit processor, and run "tar zxvf jdk-7-linux-i586.tar.gz" -- without the quotes -- in the terminal, to unpack it. Replace "jdk-7-linux-i586.tar.gz" with the file you downloaded.

    • 3). Download Apache Tomcat tar.gz file and install it into the CATALINA_HOME/bin directory using the following commands:

      cd $CATALINA_HOME/bin

      tar xvfz commons-daemon-native.tar.gz

      cd commons-daemon-1.0.x-native-src/unix

      ./configure

      make

      cp jsvc ../..

      cd ../..

      Replace "commons-daemon-native.tar.gz" and "commons-daemon-1.0.x-native" in the example above with the name of the file you downloaded.

    • 4). Install MySql onto your server. Download a tar.gz file of the appropriate version of MySql from their website, and enter the following commands to uncompress the file and launch MySql:

      tar -xvwzf mysql-5.5.15-linux2.6-i686.tar.gz

      %MYSQL_HOME%/bin/mysqld -install

      %MYSQL_HOME%/bin/mysqld

      Replace "mysql-5.5 15-linux2.6-i686.tar.gz" with the entire name of the file you downloaded.

    • 5). Download the ZIP file of OpenCms and uncompress it using the "gunzip opencms_8.0.1.zip" command, without the quotation marks. Replace "opencms_8.0.1.zip" with the OpenCms file you downloaded. Enter the following command to copy the opencms.war file into the appropriate Apache folder:

      cp opencms.war CATALINA_HOME/webapps/

    • 6). Run the following command to run Apache Tomcat:

      cd $CATALINA_HOME

      ./bin/jsvc -cp ./bin/bootstrap.jar:./bin/tomcat-juli.jar

      -outfile ./logs/catalina.out

      -errfile ./logs/catalina.err

      org.apache.catalina.startup.Bootstrap

      Now it opens the OpenCms .war file.

    • 7). Enter "http://localhost:8080/opencms/setup/" in the Firefox address bar and run the setup wizard. The default settings will work effectively as long as you did not change any configuration settings in Java, Tomcat or MySql. Disable any popup blockers installed on Firefox. Enter "http://localhost:8080/opencms/opencms/system/login/" in the address bar, and then enter "Admin" as the username and "admin" as the password.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.