- The first thing you need to do is install the Lamp software. A good tutorial can be found here:How to install a LAMP server
- Once you have LAMP set up it is time to install The Bug Genie. In most cases you will want to install the Buggenie in it's own directory under the WWW directory.
You can use the Bug Genie Root Install Information link for this install.
1 Preliminary Note - In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate. I'm running all the steps in this tutorial with root privileges, so make sure you're logged in as root:
2 Installing Postgresql Make sure you installed python-software-properties
update your system apt:
$sudo apt-get install python-software-properties
Finally install postgresql-9.1:
$sudo apt-get update
if you get an error here, make sure you have installed libpq-dev. The libpq-dev package is for compiling wrappers/clients against libpq.
$sudo apt-get install postgresql phppgadmin
Now check out if the installation is successful or not.
$sudo apt-get install postgresql-9.1 libpq-dev
If done!!!, Cheers ………….. Check the install version.
$ locate postgresql
Now let’s take a look at the postgres console
(a) Setup the Root User ‘postgres’ (or name it something else if you want)
give the postgres user a (unix) password,Now we can switch to the user postgres using command
$sudo passwd postgres
$ su postgres
That’s it for postgres installation. If you want to access postgres remotely, Meaning localhost. You need to perform some addition setting to postgres conf file. First we edit the file postgresql.conf:
List all files in the main folder
$ cd /etc/postgresql/9.1/main
$ ls -la
drwxr-xr-x 2 postgres postgres 4096 2012-05-17 18:05 .
drwxr-xr-x 3 postgres postgres 4096 2012-04-07 12:44 ..
-rw-r–r– 1 postgres postgres 316 2012-04-07 12:44 environment
-rw-r–r– 1 postgres postgres 143 2012-04-07 12:44 pg_ctl.conf
-rw-r—– 1 postgres postgres 4653 2012-05-17 18:05 pg_hba.conf
-rw-r—– 1 postgres postgres 4649 2012-04-09 19:29 pg_hba.conf.bak.original
-rw-r—– 1 postgres postgres 1636 2012-04-07 12:44 pg_ident.conf
-rw-r–r– 1 postgres postgres 19235 2012-04-07 12:44 postgresql.conf
-rw-r–r– 1 postgres postgres 19235 2012-04-09 19:29 postgresql.conf.bak.original
You need to make a backup of these files now.
-rw-r–r– 1 postgres postgres 378 2012-04-07 12:44 start.conf
$ cp pg_hba.conf pg_hba.conf.bak.original
Make changes to pg_hba.conf (authentification methods). host all all 127.0.0.1/32 trust # md5 -> trust You make changes in the config file, Then restart your postgres
$ cp postgresql.conf postgresql.conf.bak.original
$sudo /etc/init.d/postgresql restart
- Restarting PostgreSQL 9.0 database server
3 Installing Apache2
Apache2 is available as an Ubuntu package, therefore we can install it like this:
apt-get install apache2
Now direct your browser to http://192.168.0.100, and you should see the Apache2 placeholder page (It works!):
Click to enlarge
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.
4 Installing PHP5
We can install PHP5 and the Apache PHP5 module as follows:
apt-get install php5 libapache2-mod-php5
We must restart Apache afterwards:
5 Testing PHP5 / Getting Details About Your PHP5 Installation
The document root of the default web site is /var/www. We will now create a small PHP file (info.php) in that directory and call it in a browser. The file will display lots of useful details about our PHP installation, such as the installed PHP version.
<?php phpinfo(); ?>
Now we call that file in a browser (e.g. http://192.168.0.100/info.php):
Click to enlarge
As you see, PHP5 is working, and it's working through the Apache 2.0 Handler, as shown in the Server API line. If you scroll further down, you will see all modules that are already enabled in PHP5. MySQL is not listed there which means we don't have MySQL support in PHP5 yet.