JAMWiki in the Cloud: a step-by-step tutorial
JAMWiki is a wiki engine that is built around the standard components of Java, servlets and JSP. While for the user JAMWiki is highly similar to MediaWiki and even uses the same wiki syntax (including templates, etc.), it is not a MediaWiki clone but independent implementation, written in a different language and using a different database schema. JAMWiki is quite popular: it is detected as an engine in a big variety of sites.
So, let’s deploy this great application to the cloud right now!
1. Go to jelastic.com and sign up if you haven’t done it yet or log in with your Jelastic credentials by clicking the Sign In link on the page.
2. Ask Jelastic to create a new environment.
3. Choose the instances you want to use (for example, Tomcat 7 application server and MySQL database), set the cloudlets limit and type the name of the environment. Then click Create.
In a minute your environment will be created.
Upload Java package
1. Go to JAMWiki web-site and download the JAMWiki war package.
2. Switch back to Jelastic dashboard and upload Java WAR package to the Deployment manager.
3. Once the package is in Jelastic, deploy it to the environment you have just created.
1. Click Open in browser button for MySQL.
2. While you were creating the environment, Jelastic sent you the email with credentials to the database. Create an account and the database with the application using these credentials.
1. Click config button for Tomcat and upload MySQL connector to the lib folder.
2. Navigate to the home folder of Tomcat and create a new folder for JAMWiki log files.
3. In the same directory create a directory where JAMWiki system files can be stored.
4. Update the LOG_DIR value in the webapps/ROOT/WEB-INF/classes/logback.xml file with the location where log files should be written. In our case the path is /opt/tomcat/temp/jamwiki.
Save the changes and restart Tomcat.
1. Launch the application in web browser. You’ll see JAMWiki setup wizard. Provide the path to system files directory and the database settings. Then create a new admin user and click Save Changes.
Now your application is ready for use.
Don’t forget to tell your friends about JAMWiki on Jelastic:) As you can see it is very easy way to get Wiki engine up and running in the cloud. Just give it a try!