Server Installation How-To

The CommunityBanker application suite requires LAMP to be installed which is very easy to achieve with most Ubuntu distributions. These instructions are for Ubuntu 9.04 Jaunty but should work equally well for most versions since 8.10.

Installation of a development server

Preparation of a test or development environment for Common Ubuntu 9.04 or later is really very straight forward and consists of the following steps:

  • Installation of LAMP (Linux-Apache-MySQL-PHP) stack
  • Installation of openssl and generation of a test certificate for use with the https server
  • Installation of suggested development tools
  • Configuration for development

Installation of LAMP

The LAMP stack is very easily installed on any default installation of Ubuntu Workstation as follows:

Install MySQL

Firstly we install MySQL as follows:

sudo apt-get install mysql-server mysql-client

You will be asked to provide a password for the MySQL root user - this password is valid for the user root@localhost
New password for the MySQL "root" user: <-- //yourrootsqlpassword//
Repeat password for the MySQL "root" user: <-- //yourrootsqlpassword//

To test type the following at the command line and login as root:
> mysql -u root -p //yourrootsqlpassword//

If you logged in without trouble you may move on to the next step.

Install Apache2

Secondly we install a local apache2 webserver as follows:

sudo apt-get install apache2

We test the installation by typing the server address in the web browser:
http://localhost

Apache's default document root is /var/www on Ubuntu, and the configuration file is /etc/apache2/apache2.conf.
Additional configurations are stored in subdirectories of the /etc/apache2 directory such as /etc/apache2/mods-enabled (for Apache modules), /etc/apache2/sites-enabled (for virtual hosts), and /etc/apache2/conf.d.

Install PHP

Lastly we install PHP5 and the Apache PHP5 module as follows:

sudo apt-get install php5 libapache2-mod-php5 php5-mysq

And we must restart Apache afterwards:
sudo /etc/init.d/apache2 restart

To test that PHP is as it should be create test.php as follows:

sudo gedit /var/www/test.php

then enter the following lines of code and save your test.php file:
<?php
    phpinfo();
?>

Now just go to http://localhost/test.php and you should get the phpinfo page.
Thats it for a basic LAMP which is all that cubanker requires to work.

Installation of openssl for secure server

…..insert instructions here for :

  • installation of openssl
  • creation of root cert
  • exporting cert to file
  • loading cert/SSL keys into Apache
  • trouble shooting etc. if logging in v ia SSH etc

Installation of a production/live environment

Basics needed to contribute to development

In order to have the basics (unless your preferences dictate otherwise) required to aid in the development of cubanker the following tools are suggested:

  • Bluefish editor
  • MySQL Administrator
  • MySQL Query Browser
  • //what is needed for package creation //

Install as follows :

sudo apt-get install bluefish
sudo apt-get install mysql-admin mysql-query-browser

Differences between development and production

get a live SSL Certificate

hardening the web server

.htaccess and non-secure vs secure web access

ip address issues/configuration

page_revision: 98, last_edited: 1251659203|%e %b %Y, %H:%M %Z (%O ago)