DSPACE 3.1 INSTALLATION ON DEBIAN SQUEEZE 6.0.

DSPACE INSTALLATION ON DEBIAN SQUEEZE 6.0.3

apt-get install openjdk-6-jdk

————–

apt-get install apache2 (if you don’t have previous installation)

apt-get install tomcat7 tomcat7-admin

apt-get install maven2 (Ant is bundled with this package. No need to install separately) apt-get install postgresql

2. To avoid Java runtime misconfiguration,

update-alternatives –config java

Then select the selection number that says:

/usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode (for open jdk , option 2) /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode (for Sunjava jdk, option 2)

download the latest src release of dspace

http://sourceforge.net/projects/dspace/

wget http://kent.dl.sourceforge.net/project/dspace/DSpace%20Stable/3.1/dspace-3.1-src-release.zip

unzip http://kent.dl.sourceforge.net/project/dspace/DSpace%20Stable/3.1/dspace-3.1-src-release.zip

5. Create Linux user account for Dspace useradd -m dspace (-m option creates user home directory)

This step depends upon your accessibility & privileges to the system

6. Change ownership of newly unpacked directory chown -R dspace:adm dspace-1.8.0-src-release

This step depends on step 5

7. The next step involves Postgresql. It requires you to change the file system permission setting to trust localhost connections you do this by editing the

 pg_hba.conf file. gedit

/etc/postgresql/9.1/main/pg_hba.conf

Change

to pg_hba.config (authetification methods).

host    all         all       127.0.0.1/32       trust

       # md5 -> trust

Connect to database

# su - postgres
$ psql

Create a new database user and a database:

postgres=# CREATE USER dspace WITH PASSWORD 'dspace';
postgres=# CREATE DATABASE dspace OWNER dspace;

8. Restart Postgresql to use the modified configuration /etc/init.d/postgresql restart

///// optional //////////

     apt-get install phppgadmin

/etc/apache2/conf.d/phppgadmin

order deny,allow
deny from all
allow from 127.0.0.0/255.0.0.0
# allow from all
To 

order deny,allow
#deny from all
allow from all

nano /usr/share/phppgadmin/conf/config.inc.php

change to

$conf[‘extra_login_security’] = false;

9. Create Postgresql user account for DSpace createuser -U postgres -d -A -P dspace

createdb -U dspace -E UNICODE dspace

key-in dspace when prompted for password and when asked to confirm password key-in y when prompted to take action on role

10. Change directory to the initial configuration files repository cd dspace-1.8.0-src-release/dspace/config/

gedit dspace.cfg particularly the following parameters:

dspace.dir = /dspace
dspace.hostname = dspace.mydomain.com
dspace.baseUrl = http://dspace.mydomain.com
dspace.url = ${dspace.baseUrl}/xmlui
dspace.name = My DSpace Repository
db.username = dspace
db.password = XXXX
mail.server=smtp.mydomain.com
mail.from.address = dspace-noreply@mydomain.com
feedback.recipient = dspace-help@mydomain.com
mail.admin = dspace-help@mydomain.com
default.language = ar_EG

mkdir /dspace

chown dspace:dspace /dspace

11.

cd [dspace-source]/dspace
mvn packag
 cd [dspace-source]/dspace/target/dspace-<version>-build.dir
ant fresh_install

Before starting Tomcat, create the DSpace administration user. Still logged in as the dspace user run this command:

cd [dspace]/bin
./create-administrator

 Now move /dspace/webapps to tomcat7 webapps folder

OR Add this to /etc/tomcat7/server.xml

in the <host > tag

<!– Define a new context path for all DSpace web apps –>
<Context path=”/xmlui” docBase=”/dspace/webapps/xmlui” allowLinking=”true”/>
<Context path=”/solr” docBase=”/dspace/webapps/solr” allowLinking=”true”/>

and open http://localhost:8080/xmlui

One thought on “DSPACE 3.1 INSTALLATION ON DEBIAN SQUEEZE 6.0.

  1. Pingback: Ahmad Maher | dspace ondebian

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s