title

Deploy Tiny Marbles CMS

Before you start the deployment make sure that you have Java 6 and a database installed on your server. We recommend MySQL, however the system is also tested very well on Microsoft MSSQL 2008 Express and R2. Install a web application server like for instance TomCat as well. Create a database with the name 'wsm'. The default user:password is root:root, but you can change this of course later. In case you use MySQL be sure that your database supports InnoDB and UTF-8.

After downloading the wsm.war file you can start the deployment. This should work without any problems. After that you can configure your system. Therefore you need to know more about the configuration files.

Webserver
We recommend to combine the web application server with a webserver. A good combination is Apache and TomCat with the mod_jk connector. Basically, to use the complete functionality of the Tiny Marbles CMS with the website manager the administration of virtual hosts is prerequisite. Assuming you connected TomCat behind Apache with mod_jk your virtual host configuration for a website could look like that (in this example with SSL):

Example without servlet context in URL:

<VirtualHost 217.185.41.181:443>
ServerName www.yourdomain.com
ServerAdmin mail@yourdomain.com
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateKeyFile "C:/Apache2.2/conf/ssl/www.yourdomain.com.key"
SSLCertificateFile "C:/Apache2.2/conf/ssl/www_yourdomain_com_ee.crt"
CustomLog logs/wsm-error_log-access.log combined
ErrorLog logs/wsm-error.log
AddDefaultCharset utf-8
<Location />
ProxyPass ajp://213.185.81.181:8009/
</Location>
</VirtualHost>

Example with servlet context in URL:

<VirtualHost 217.185.41.181:443>
    ServerName www.yourdomain.com
    ServerAdmin mail@yourdomain.com
    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
    SSLCertificateKeyFile "C:/Apache2.2/conf/ssl/www.yourdomain.com.key"
    SSLCertificateFile "C:/Apache2.2/conf/ssl/www_yourdomain_com_ee.crt"
    CustomLog logs/wsm-error_log-access.log combined
    ErrorLog logs/wsm-error.log
    AddDefaultCharset utf-8
    RedirectPermanent / https://www.yourdomain.com/wsm/
    <Location /wsm>
        ProxyPass ajp://213.185.81.181:8009/wsm/
    </Location>    
</VirtualHost>

With this approach you can manage any number of websites on one single Tiny Marbles CMS installation on TomCat. Of course it depends on the size of the projects and the traffic, but it should be possible to maintain up to 20 or 30 websites on one installation.

Video converter FFmpeg
In case you would like to use the video upload in your installation, install the FFMpeg converter first on your machine. You can download FFMpeg here:

http://ffmpeg.org/

Specify the path to FFmpeg in the file 'config.properties' which you will find in the directory web\WEB-INF\classes, for example like this:

video.ffmpeg = [installation path]/ffmpeg.exe

Search
The default search directory is c:\temp\search

If you would like to change, edit the file 'application-context.properties' in the folder \web\WEB-INF\classes and change the following lines:

luigi.file.english=c:/temp/search/search-en
luigi.file.german=c:/temp/search/search-de

SMTP
Be sure that a SMTP-server is installed properly. You set up the mail server in the file 'application-context.properties':

#setup of mailserver
mail.host=smtp-server (z.B. mailgate.pce.de)
mail.port=25
mail.protocol=smtp
mail.username=username
mail.password=password
mail.encoding=UTF-8
mail.smtp.auth=true

Database
The deployment works by default with MySQL. But the system is also tested with MSSQL 2008 R2. You need a database with the name 'wsm' (user=root, password=root). In case you would like to change the database name and the username or password, edit the file 'application-context.properties' in the folder \web\WEB-INF\classes and change the following lines:

hibernate.connection.url=jdbc:mysql://localhost/wsm?characterEncoding=UTF-8
hibernate.connection.username=root
hibernate.connection.password=root

If you would like to use MSSQL uncomment the lines for MSSQL (don't forget to comment the lines for MySQL):

# MSSQL Example
hibernate.connection.driver_class=com.microsoft.jdbc.sqlserver.SQLServerDriver
hibernate.connection.url=jdbc:sqlserver://127.0.0.1:1433;dataBaseName=wsm
hibernate.connection.username=root
hibernate.connection.password=root

#hibernate.dialect\=org.hibernate.dialect.MySQLInnoDBDialect
hibernate.dialect\=org.hibernate.dialect.SQLServer2008Dialect 

ehcache.xml
Set the path for the cache, for example:

<diskStore path="c:/work/ehcache"/>

log4j.xml
Set the path for logging, for example

<param name="File" value="c:/work/logs/main.log"/>
<param name="File" value="c:/work/logs/hibernate.log"/>

struts.properties
Set the path for the temp directory for file upload, for example:

struts.multipart.saveDir=c:/tmp 

Attention: Although these examples show the configuration for Windows it is no problem to run the installation on Linux. It is tested very well for example on Debian server.


Gain all perks of rush essay create a successful business and have your existence . slot games freecasinoplanet.com my blog