You are on page 1of 3

/****************************************************/ /* INSTALL ADEMPIERE IN CENTOS */ /****************************************************/ ~ os packages Not required yum remove squid postgresql php httpd Deployment_Guide-en-US

bind fetch mail mutt samba Required for Adempiere (See note #1) yum install -y make gcc tar readline readline-devel zlib zlib-de vel libxslt identd Finally make sure we are up to date yum -y update import RPMForge yum install -y yum-priorities rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-rele ase-0.3.6-1.el5.rf.i386.rpm or rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-r elease-0.3.6-1.el5.rf.x86_64.rpm Install Java wget http://autosetup1.googlecode.com/files/jdk-6u20-linux-i586-rpm.bin chmod +x jdk-6u20-linux-i586-rpm.bin ./jdk-6u20-linux-i586-rpm.bin Install PostGreSQL wget http://yum.postgresql.org/9.1/redhat/rhel-5-i386/pgdg-centos91-9.1-4.noarch .rpm rpm -ihv pgdg-centos91-9.1-4.noarch.rpm yum install yum install needed) yum install yum install yum install postgresql postgresql-devel (NOTE: paviles 09/23/09 16:51 postgresql-devel not postgresql-server pgadmin3 postgresql-contrib

#ln -s /var/lib/pgsql/9.1/data /var/lib/pgsql #ln -s /var/lib/pgsql/9.1/backups /var/lib/pgsql service postgresql-9.1 initdb vi /var/lib/pgsql/9.1/data/pg_hba.conf #wget http://jdbc.postgresql.org/download/postgresql-9.1-901.jdbc3.jar #mv /var/lib/pgsql/ yum install postgresql91-jdbc.i386 passwd postgres vi /var/lib/pgsql/.bash_profile

# IPv4 local connections: host all all 127.0.0.1/32 trust

export JAVA_HOME=/usr/java/jdk1.6.0_20 export ADEMPIERE_HOME=/home/adempiere/Adempiere PATH=$PATH:$HOME/bin:$JAVA_HOME/bin useradd adempiere passwd adempiere su - adempiere vi ~/.bash_profile export JAVA_HOME=/usr/java/jdk1.6.0_20/ export ADEMPIERE_HOME=/home/adempiere/Adempiere PATH=$PATH:$HOME/bin:$JAVA_HOME/bin PLJava1.4 wget http://pgfoundry.org/frs/download.php/1598/pljava-i686-pc-linux-gnu-pg8.3-1 .4.0.tar.gz mkdir /home/adempiere/pljava mv pljava-i686-pc-linux-gnu-pg8.3-1.4.0.tar.gz /home/adempiere cd /home/adempiere tar zxvf pljava-i686-pc-linux-gnu-pg8.3-1.4.0.tar.gz vi /var/lib/pgsql/9.1/data/postgresql.conf ###ADD dynamic_library_path = '\$libdir:/home/adempiere/pljava' custom_variable_classes = 'pljava' pljava.classpath = '/home/adempiere/pljava/pljava.jar' Java configuration file. echo '/usr/java/jdk1.6.0_20/jre/lib/i386' > /etc/ld.so.conf.d/java.conf echo '/usr/java/jdk1.6.0_20/jre/lib/i386/client' >> /etc/ld.so.conf.d/java.conf echo '/usr/java/jdk1.6.0_20/jre/lib/i386/native_threads' >> /etc/ld.so.conf.d/ja va.conf pg_ctl start createuser -P -E -d adempiere Enter password for new role: Enter it again: Shall the new role be a superuser? (y/n) y createdb -E UTF8 -O adempiere adempiere --template=template0 #psql -d adempiere -U adempiere < Adempiere_pg.dmp 2>&1 > install.log -- Download adempiere wget http://downloads.sourceforge.net/project/adempiere/ADempiere%20Official%20R elease/Adempiere%203.7.0-LTS/Adempiere_370LTS.tar.gz?r=http%3A%2F%2Fsourceforge. net%2Fprojects%2Fadempiere%2Ffiles%2FADempiere%2520Official%2520Release%2FAdempi ere%25203.7.0-LTS%2F&ts=1331441969&use_mirror=voxel -- Unpack tar zxvf Adempiere_370LTS.tar.gz

-- Copy properties and edit cp AdempiereEnvTemplate.properties AdempiereEnv.properties ADEMPIERE_HOME=/home/adempiere/Adempiere JAVA_MHOME=/usr/java/jdk1.6.0_20 ADEMPIERE_KEYSTORE=/home/adempiere/Adempiere/keystore/myKeystore ADEMPIERE_DB_PASSWORD=adempiere11 ADEMPIERE_KEYSTOREPASS=myPass11 #Inicializar la base de datos -- Editar ADEMPIERE_HOME/utils/postgresql/ImportAdempiere.sh Agreagar "--template=template0" a la creacion de la base de datos cd $ADEMPIERE_HOME cd utils ./RUN_ImportAdempiere.sh Setup ./RUN_silentsetup.sh Iniciar servidor nohup ./RUN_Server2.sh &