Jump to content
Wiki Home
EPrints Home
Bazaar
Files
Main menu
Main menu
move to sidebar
hide
Navigation
Front Page
EPrints 3 Manual
EPrints Training Course
EPrints Glossary
Installing EPrints
How-to Configure EPrints
EPrints 3.2+ API
EPrints 3 Reference
EPrints Plugins
Wiki
All categories
Recent changes
Main Page
Help
EPrints Documentation
Search
Search
Appearance
Log in
Request account
Personal tools
Log in
Request account
Pages for logged out editors
learn more
Contributions
Talk
Editing
Setting up an Archive
(section)
Page
Discussion
British English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Example Configuration=== The "epadmin create" script will run through a number of configuration options, an example of which is listed below. Please change the settings to suit your site configuration. <pre> -bash-4.1$ ./bin/epadmin create pub Create an EPrint Repository Please select an ID for the repository, which will be used to create a directory and identify the repository. Lower case letters and numbers, may not start with a number. examples: "lemurprints" or "test3" Archive ID? testrepo We need to create /usr/share/eprints/archives/testrepo, doing it now⦠Creating initial files: Installing: /usr/share/eprints/archives/testrepo/cfg Installing: /usr/share/eprints/archives/testrepo/cfg/lang [...] Installing: /usr/share/eprints/archives/testrepo/cfg/workflows/eprint Ok. I've created the initial config files and directory structure. I've also created a "disk0" directory under documents/ if you want your full texts to be stored on a different partition then remove the disk0, and create a symbolic link to the directory you wish to store the full texts in. Additional links may be placed here to be used when the first is full. Configure vital settings? [yes] ? Core configuration for testrepo Please enter the fully qualified hostname of the repository. For a production system we recommend against using the real hostname of the machine. Example: testrepo.footle.ac.uk Hostname? testprint Please enter the port of the webserver. This is probably 80, but you may wish to run apache on a different port if you are experimenting. Webserver Port [80] ? Please enter all the aliases which could reach the repository, and indicate if you would like EPrints to write a Redirect Rule to redirect requests to this alias to the correct URL. Some suggestions: centos610.local centos610 centos610 Enter a single hash (#) when you're done. Alias (enter # when done) [#] ? testprint.local Redirect testprint.local to testprint [yes] ? 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? someone@example.com 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] ? Write these core settings? [yes] ? Wrote /usr/share/eprints/archives/testrepo/cfg/cfg.d/adminemail.pl Wrote /usr/share/eprints/archives/testrepo/cfg/cfg.d/10_core.pl Wrote /usr/share/eprints/archives/testrepo/cfg/lang/en/phrases/archive_name.xml Configure database? [yes] ? Configuring Database for: testrepo Database Name [testrepo] ? 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 [testrepo] ? Database Password [nxxxxuAw] ? Database Engine [MyISAM] ? Write these database settings? [yes] ? Wrote /usr/share/eprints/archives/testrepo/cfg/cfg.d/database.pl EPrints can create the database, and grant the correct permissions. Create database "testrepo" [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 testrepo Enter a username [admin] ? Select a user type (user|editor|admin) [admin] ? Enter Password? Email? first.last@example.org 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/eprints/archives/testrepo/html/en/codemirror/mode/velocity /usr/share/eprints/lib/static/codemirror/mode/velocity/velocity.js -> /usr/share/eprints/archives/testrepo/html/en/codemirror/mode/velocity/velocity.js mkdir /usr/share/eprints/archives/testrepo/html/en/style/images /usr/share/eprints/lib/static/style/images/action_edit.png -> /usr/share/eprints/archives/testrepo/html/en/style/images/action_edit.png [...] /usr/share/eprints/lib/static/style/images/action_unpack.png -> /usr/share/eprints/archives/testrepo/html/en/style/images/action_unpack.png /usr/share/eprints/lib/static/codemirror/lib/util/loadmode.js -> /usr/share/eprints/archives/testrepo/html/en/codemirror/lib/util/loadmode.js Ending EPrints Repository. Do you want to import the LOC subjects? [yes] ? Starting EPrints Repository. Connecting to DB ... done. Importing from /usr/share/eprints/archives/testrepo/cfg/subjects... Done importing 280 subjects from /usr/share/eprints/archives/testrepo/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/sch_soc Reindexing item: subject/subjects 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/eprints/cfg/apache/testrepo.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/eprints/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/ -bash-4.1$ </pre>
Summary:
Please note that all contributions to EPrints Documentation may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
EPrints Documentation:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)