LabResources:DspAce: Difference between revisions
From Adapt
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 76: | Line 76: | ||
</pre> | </pre> | ||
Edit data/postgres.conf and uncomment | Edit data/postgres.conf and uncomment ''listen_addresses = 'localhost''' | ||
Now, start postgres. | Now, start postgres. | ||
Line 87: | Line 87: | ||
==DSpace setup== | ==DSpace setup== | ||
Directories, /export/dspace-source, /export/dspace-install | |||
<pre> | <pre> | ||
Line 105: | Line 105: | ||
CREATE DATABASE | CREATE DATABASE | ||
</pre> | </pre> | ||
Edit dspace-source/dspace-1.4.2-source/config/dspace.cfg, set | Edit dspace-source/dspace-1.4.2-source/config/dspace.cfg, set | ||
* dspace.dir = /export/install/dspace-install | |||
* dspace.url = <nowiki>http://naradev08.umiacs.umd.edu:8080/dspace</nowiki> | |||
* dspace.hostname = naradev08.umiacs.umd.edu | |||
* dspace.name = ADAPT Test dspace | |||
* db.password = dspace | |||
* mail.server=smtp.umiacs.umd.edu | |||
* mail.from.address = naraapps email | |||
* feedback.recipient = toaster | |||
* mail.admin = toaster | |||
Now compile the mofo | Now compile the mofo | ||
<pre> | <pre> | ||
[naraapp@naradev08 dspace-source]$ cd dspace-1.4.2-source | [naraapp@naradev08 dspace-source]$ cd dspace-1.4.2-source | ||
[naraapp@naradev08 dspace-1.4.2-source]$ setenv JAVA_HOME /opt/jdk1.5.0 | [naraapp@naradev08 dspace-1.4.2-source]$ setenv JAVA_HOME /opt/jdk1.5.0 |
Latest revision as of 21:08, 11 September 2008
DSpace on naradev08
Tomcat setup
[naraapp@naradev08 /export]$ wget http://www.hightechimpact.com/Apache/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.tar.gz --15:25:56-- http://www.hightechimpact.com/Apache/tomcat/tomcat-5/v5.5.25/bin/apache-tomcat-5.5.25.tar.gz => `apache-tomcat-5.5.25.tar.gz' ... [naraapp@naradev08 /export]$ tar -xpzf dspace-source/apache-tomcat-5.5.25.tar.gz
database setup
Postgres 8.2.5 was installed into /export/postgres/install w/ db's stored in /export/postgres/data
[naraapp@naradev08 postgres]$ tar -xzf postgresql-8.2.5.tar.gz [naraapp@naradev08 postgresql-8.2.5]$ ./configure --prefix=/export/postgres/install checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether NLS is wanted... no checking for default port number... 5432 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... ... config.status: linking ./src/backend/port/dynloader/linux.h to src/include/dynloader.h config.status: linking ./src/include/port/linux.h to src/include/pg_config_os.h config.status: linking ./src/makefiles/Makefile.linux to src/Makefile.port [naraapp@naradev08 postgresql-8.2.5]$ make install make -C doc install make[1]: Entering directory `/export/postgres/postgresql-8.2.5/doc' mkdir -p -- /export/postgres/install/doc/html ... [naraapp@naradev08 postgres]$ cd /export/postgres [naraapp@naradev08 postgres]$ mkdir data [naraapp@naradev08 postgres]$ install/bin/initdb -D /export/postgres/data/ The files belonging to this database system will be owned by user "naraapp". This user must also own the server process. The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. fixing permissions on existing directory /export/postgres/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers/max_fsm_pages ... 24MB/153600 creating configuration files ... ok creating template1 database in /export/postgres/data/base/1 ... ok initializing pg_authid ... ok initializing dependencies ... ok creating system views ... ok loading system objects' descriptions ... ok creating conversions ... ok setting privileges on built-in objects ... ok creating information schema ... ok vacuuming database template1 ... ok copying template1 to template0 ... ok copying template1 to postgres ... ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the -A option the next time you run initdb. Success. You can now start the database server using: install/bin/postgres -D /export/postgres/data or install/bin/pg_ctl -D /export/postgres/data -l logfile start [naraapp@naradev08 postgres]$
Edit data/postgres.conf and uncomment listen_addresses = 'localhost'
Now, start postgres.
[naraapp@naradev08 postgres]$ install/bin/pg_ctl -D /export/postgres/data -l /tmp/pglog start server starting
DSpace setup
Directories, /export/dspace-source, /export/dspace-install
[naraapp@naradev08 dspace-source]$ tar -xzf dspace-1.4.2-source.tgz [naraapp@naradev08 dspace-source]$ cd dspace-1.4.2-source/lib/ [naraapp@naradev08 lib]$ wget http://jdbc.postgresql.org/download/postgresql-8.2-506.jdbc3.jar --15:06:53-- http://jdbc.postgresql.org/download/postgresql-8.2-506.jdbc3.jar ... [naraapp@naradev08 lib]$ setenv PATH ${PATH}:/export/postgres/install/bin [naraapp@naradev08 lib]$ createuser -W Enter name of user to add: dspace Shall the new user be allowed to create databases? (y/n) y Shall the new user be allowed to create more new users? (y/n) n Password: CREATE USER [naraapp@naradev08 lib]$ createdb -U dspace -E UNICODE dspace CREATE DATABASE
Edit dspace-source/dspace-1.4.2-source/config/dspace.cfg, set
- dspace.dir = /export/install/dspace-install
- dspace.url = http://naradev08.umiacs.umd.edu:8080/dspace
- dspace.hostname = naradev08.umiacs.umd.edu
- dspace.name = ADAPT Test dspace
- db.password = dspace
- mail.server=smtp.umiacs.umd.edu
- mail.from.address = naraapps email
- feedback.recipient = toaster
- mail.admin = toaster
Now compile the mofo
[naraapp@naradev08 dspace-source]$ cd dspace-1.4.2-source [naraapp@naradev08 dspace-1.4.2-source]$ setenv JAVA_HOME /opt/jdk1.5.0 [naraapp@naradev08 dspace-1.4.2-source]$ /opt/apache-ant-1.6.5/bin/ant fresh_install Buildfile: build.xml ... [echo] You should also be able to access the administrator UI: [echo] [echo] http://naradev08.umiacs.umd.edu:8080/dspace/dspace-admin [echo] ==================================================================== [echo] BUILD SUCCESSFUL Total time: 18 seconds [naraapp@naradev08 dspace-1.4.2-source]$ /export/dspace-install/bin/create-administrator Creating an initial administrator account E-mail address: toaster First name: Mike Last name: Smorul WARNING: Password will appear on-screen. Password: dspace Again to confirm: dspace Is the above data correct? (y or n): y Administrator account created [naraapp@naradev08 dspace-1.4.2-source]$ cp build/*.war /export/apache-tomcat-5.5.25/webapps/ [naraapp@naradev08 dspace-1.4.2-source]$ /export/apache-tomcat-5.5.25/bin/startup.sh Using CATALINA_BASE: /export/apache-tomcat-5.5.25 Using CATALINA_HOME: /export/apache-tomcat-5.5.25 Using CATALINA_TMPDIR: /export/apache-tomcat-5.5.25/temp Using JRE_HOME: /opt/jdk1.5.0
Now browse to http://naradev08.umiacs.umd.edu:8080/dspace/