Difference between revisions of "SUNScholar/Install DSpace/S06"

From Libopedia
Jump to navigation Jump to search
Line 14: Line 14:
 
A lot of information now appears on the screen. Below are shown the last lines confirming success:
 
A lot of information now appears on the screen. Below are shown the last lines confirming success:
 
<pre>
 
<pre>
[echo] ====================================================================
+
    [java] Started: 1349777373408
[echo] The DSpace code has been installed, and the database initialized.
+
    [java] Ended: 1349777373778
[echo]
+
    [java] Elapsed time: 0 secs (370 msecs)
[echo] To complete installation, you should do the following:
+
    [echo]
[echo]
+
    [echo] ====================================================================
[echo] * Setup your Web servlet container (e.g. Tomcat) to look for your
+
    [echo] The DSpace code has been installed, and the database initialized.
[echo] DSpace web applications in: /home/dspace/webapps/
+
    [echo]  
[echo]
+
    [echo] To complete installation, you should do the following:
[echo] OR, copy any web applications from /home/dspace/webapps/ to
+
    [echo]  
[echo] the appropriate place for your servlet container.
+
    [echo] * Setup your Web servlet container (e.g. Tomcat) to look for your
[echo] (e.g. '$CATALINA_HOME/webapps' for Tomcat)
+
    [echo]   DSpace web applications in: /home/dspace/webapps/
[echo]
+
    [echo]  
[echo] * Make an initial administrator account (an e-person) in DSpace:
+
    [echo]   OR, copy any web applications from /home/dspace/webapps/ to
[echo]
+
    [echo]   the appropriate place for your servlet container.
[echo] /home/dspace/bin/create-administrator
+
    [echo]   (e.g. '$CATALINA_HOME/webapps' for Tomcat)
[echo]
+
    [echo]  
[echo] * Start up your servlet container (Tomcat etc.)
+
    [echo] * Make an initial administrator account (an e-person) in DSpace:
[echo]
+
    [echo]  
[echo] You should then be able to access your DSpace's 'home page':
+
    [echo]   /home/dspace/bin/dspace create-administrator
[echo]
+
    [echo]  
[echo] http://vleinternal.bromley.ac.uk/dspace
+
    [echo] * Start up your servlet container (Tomcat etc.)
[echo]
+
    [echo]  
[echo] You should also be able to access the administrator UI:
+
    [echo] You should then be able to access your DSpace's 'home page':
[echo]
+
    [echo]  
[echo] http://vleinternal.bromley.ac.uk/dspace/dspace-admin
+
    [echo]   http://bibj-lt-hgibson.sun.ac.za
[echo] ====================================================================
+
    [echo]  
[echo]
+
    [echo] You should also be able to access the administrator UI:
 +
    [echo]  
 +
    [echo]   http://bibj-lt-hgibson.sun.ac.za/dspace-admin
 +
    [echo] ====================================================================
 +
    [echo]        
 +
 
 
BUILD SUCCESSFUL
 
BUILD SUCCESSFUL
 
</pre>
 
</pre>

Revision as of 12:07, 9 October 2012

Install DSpace - Index

Step 6. Compile the DSpace Java webapp

Change directory to the build directory by typing as follows:

cd /home/dspace/dspace-1.7.2-src-release/dspace/target/dspace-1.7.2-build.dir

Type the following in the above named directory:

ant fresh_install

A lot of information now appears on the screen. Below are shown the last lines confirming success:

     [java] Started: 1349777373408
     [java] Ended: 1349777373778
     [java] Elapsed time: 0 secs (370 msecs)
     [echo] 
     [echo] ====================================================================
     [echo]  The DSpace code has been installed, and the database initialized.
     [echo] 
     [echo]  To complete installation, you should do the following:
     [echo] 
     [echo]  * Setup your Web servlet container (e.g. Tomcat) to look for your
     [echo]    DSpace web applications in: /home/dspace/webapps/
     [echo] 
     [echo]    OR, copy any web applications from /home/dspace/webapps/ to
     [echo]    the appropriate place for your servlet container.
     [echo]    (e.g. '$CATALINA_HOME/webapps' for Tomcat)
     [echo] 
     [echo]  * Make an initial administrator account (an e-person) in DSpace:
     [echo] 
     [echo]    /home/dspace/bin/dspace create-administrator
     [echo] 
     [echo]  * Start up your servlet container (Tomcat etc.)
     [echo] 
     [echo]  You should then be able to access your DSpace's 'home page':
     [echo] 
     [echo]    http://bibj-lt-hgibson.sun.ac.za
     [echo] 
     [echo]  You should also be able to access the administrator UI:
     [echo] 
     [echo]    http://bibj-lt-hgibson.sun.ac.za/dspace-admin
     [echo] ====================================================================
     [echo]         

BUILD SUCCESSFUL

Please note: If you change anything later then rebuild your Dspace. Do not run "ant fresh_install" again, this is only done once during installation.

Step 6.1: Setup file permissions

After a successful initial build, we give user "tomcat6" full read and write permissions to the dspace user home folders.

sudo adduser tomcat6 dspace
sudo adduser dspace tomcat6
sudo chown tomcat6.dspace -R /home/dspace
sudo chmod 0777 -R /home/dspace
PREVIOUS
NEXT