<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=HRMS_APPLICATION_with_JBOSS_and_PostgreSQL_at_AIMIL</id>
	<title>HRMS APPLICATION with JBOSS and PostgreSQL at AIMIL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/index.php?action=history&amp;feed=atom&amp;title=HRMS_APPLICATION_with_JBOSS_and_PostgreSQL_at_AIMIL"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=HRMS_APPLICATION_with_JBOSS_and_PostgreSQL_at_AIMIL&amp;action=history"/>
	<updated>2026-07-25T08:22:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=HRMS_APPLICATION_with_JBOSS_and_PostgreSQL_at_AIMIL&amp;diff=815&amp;oldid=prev</id>
		<title>Biswajit: Created page with &quot;category:AIMIL   == HRMS APPLICATION with JBOSS and PostgreSQL at AIMIL  == by Rajneesh Lamba     1)Ist install java,php,php-pgsql,phpPgadmin,httpd  2)If phpPgAdmin not in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=HRMS_APPLICATION_with_JBOSS_and_PostgreSQL_at_AIMIL&amp;diff=815&amp;oldid=prev"/>
		<updated>2013-01-05T03:23:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php?title=Category:AIMIL&quot; title=&quot;Category:AIMIL&quot;&gt;category:AIMIL&lt;/a&gt;   == HRMS APPLICATION with JBOSS and PostgreSQL at AIMIL  == by Rajneesh Lamba     1)Ist install java,php,php-pgsql,phpPgadmin,httpd  2)If phpPgAdmin not in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[category:AIMIL]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== HRMS APPLICATION with JBOSS and PostgreSQL at AIMIL  ==&lt;br /&gt;
by Rajneesh Lamba&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1)Ist install java,php,php-pgsql,phpPgadmin,httpd&lt;br /&gt;
&lt;br /&gt;
2)If phpPgAdmin not installed from base repo you can configure epel repo for that.&lt;br /&gt;
&lt;br /&gt;
3)install jboss final(ot transfer from other place where jboss run)&lt;br /&gt;
&lt;br /&gt;
4)path of jboss /usr/bin/jboss_6.0___&lt;br /&gt;
&lt;br /&gt;
5)also transfer jboss start/stop script from /etc/init.d/jboss&lt;br /&gt;
&lt;br /&gt;
6)Now after all this install postgresql&lt;br /&gt;
&lt;br /&gt;
INSTALL THESE PACKAGES&lt;br /&gt;
&lt;br /&gt;
 # yum install postgresql*&lt;br /&gt;
&lt;br /&gt;
It install following packages&lt;br /&gt;
 postgresql-server&lt;br /&gt;
 postgresql-libs&lt;br /&gt;
 postgresql84-contrib&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOW RUN THIS COMMAND TO CREATE DATA DIR IN /var/lib/pgsql/ &lt;br /&gt;
#service postgresql initdb&lt;br /&gt;
&lt;br /&gt;
AFTER RUNNING ABOVE COMMAND YOU GET A DIR /var/lib/pgsql/data&lt;br /&gt;
&lt;br /&gt;
Now Start Postgresql&lt;br /&gt;
 #/etc/init.d/postgresql start&lt;br /&gt;
 #chkconfig postgresql on&lt;br /&gt;
 #chkconfig httpd on&lt;br /&gt;
&lt;br /&gt;
Login in Postgresql&lt;br /&gt;
 #su - postgres&lt;br /&gt;
-bash-3.2$ psql postgres&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
postgres=#CREATE DATABASE aimil WITH TEMPLATE = template0 OWNER = postgres&lt;br /&gt;
ENCODING = &amp;#039;UTF8&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
ABOVE COMMAND CREATES A DATABASE OF NAME(WHATEVER YOU GIVE &amp;quot;HERE i GIVE&lt;br /&gt;
DATABASE NAME aimil&amp;quot;) WITH UNICODE UTF8&lt;br /&gt;
&lt;br /&gt;
postgres=#ALTER USER postgres with PASSWORD &amp;#039;password&amp;#039;;  (HERE GIVE&lt;br /&gt;
PASSWORD TO USER POSTGRES)&lt;br /&gt;
&lt;br /&gt;
postgres=#quit (to logout)&lt;br /&gt;
-bash-3.2$psql -l  (to check database list)&lt;br /&gt;
&lt;br /&gt;
logout and come back on root prompt&lt;br /&gt;
 #vim  /var/lib/pgsql/data/pg_hba.conf&lt;br /&gt;
&lt;br /&gt;
go in last and add global ip of tetra there with md5 encription&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 local   all         all                               md5&lt;br /&gt;
 host    all         all         127.0.0.1/32          md5&lt;br /&gt;
 host    all         all         122.160.21.105/24         md5      (tetra global IP)&lt;br /&gt;
 host    all         all         203.122.16.189/32          md5     (postgresql server global IP)&lt;br /&gt;
 host    all         all         192.168.0.0/24          md5        (local network range of client network)&lt;br /&gt;
&lt;br /&gt;
save and quit&lt;br /&gt;
&lt;br /&gt;
 #vim /var/lib/pgsql/data/postgresql.conf&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 listen_addresses = &amp;#039;*&amp;#039;  put * in place of &amp;#039;localhost&amp;#039;&lt;br /&gt;
 port = 5432                    remove #&lt;br /&gt;
 max_connections = 100          remove #&lt;br /&gt;
&lt;br /&gt;
save and quit&lt;br /&gt;
&lt;br /&gt;
 #vim /etc/httpd/conf.d/phpPgAdmin.conf&lt;br /&gt;
&lt;br /&gt;
Allow from all  (allow all here)&lt;br /&gt;
&lt;br /&gt;
 #vim /etc/phpPgAdmin/config.inc.php&lt;br /&gt;
&lt;br /&gt;
change  true in false here&lt;br /&gt;
&lt;br /&gt;
$conf[&amp;#039;extra_login_security&amp;#039;] = false;&lt;br /&gt;
&lt;br /&gt;
 #/etc/init.d/postgresql restart&lt;br /&gt;
 #/etc/init.d/httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
enjoy:)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
NOW IF YOU HAVE TO TAKE ANY DUMP OF OTHER POSTGRESQL DATABASE&lt;br /&gt;
&lt;br /&gt;
go to that server&lt;br /&gt;
&lt;br /&gt;
 #su - postgres&lt;br /&gt;
&lt;br /&gt;
pg_dump databaseName &amp;gt; databaseName.sql&lt;br /&gt;
&lt;br /&gt;
make tar of databaseName.sql and transfer on new postgresql server.&lt;br /&gt;
&lt;br /&gt;
On new server where you install new postgresql or where you want to upload this database  type&lt;br /&gt;
&lt;br /&gt;
 #su - postgres&lt;br /&gt;
&lt;br /&gt;
 #psql -d databasename -f databaseName.sql   ( to upload database in postgresql)&lt;br /&gt;
&lt;br /&gt;
 #psql_dump database &amp;gt; database.sql   ( to take dump of DB )&lt;br /&gt;
&lt;br /&gt;
THATS IT&lt;/div&gt;</summary>
		<author><name>Biswajit</name></author>
	</entry>
</feed>