|
rate-2064390-73237
| Article Rating? |
|
|
|
I will use an example of 280MB VPS and show you how easy you can setup Confluence. The whole process should
take less than 5 minutes excluding the time spent in downloading confluence and mysqlj connector. At the end, you should have Confluence available through port 80 and using Mysql as the backend database with UTF8 support.
Step 1 - Install MySQL 5, Tomcat 5.5, mod_jk on your VPS
eApps has a very easy way to select applications to be installed on your VPS. Since the resources are very limited on your VPS, it is recommended to select only the applications you needed and nothing else. I also suggest not to install the FTP server, sftp via ssh is highly recommended. Core FTP Lite
is a very good and free sftp client.
Step 2 - Download and Extract Confluence
cd /tmp
wget http:tar zxvf confluence-2.5.6.tar.gz
sudo mv confluence-2.5.6 /usr/share/
Step 3 - Add Confluence to Tomcat
cd /opt/tomcat5/conf
vi server.xml
jump to the end of the file and add the following right above the last </Host>
<Context path="/confluence" docBase="/usr/share/confluence-2.5.6/confluence" debug="0" reloadable="false">
<Manager pathname="" />
</Context>
Step 4 - Configure Confluence
- create directory for storing confluence data, backup, attachments, etc..
cd /srv
sudo mkdir confluence
cd confluence
sudo mkdir data
cd ..
sudo chown -hR tomcat5 confluence
- configure confluence to use the directory created above cd
/usr/share/confluence-2.5.6/confluence/WEB-INF/classes/
sudo vi confluence-init.properties
uncomment the last line and change to
confluence.home=/srv/confluence/data
Step 5 - Create a database in MySQL for Confluence
- Download MySQL JDBC Driver
wget http:tar zxvf mysql-connector-java-5.0.7.tar.gz
cd mysql-connector-java-5.0.7
sudo cp mysql-connector-java-5.0.7-bin.jar /usr/share/confluence-2.5.6/confluence/WEB-INF/lib/
- Create database with UTF8 support for Confluence
mysql -u root
CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_general_ci;
grant all on confluence.* to 'atlassian'@'localhost' identified by 'confluence';
flush privileges;
 |
If you use the mysql admin tool in the eApps control panel to create this database, keep in mind that the database created doesn't support UTF8. If you want UTF8 support, you need to drop that database and create one with the command line. Also do remember to change the mysql root password.  |
Step 6 - Start and Configure Confluence to use the database just created
Use the Tomcats admin tool in eApps Control Panel to restart tomcat. Then
- open a broswer and hit http://ip:8080/
you should see the Confluence installation guide
- go to this link
and request a personal license
- add license key then choose "Custom Installation"
- on "External Database", select "Mysql" from drop down menu then click on "External Databases" button
- click "Direct JDBC" button and use the following info
jdbc:mysql:username: atlassian
password: confluence
- click "Next", wait a while for the database tables to be created and data initialized.
- Then you should see the "Load Content" page, you can choose "Empty Site", then create an admin account or choose the other paths
- Now you can start enjoying your personal wiki with a stable Mysql database. (++)
Step 7 - Configure mod_jk to move Confluence to port 80
- Go to eApps Control Panel, click on "Website Settings"
- Click on "Custom Settings" and add the following
JkMount /confluence/* ajp13
(Optional) Step 8 - redirect your site homepage to Confluence
- ssh to your server
- go to directory "/home/webadmin/sitename/html"
- edit index.shtml and add a redirect command to the header area of the file, an example as follows:
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=http:>
<title>Redirecting to Confluence</title>
</head>
Good document. I will use this on my site. -Mike L.