To install eprints and all its dependencies execute the following (as root):
Configuring ePrints
apt-get update apt-get install eprints
Configuring ePrints
eprints.mydomain
eprints
eprints.mydomain
eprints
Enter a single hash (#) when you're done.
Alias (enter # when done) [#] ?
Please enter the path part of the repository's base URL. This should probably
be '/'.
Path [/] ?
If you will use https for your user pages (including login) enter the https hostname
here, or leave blank when using http only.
HTTPS Hostname [] ?
Administrator Email?
Enter the name of the repository in the default language. If you wish to enter
other titles for other languages or enter non ascii characters then you may
enter something as a placeholder and edit the XML config file which this
script generates.
Archive Name [Test Repository] ? gech-epritns
Write these core settings? [yes] ?
Wrote /usr/share/eprints3/archives/gecheprints/cfg/cfg.d/adminemail.pl
Wrote /usr/share/eprints3/archives/gecheprints/cfg/cfg.d/10_core.pl
Wrote /usr/share/eprints3/archives/gecheprints/cfg/lang/en/phrases/archive_name.xml
Configure database? [yes] ?
Configuring Database for: gecheprints
Database Name [gecheprints] ?
MySQL Host [localhost] ?
You probably don't need to set socket and port (unless you do!?).
MySQL Port (# for no setting) [#] ?
MySQL Socket (# for no setting) [#] ?
Database User [gecheprints] ?
Database Password [s6b5NgkU] ?
Database Engine [MyISAM] ?
Write these database settings? [yes] ?
Wrote /usr/share/eprints3/archives/gecheprints/cfg/cfg.d/database.pl
EPrints can create the database, and grant the correct permissions.
Create database "gecheprints" [yes] ?
Database Superuser Username [root] ?
Database Superuser Password?
Error creating database: [1045] Access denied for user 'root'@'localhost' (using password: YES)
Database Superuser Username [root] ?
Database Superuser Password?
Create database tables? [yes] ?
Creating database tables...
Set DB compatibility flag to '3.3.4'.
Done creating database tables.
Create an initial user? [yes] ?
Creating a new user in gecheprints
Enter a username [admin] ?
Select a user type (user|editor|admin) [admin] ?
Enter Password?
Email?
Successfully created new user:
ID: 1
Do you want to build the static web pages? [yes] ?
Starting EPrints Repository.
Connecting to DB ... done.
mkdir /usr/share/eprints3/archives/gecheprints/html/en/codemirror/mode/ntriples
Do you want to import the LOC subjects? [yes] ?
Starting EPrints Repository.
Connecting to DB ... done.
Importing from /usr/share/eprints3/archives/gecheprints/cfg/subjects...
Done importing 280 subjects from /usr/share/eprints3/archives/gecheprints/cfg/subjects
Reindexing subject dataset to set ancestor data
Reindexing item: subject/A
Reindexing item: subject/AC
Reindexing item: subject/AI
Reindexing item: subject/AM
Reindexing item: subject/AS
....so on..
Done reindexing
Ending EPrints Repository.
Exiting normally.
Do you want to update the apache config files? (you still need to add the 'Include' line) [yes] ?
Wrote /usr/share/eprints3/cfg/apache.conf
Wrote /usr/share/eprints3/cfg/apache_ssl.conf
Wrote /usr/share/eprints3/cfg/apache/gecheprints.conf
Add the following line to your apache configuration:
Include /usr/share/eprints3/cfg/apache.conf
You must restart apache for any changes to take effect!
-------------------------------------------------------------------
That seemed to more or less work...
-------------------------------------------------------------------
Now make any required changes to the cfg files.
Note that changing the metadata configuration may require the database
tables to be regenerated. epadmin erase_data will regenerate the
eprints and documents tables only. erase_data will regenerate everything.
(nb. these also do erase the contents of the tables, and any uploaded
files).
Make sure that your main apache config file contains the line:
Include /usr/share/eprints3/cfg/apache.conf
Then stop and start your webserver:
Often:
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
(or maybe /usr/local/apache/bin/apachectl stop & start)
And then try connecting to your repository.
-------------------------------------------------------------------
Don't forget to register your repository at http://roar.eprints.org/
-------------
cd /etc/apache2/sites-available# ls
000-default.conf default-ssl.conf eprints eprints.conf
# a2ensite eprints
Enabling site eprints.
To activate the new configuration, you need to run:
service apache2 reload
# a2dissite 000-default.conf
# service apache2 reload
* Reloading web server apache2
Then open the browser and submit the localhost or IP of the system.You will see, ePrints Home Page instead of Ubuntu Default Page.Next, login as user that you had created during your insitial configuration (as shown in the picture) and do necessary settings and create other user/password for login to eprints sytem


No comments:
Post a Comment