This section explains how to get started with Pebble weblog.
Minimum Requirements
- Java 2 Platform, Standard Edition (J2SE) 1.4
- A JSP 1.2/Servlet 2.3 compatible web/application server such as Tomcat, Jetty or Resin, with access to setup new users and roles.
Deploying Pebble
Deploying Pebble is a simple process of extracting the WAR file and editing some configuration information. The following explanation illustrates this process on a UNIX-based platform with Jakarta Tomcat 4, installed in $TOMCAT_HOME . Installation on a Windows platform is pretty much identical.
- Extract the WAR File : After downloading Pebble, extract the
pebble.war file from the Pebble distribution into your Tomcat installation, in a directory such as $TOMCAT_HOME/webapps/blog .
- Configure the Web Application : Next, you need to tell Pebble some basic information about your blog. To do this, open up the $TOMCAT_HOME/webapps/blog/WEB-INF/classes/pebble.properties file. There are 3 parameters that need modifying.
- The first of these is called
blog.dir and this tells Pebble where on the filing system you would like to store your blog entries, the directory being created if necessary (the default is ${user.home}/blog ).
- The next parameter is called
blog.url and this tells Pebble the URL from which you will be hosting your blog. Examples of this include http://localhost:8080/blog/ or http://www.simongbrown.com/blog/. If left unset, Pebble will try to figure out the value of this, but explicitly setting this is recommended.
- The final parameter is called
blog.multiUser and this tells Pebble you will be hosting a single user or multi-user blog (discussed later). The values for this parameter are true or false (the default).
- Configure Web Application Security : Pebble makes use of the standard Java Servlet security model in order that only blog owners and blog contributors can login and access the maintenance features. Atleast one user must be defined that is a member of the following roles:
- blog-owner
- blog-contributor
The first of these roles allows users to configure many aspects of the blog, while the latter allows users to add, edit and delete blog entries. To set up this information with Tomcat using the default security realm, open the $TOMCAT_HOME/conf/tomcat-users.xml file and add in the following line.
<user username="someuser" password="password" roles="blog-owner,blog-contributor"/>
This example defines a user called someuser that is both a blog-owner and blog-contributor.
In addition to these roles, there is another role called pebble-admin that is used when administering a Pebble multi-user installation. Details of this are discussed later.
- Testing the Installation : With these steps complete, start the server and point your web browser to the URL where the web application has been deployed. If everything has worked, you should see a page like the following.
That's it - you've now installed Pebble and are ready to start customizing your blog and adding blog entries.
|