The easy Weblog and Wiki Software
[ start | index | login ]
start > Installation & Configuration

Installation & Configuration

Created by ivar. Last edited by teknopaul, 2 years and 162 days ago. Viewed 22,683 times. #37
[diff] [history] [edit] [rdf]
labels
Parent:snipsnap-documentation
Parent:FAQ
Category:FAQ
attachments

Install

Q: Can I deploy SnipSnap on WAR application servers?

A: Yes. See SnipSnap-war

Q: How do I get rid of the port 8668?

A: Provided that you run as "root" or administrator user of your system you can safely set the port number to 80 or leave it empty in the installer page. The web server will then run on the default HTTP port. Alternatively use the method of an apache proxy in front of SnipSnap as described on the install page. The port setting is found in the WEB-INF directory in a file named application.conf. The property to change is app.port=<your_port_number_here>.

Q: How do I specify a single IP address/hostname to bind to ?

A: During the initial Setup, enter the host name to bind to. Leaving the host name field empty binds to all available addresses for that host.
NOTE: doesn't always work on systems with multiple IP addresses already running servers on your chosen port (80). You may want to try editing the conf/jetty.conf file and adding the following element to the org.mortbay.jetty.SocketListener:
<Set name="Host">
	<SystemProperty name="jetty.host" default="xxx.xxx.xxx.xxx"/>
</Set>
This is because even when specifying a host name during the initial setup, SnipSnap starts a new SocketListener with the default IP address of 0.0.0.0 - all available IP addresses.

Configuration

Q: How do I edit robots.txt? I have a file but this does not work.

A: robots.txt is mapped to a special servlet that we wanted to use to
  1. detect new robots
  2. prevent some of them from indexing the page
If you remove the servlet mapping to /robots.txt from web.xml you can use your own robots.txt file.

Q: How do I edit the logo and name of my SnipSnap that appear on every page in "page-logo" and "page-title" divs?

A: Enter Setup and use the Basic Settings pane to change the logo and enter the tagline for your site.

Q: How do I customize weblogs pings?

A: Add or remove a ping from conf/weblogsping.txt. For example the default configuration for pinging weblogs.com is:
org.snipsnap.xmlrpc.ping.SimplePingHandler http://rpc.weblogs.com/RPC2
The first is the handler doing the ping (Simple, Extended or RSS) and the second entry is the URL to use.

In SnipSnap 0.5.1a the weblogs pings are stored in a Snip [SnipSnap/config/Weblogsping], using the same format as described above.

To disable weblog pings completely change the entry app.perm.weblogsPing in the Snip [SnipSnap/config] to

app.perm.weblogsPing=

Q: How can I customize the weblog dates?

A: Enter Setup and select the localization pane to change the format of the weblog dates. Default is "EEEE, dd. MMMM yyyy". For options take a look at >>this.

Q: How do I change the language of weblog dates?

A: Enter Setup and select the localization pane. Selecting German in the language setting, the blog will display the weblog dates in German. Even if the default locale on your computer is English. SnipSnap defaults to english if no special setting has been made.

Q: How do I create multiple weblogs?

A: See MultipleWeblogs.

Q: How to allow anyone (Register user) to edit anys snip ?

A: Most of the snips are editable by everyone. Only weblogs posts and comments are protected by default. Snips can be locked. Locked snips and weblog posts can only be changed by users with the "Editor" role.

Q: How to change the ownership of a snip ?

A: Currently the owner of a snip cannot change.

Q: I want to run two separate snipsnaps on one sever. How do I get a diff port #?

A: Some info available here: Multiple SnipSnap Instances

Q: How do I setup MySQL database connection to support my charset?

A: During initial SnipSnap setup use add parameters useUnicode=true&characterEncoding=UTF-8. So, your connection url should look similar to this:

jdbc:mysql://yourhost/snipsnapdb?useUnicode=true&characterEncoding=UTF-8

If you do not set this encoding correctly MySQL will use default (?) encoding and very probably will break your snips. This problem will be visible after the restart of the SnipSnap server.

Q: How do I add an Edit Page link to every page?

A: There is an edit page link at the top of the page by default. In order for it to work, you must be logged in with the appropriate permissions. If you don't see the edit link (and the other links, like rdf, history, diff, etc), it probably means you're using a browser that doesn't support CSS very well.

Q: I want to customize some of the WikiText syntax to look more like (eg) TWiki. How do I configure the Radeox running inside SnipSnap?

A: ?

Q: What can I do when having Duplicate Snips in the maintainance section of configuration?

A: How to delete that?

Q: I'm having problem setting up a second Snipsnap instance on the same host as my first one. I would like to have two (or more) separate Snipsnap's running on the same host but not within a single web application. Is that possible? How?

A: See Multiple SnipSnap Instances
If you really want to do it the hard way then here is your answer:
It depends on your WAR-Container. In Tomcat you can either simply rename the war file and put it alongside the regular WAR file. Or you could deploy the WAR file via the admin console and simply define a different "context". The same can be done via the WebLogic console.

Q: SnipSnap running on Redhat Linux locks up regularly

A: Use the LD_ASSUME_KERNEL environment variable to revert to pre-native posix threads. Add the following to your snipsnap startup.

LD_ASSUME_KERNEL=2.2.5

Q: How can I specify the directory used for storing the files? On my win32-machine the data is always stored on %userprofile%/applications, which isn't the dir I'd like to use.

A: Add the

-Duser.home=mydatadirectory
to the Java vm options in your run.bat file (run.sh on Linux), replacing mydatadirectory with the directory you'd like the data to be stored in.

Q: When deployed as WAR in Tomcat, I am unable to create Snips with non-Latin1 characters in name. How can I solve this?

A: Edit your server.xml, find Coyote connector definition (the one with port 80, 8080 or so) and add parameter URIEncoding="UTF-8". Your connector definition now should look similar to this one :

<Connector port="8080"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               debug="0" connectionTimeout="20000" disableUploadTimeout="true"
               URIEncoding="UTF-8" />

Restart Tomcat.

Q:I am a snipSnap user from China,and I want let snipsnap work with Mysql4.1.7(the lastest version).For surport the other web applications,we had to set mysql default charset = utf8.A problem was come up,all the Chinese I entered will become chracters people can't recognize when I restart the serverI have try all the approaches that I can make out,e.g:add parameters after the database connection uri,like this,useUnicode=true&characterEncoding=gbk.but it does not work!when I set the Mysql server's default characterset to gbk,snipsnap can work well,but all the other web applications can not work!I am puzzled about that,I have work on it for one day!sign!

Q: How do I change the DC.title meta tag? Is it possible to add a prefix so the start page is NOT just called "start" (the name of the SnipSnap)?

Q: How do I get the installer to work on Java 1.4. Running the installation on windows with run.bat with JAVA_HOME set to JDK 1.4.2_10 causes a class version error Exception in thread "main" java.lang.UnsupportedClassVersionError: org/snipsnap/server/SnipSnapLauncher (Unsupported major.minor version 49.0). Yet running in JDK 1.5.0_06 seems to work

Icon-Comment carsten, 3 years and 342 days ago. Icon-Permalink

Is there a way to set the mail address which Snipsnap used to send password reset links? I don't want it to use do-not-reply(a)mydomain, but I can change only mydomain into something else.

Icon-Comment janka, 3 years and 335 days ago. Icon-Permalink

I'm having problem setting up a second Snipsnap instance on the same host as my first one. I would like to have two (or more) separate Snipsnap's running on the same host but not within a single web application. I would like to have them totally separated from each other. The two Snipsnap instances have different users and should hjave nothing in common

My problem is that the default host (8668) is already occupied. I've tried changing it in conf/jetty.conf, Then when I start the installation (using >>http://<myhost>:<myport>/install/KEY?expert=true, and specifying server address and server port in the Installer web page), I get the message:

The application could not be installed. Please correct the following errors: Reason: "org.apache.xmlrpc.XmlRpcException: Username or password does not match"

I've read whatever I could find about Multiple SnipSnap Instances, and other snips I thought relevant. Still I haven't solved it. Anyone who's got an idéa what I've missed out or what I'm doing wrong?

I'd really appreciate some help :-)

Icon-Comment dmitry, 3 years and 252 days ago. Icon-Permalink

-Duser.home does not seem to work. Can someone confirm that it's working with the latest release. I'm using snipsnap-1.0b1-uttoxeter.

Thanks

Icon-Comment leo, 3 years and 252 days ago. Icon-Permalink

What are you trying to accomplish using -Duser.home? If you want to set where the applications dir is use the -root switch to the SnipSnap server.

Icon-Comment mpatzak, 3 years and 229 days ago. Icon-Permalink

Hi, I also have problems with the java vm property -Duser.home. I would like to store my different snipsnap instances in a specific diretory. Due to the FAQ i edited the run.bat. No it looks like:

@echo off rem $Id: run.bat,v 1.12 2004/05/17 10:56:16 leo Exp $ %JAVA_HOME%binjava -Xmx128m -server -jar C:ProgrammeSnipSnapWikisnipsnap-1.0b1-uttoxeterlibsnipsnap.jar -Duser.home=C:ProgrammeSnipSnapWikisnipsnap_spaces pause

It looks like the property user.home is ignored. Leo wrotes you should switch the -root property. But how and where? In the run.bat? Or in a different configuration file?

Thanks

Icon-Comment tnodari, 3 years and 193 days ago. Icon-Permalink

add the -root DIRNAME to the end of the command line, in your example

%JAVA_HOME%binjava -Xmx128m -server -jar C:ProgrammeSnipSnapWikisnipsnap-1.0b1-uttoxeterlibsnipsnap.jar -root C:ProgrammeSnipSnapWikisnipsnap_spaces pause

Icon-Comment donpdonp, 3 years and 176 days ago. Icon-Permalink

the important part of -root is that its an option to snipsnap and not to the jvm. So it comes after specifying the snipsnap jar file.

the last line in my snipsnap-1.0b1-uttoxeter/run.sh is

$JAVA $JAVA_OPTS $DBG -Dlauncher.errlog=server.log -jar lib/snipsnap.jar -root /usr/local/snipsnap-wiki-data $*

Icon-Comment heabdogg, 3 years and 175 days ago. Icon-Permalink

Is there a way to configure the war distribution (I'm using 1.0b2-uttoxeter) in a similar manner to the above? (-root /path/to/desired/dir) ? I have successfully configured a standalone SnipSnap for an at-work intranet using the -root arg, but I'm trying to set up my personal site with the war distro.

Thanks,

-Scott

Icon-Comment maryangelica, 3 years and 82 days ago. Icon-Permalink

Hello i'm trying to install this software, but in the step of setup where it show the buttom "Start SnipSnap", when i do click, don't showme nothing.I deleted the directory SnipSnap, Unzip again, and start ./run.sh then i opened the browser, it does not return at the beginning of the configuration, but in the step that I am before erasing directory. I repeated this many times, i reset the computer, but it follows the same problem. Why?. Please Help me

Icon-Comment aahmedjanov, 2 years and 178 days ago. Icon-Permalink

My college runs Tomcat 4.1.24. I've read some posts that current stable Snipsnap does not work with version 4. Is that so? Is there an older build I could use with Tomcat 4?

Thank you

Icon-Comment oli, 2 years and 75 days ago. Icon-Permalink

Hi I had the same problem with -Duser.home but fixed it with -root. Now I can change the directory on the local machine. But I want to store the files on a network folder. The problem is, if I change the directory I get this error message three times on the screen:

(java.util.MissingResourceException: Can't find bundle for base name i18n.messages, locale de_DE )

What do I have to change?

Thanks for help

Icon-Comment Manilika, one year and 363 days ago. Icon-Permalink

Hello I've Installed this software and my localization settings are Country = French, Language = French. But I can't use é,à,è letters in snip title. I see that it can be done on this site Testé. I've installed the pack languages (radeox, i18n) too.

How can I do ?!

Thx for help.

Edit :

I'm having strange UTF-8 issues with my request parameters. In tomcat 5 - does your connector have Connector declaration have URIEncoding="UTF-8". For example:

<Connector port="80" maxThreads="50" minSpareThreads="5" maxSpareThreads="15" disableUploadTimeout="true" URIEncoding="UTF-8"/>

Please login to post a comment.

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13713 Snips. Installed 6 years and 42 days ago

Logged in Users: (2)
… and 19 Guests.

snipsnap-changed for older changes.

< August 2008 >
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
31

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST