Step by Step Install Adempiere Server (ERP OpenSource) on Linux

1:38 PM / Diposting oleh Sharing IT /

First, collect some software for support Adempiere running on your linux server.
1. jdk-1_5_0_11-linux-i586-rpm.bin
You can download from :
http://www.filewatcher.com/m/jdk-1_5_0_11-linux-i586-rpm.bin.47746738.0.0.html
2. ADempiere312-PG-linux-java5.jar
You can download from :
http://www.adempiere.com/index.php/Release_312

In this case i'm install at Fedora 12 Unite ( Final Release Rescheduled at 2009-11-17)

1. Testing java version

root@mis-test master]# java -version
java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-31.b16.fc12-i386) OpenJDK Client VM (build 14.0-b16, mixed mode)

2. In this case i will use java version 1.5.0_11 for Adempiere,
jdk-1_5_0_11-linux-i586-rpm.bin, change file permissions mode with chmod.

[root@mis-test master]# chmod +x jdk-1_5_0_11-linux-i586-rpm.bin
[root@mis-test master]# ./jdk-1_5_0_11-linux-i586-rpm.bin
bla..bla... more preamble words and agrements, use space bar to forward to next preamble, until you clicking yes.

Extracting... UnZipSFX 5.42 of 14 January 2001, by Info-ZIP (Zip-Bugs@lists.wku.edu). inflating: jdk-1_5_0_11-linux-i586.rpm
Preparing... ################################## [100%]
1:jdk ################################## [100%]
Done.


java installed at folder /usr/java/jdk1.5.0_11

3. Add more statements at profile in etc directory, for java service can running automaticaly when the server restarted.

export JAVA_HOME=/usr/java/jdk1.5.0_11 (path from java installed)
export PATH=$JAVA_HOME/bin:$PATH


and save this file profile and restart your server,
tested server after restarted :

[root@mis-test ~]# java -version

java version "1.5.0_11" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03) Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)
the server succes installed Java

4. Do this below statement for access control disavled, clients can connect from any host.
[root@mis-test /]# xhost +
access control disabled, clients can connect from any host


5. Create a postgres user as root, log on as postgress and execute the installer.

[root@mis-test /]# useradd -d /home/postgres -m postgres

and copy file cp ADempiere312-PG-linux-java5.jar to folder /home/postgres

[root@mis-test master]# cp ADempiere312-PG-linux-java5.jar /home/postgres/

6. changes the user and/or group ownership of each given file.

[root@mis-test /]# chown -R postgres /home/postgres/

7. create password for user postgres.
[root@mis-test /]# passwd postgres
Changing password for user postgres.
New password: **********

Retype new password:
**********
BAD PASSWORD: it is based on a dictionary word BAD PASSWORD: is too simple passwd: all authentication tokens updated successfully.

8. Run ADempiere312-PG-linux-java5.jar, at user postgres.

[root@mis-test /]# su - postgres

[postgres@mis-test ~]$ java -jar ADempiere312-PG-linux-java5.jar
After running that's file, new window will appear, and follow more instruction.


Press OK, appear new window and press Next, and choose radio button " I Accept the terms of this license agrement" and press Next,
This window will appear, and be sure five check box had checked, that is : Base, Postgresql Linux, JDBC, PL java, and Adempiere. press button Next.
Use default path /home/postgres/Adempiere for instalation, and press Next.
New Window appear for Instalation progress. After that appear

Edit the values :
Database type = postgresql
SSL = 4443
WebPort = 8088
and press test and Windows key Store Dialog will appear, and press button Green Check.


And the system will check and testing all options in that window. Windows Finish testing will appear.

press Save,

Press "Yes, I understand and Accept", OK, Next and Done (Finish)




9. Add statement at pg_hba.conf, in folder /home/postgres/Adempiere/postgresql/8.2.0/pgdata

host all all 192.168.0.0/24 trust

more clients can acces this server Adempiere

10. Test the server, to know service postgres was started.

[root@mis-test /]# ps ax|grep postgres

17594 pts/0 S 0:00 /home/postgres/Adempiere/postgresql/8.2.0/bin/postgres

17597 ? Ss 0:00 postgres: writer process
17598 ? Ss 0:00 postgres: stats collector process
18019 pts/0 S+ 0:00 grep postgres

11. Sevice Postgres can start automatic when server reboot, edit more statements on /etc/init.d/ at postgres file.

## EDIT FROM HERE
## enter in path of adempiere
. /home/postgres/Adempiere/postgresql/8.2.0/PGSQL.env
# Installation prefix
prefix=/home/postgres/Adempiere/postgresql/8.2.0

# Data directory
PGDATA="/home/postgres/Adempiere/postgresql/8.2.0/pgdata"

# Who to run the postmaster as, usually "postgres". (NOT "root")
PGUSER=postgres

# Where to keep a log file
PGLOG="$PGDATA/serverlog"

## STOP EDITING HERE

if you not find file postgres, you can create it, with command

[root@mis-test init.d]#nano postgres
and copy these statements below , and paste in your postgres file:

#! /bin/sh

# chkconfig: 2345 98 02
# description: PostgreSQL RDBMS

# This is an example of a start/stop script for SysV-style init, such
# as is used on Linux systems. You should edit some of the variables
# and maybe the 'echo' commands.
#
# Place this file at /etc/init.d/postgresql (or
# /etc/rc.d/init.d/postgresql) and make symlinks to
# /etc/rc.d/rc0.d/K02postgresql
# /etc/rc.d/rc1.d/K02postgresql
# /etc/rc.d/rc2.d/K02postgresql
# /etc/rc.d/rc3.d/S98postgresql
# /etc/rc.d/rc4.d/S98postgresql
# /etc/rc.d/rc5.d/S98postgresql
# Or, if you have chkconfig, simply:
# chkconfig --add postgresql
#
# Proper init scripts on Linux systems normally require setting lock
# and pid files under /var/run as well as reacting to network
# settings, so you should treat this with care.

# Original author: Ryan Kirkpatrick

# $PostgreSQL: pgsql/contrib/start-scripts/linux,v 1.7 2004/10/01 18:30:21 tgl Exp $

## EDIT FROM HERE
. /home/postgres/Adempiere/postgresql/8.2.0/PGSQL.env
# Installation prefix
prefix=/home/postgres/Adempiere/postgresql/8.2.0

# Data directory
PGDATA="/home/postgres/Adempiere/postgresql/8.2.0/pgdata"

# Who to run the postmaster as, usually "postgres". (NOT "root")
PGUSER=postgres

# Where to keep a log file
PGLOG="$PGDATA/serverlog"

## STOP EDITING HERE

# Check for echo -n vs echo \c
if echo '\c' | grep -s c >/dev/null 2>&1 ; then
ECHO_N="echo -n"
ECHO_C=""
else
ECHO_N="echo"
ECHO_C='\c'
fi

# The path that is to be used for the script
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# What to use to start up the postmaster (we do NOT use pg_ctl for this,
# as it adds no value and can cause the postmaster to misrecognize a stale
# lock file)
DAEMON="$prefix/bin/postmaster"

# What to use to shut down the postmaster
PGCTL="$prefix/bin/pg_ctl"

set -e

# Only start if we can find the postmaster.
test -x $DAEMON || exit 0
# Parse command line parameters.
case $1 in
start)
$ECHO_N "Starting PostgreSQL: "$ECHO_C
su - $PGUSER -c "$DAEMON -D '$PGDATA' &" >>$PGLOG 2>&1
echo "ok"
;;
stop)
echo -n "Stopping PostgreSQL: "
su - $PGUSER -c "$PGCTL stop -D '$PGDATA' -s -m fast"
echo "ok"
;;
restart)
echo -n "Restarting PostgreSQL: "
su - $PGUSER -c "$PGCTL stop -D '$PGDATA' -s -m fast -w"
su - $PGUSER -c "$DAEMON -D '$PGDATA' &" >>$PGLOG 2>&1
echo "ok"
;;
reload)
echo -n "Reload PostgreSQL: "
su - $PGUSER -c "$PGCTL reload -D '$PGDATA' -s"
echo "ok"
;;
status)
su - $PGUSER -c "$PGCTL status -D '$PGDATA'"
;;
*)
# Print help
echo "Usage: $0 {start|stop|restart|reload|status}" 1>&2
exit 1
;;
esac
exit 0

And then change file mode bits execute with command chmod +x postgres


and use this command for updates and queries runlevel information for system ser-
vices :

[root@mis-test init.d]# chkconfig postgres on


Good Luck...



10 komentar:

Anonymous on October 14, 2010 at 6:54 PM

Hi,

This is a message for the webmaster/admin here at bafrinthio.blogspot.com.

May I use some of the information from this blog post right above if I give a link back to this website?

Thanks,
Mark

Comment by Sharing IT on October 15, 2010 at 2:23 PM

Ok.. No problem... , you can use some of the information from this blog post.

Thanks
Bafrin Thio

Anonymous on October 19, 2010 at 7:09 PM

Have you considered the fact that this might work another way? I am wondering if anyone else has come across something
like this in the past? Let me know your thoughts...

Anonymous on October 20, 2010 at 2:44 AM

Thanks for sharing the link, but argg it seems to be offline... Does anybody have a mirror or another source? Please answer to my post if you do!

I would appreciate if someone here at bafrinthio.blogspot.com could post it.

Thanks,
Peter

Anonymous on December 29, 2010 at 2:54 AM

Hi:

I recently joined bafrinthio.blogspot.com.
I'm hoping to take a look about quite a bit and hook up with fascinating individuals and learn several facts.


Hopefully this idn't get posted in the wrong category. I aplogize if it does.

--------------------

LEVI DOTSON
Middle School Teacher

Anonymous on December 29, 2010 at 5:47 PM

Hi:

I have already been reviewing bafrinthio.blogspot.com as being a lurker for a while now.
I concluded that I will get involved and communicate with the other folks here.
I'm hoping to hook up with lots of stimulating folks and discover some exceptional stuff.

I really hope this doesn't find itself in a bad category. I aplogize if "http://forum.flazx.us" is incorrect.

--------------------

HORACIO RAY
Forest Fire Prevention Supervisor

Anonymous on December 22, 2012 at 8:43 PM

[url=http://www.freewebs.com/atorvastatin]atorvastatin for sale
[/url]atorvastatin espaГ±ol
atorvastatin fda
atorvastatin zentiva
lipitor buy online generic
atorvastatin classification

Anonymous on December 27, 2012 at 12:58 AM

ï»?This does include trees#file_links[D:\NFL\UBB.txt,1,L] logs#file_links[D:\NFL\UBB.txt,1,L] posts#file_links[D:\NFL\UBB.txt,1,L] houses and wooden overhangs“Those of us in the primary ticketing space have learned quite a lot from all of you Other characteristics include review points for stopgorevise decisions and benchmarks used to substantiate completeness of a step within the methodology Be sure and take a minnow bucket with you when you check your trap and get ready to reel in the big ones!I've read articles on how to open your own skate shop and I will admit I came across a lot of good information#file_links[D:\NFL\UBB.txt,1,L] but what I didn't come across were the facts that needed to be statedThe first task after ensuring your elk is deceased is to get him on his back What are some other advantages of satellite TV?Many satellite subscribers are given the option of a free DVR (Digital Video Recorder) system Indy 500 tickets can actually be purchased through a broker at an affordable price
timestamp a > span {display: inline-block;width: 16px;background-image:url(http://images Calloway (Leif Erickson)#file_links[D:\NFL\UBB.txt,1,L] and Althea is there to inventory his assets They even give you the option to sort by overall#file_links[D:\NFL\UBB.txt,1,L] offensive player#file_links[D:\NFL\UBB.txt,1,L] defensive player or rookie rankingsEarly#file_links[D:\NFL\UBB.txt,1,L] the government imposed export tariffs; years#file_links[D:\NFL\UBB.txt,1,L] the RMB exchange rate up #file_links[D:\NFL\UBB.txt,1,L] corporate profit margins and further thinning Third borns can have a weakness for mood altering substances Julio Jones made six catches for 108 yards and a pair of touchdowns to round up his first matchup of the year Purple topaz Purple yellow line into a crystal amethyst meaning because divalent iron Fe #file_links[D:\NFL\UBB.txt,1,L] after a long period of high temperature heating will begin physical changes into ferric Fe #file_links[D:\NFL\UBB.txt,1,L] in general#file_links[D:\NFL\UBB.txt,1,L] many shops will inform consumers amethyst is can not use the sun method to purify degaussing#file_links[D:\NFL\UBB.txt,1,L] the main reason as well

Anonymous on January 16, 2013 at 3:05 AM

Hello. Facebook takes a [url=http://www.freecasinogames.gd]baccarat online[/url] risk on 888 casino administer: Facebook is expanding its efforts to present real-money gaming to millions of British users after announcing a apportion with the online gambling companions 888 Holdings.And Bye.

Anonymous on February 11, 2013 at 6:03 AM

[url=http://casodex-bicalutamide.webs.com/]order Casodex
[/url] Bicalox
Probic
Bitakebir

Post a Comment