<\/span><\/h2>\n\n\n\nLAMP (Linux, Apache, MySQL, Perl) is a combination of open-source software stacks required to run the EPrints application.<\/p>\n\n\n\n
The Apache web server can be easily installed with:<\/p>\n\n\n\n
sudo apt-get install apache2<\/code><\/pre>\n\n\n\nOnce the installation is complete, enable the Apache service to start automatically upon system boot. <\/p>\n\n\n\n
sudo systemctl enable apache2<\/code><\/pre>\n\n\n\nThe next step is to install MySQL. It is one of the most popular database management systems and offers a lot of functionality with managing and configuring databases.<\/p>\n\n\n\n
To install MySQL on your system, type the following command and enter Y when prompted:<\/p>\n\n\n\n
sudo apt-get install mysql-server<\/code><\/pre>\n\n\n\nLast in this step is to install Perl, which comes installed with Ubuntu 20.04 by default, but if you don’t have Perl installed on your system you can install it with the following command:<\/p>\n\n\n\n
sudo apt install perl<\/code><\/pre>\n\n\n\n<\/span>Step 3: EPrints installation<\/span><\/h2>\n\n\n\nYou will first need to add the EPrints package repository to your Ubuntu server with the following command:<\/p>\n\n\n\n
echo \"deb http:\/\/deb.eprints.org\/3.4\/stable\/ .\/\" > \/etc\/apt\/sources.list.d\/eprints.list<\/code><\/pre>\n\n\n\nYou can proceed with adding the GPG key and then updating the repositories with the commands:<\/p>\n\n\n\n
wget -O - http:\/\/deb.eprints.org\/keyFile | apt-key add -\napt-get update<\/code><\/pre>\n\n\n\nNow you can install the EPrints package.<\/p>\n\n\n\n
apt-get install eprints<\/code><\/pre>\n\n\n\nWhen the installation is finished you can find Eprints installed to \/usr\/share\/eprints. However, you still won’t have a running archive.<\/p>\n\n\n\n
Before we create the archive, “epadmin create” runs at the eprints user, this will not be able to create a database for EPrints. That’s why we will create the EPrints user in MySQL and grant him permissions.<\/p>\n\n\n\n
First login into MySQL with your root user, if you still haven’t set a password for your root user you can log in with:<\/p>\n\n\n\n
mysql -u root<\/code><\/pre>\n\n\n\nThis will take you to the MySQL Command-Line Tool, here you can create the eprints user and grant him permissions. Please don’t forget to change the ‘changeme’ with your real password:<\/p>\n\n\n\n
CREATE USER 'eprints'@'localhost' IDENTIFIED by 'changeme';\n\nGRANT ALL PRIVILEGES ON *.* TO 'eprints'@'localhost' WITH GRANT OPTION;\n\nflush privileges;\n<\/code><\/pre>\n\n\n\nYou may also want to restrict which databases the EPrints user has control over if you know the “Archive ID” you are going to use.<\/p>\n\n\n\n
Now you can proceed to create your first archive. Start by changing to the EPrints user and navigating to the \/usr\/share\/EPrints directory:<\/p>\n\n\n\n
su eprints\n\ncd \/usr\/share\/eprints<\/code><\/pre>\n\n\n\nYou can start with archive creation with:<\/p>\n\n\n\n
.\/bin\/epadmin create zero<\/code><\/pre>\n\n\n\nThis will the script with a number of configurations, you can check the example below or you can choose your own configuration:<\/p>\n\n\n\n
-bash-4.1$ .\/bin\/epadmin create\n\nCreate an EPrint Repository\n\nPlease select an ID for the repository, which will be used to create a directory\nand identify the repository. Lower case letters and numbers, may not start with\na number. examples: \"lemurprints\" or \"test3\"\n\nArchive ID? testrepo \n\n\nConfigure vital settings? [yes] ? ENTER\nCore configuration for testrepo\n\n\nHostname? testprint\n\nWebserver Port [80] ? ENTER\n\n\nEnter a single hash (#) when you're done.\n\nAlias (enter # when done) [#] ? testprint.local\nRedirect testprint.local to testprint [yes] ? \n\nAlias (enter # when done) [#] ? ENTER\n\nPath [\/] ? ENTER\n\nHTTPS Hostname [] ? ENTER\n\nAdministrator Email? someone@example.com\n\nArchive Name [Test Repository] ? ENTER\n\nOrganisation Name [Organisation of Test] ? ENTER\n\nWrite these core settings? [yes] ? ENTER\n\nConfigure database? [yes] ? \n\nConfiguring Database for: testrepo\nDatabase Name [testrepo] ? ENTER\nMySQL Host [localhost] ? ENTER\n\nYou probably don't need to set socket and port (unless you do!?).\nMySQL Port (# for no setting) [#] ? ENTER\nMySQL Socket (# for no setting) [#] ? ENTER\nDatabase User [testrepo] ? ENTER\nDatabase Password [nxxxxuAw] ? ENTER \nDatabase Engine [InnoDB] ? ENTER\n\nWrite these database settings? [yes] ? ENTER\n\nCreate database \"testrepo\" [yes] ? ENTER\n\nDatabase Superuser Username [root] ? eprints\n\nDatabase Superuser Password? nxxxxuAw #the same password previously\n\nCreate database tables? [yes] ? ENTER\n\n\nCreate an initial user? [yes] ? ENTER\n\nEnter a username [admin] ? ENTER\n\nSelect a user type (user|editor|admin) [admin] ? ENTER \nEnter Password? 'Choose_your_user_password'\nEmail? first.last@example.org\n\n\nSuccessfully created new user:\n ID: 1\nDo you want to build the static web pages? [yes] ? ENTER \n\nDo you want to import the LOC subjects? [yes] ? ENTER\n\nYou must restart apache for any changes to take effect!\n<\/code><\/pre>\n\n\n\nFor the changes to take effect exit the EPrints user and restart the apache2 service.<\/p>\n\n\n\n
Now you can disable the default web page and enable the EPrint’s configuration on Apache, don’t forget to restart the service at the end. You can do that with the following commands:<\/p>\n\n\n\n
a2dissite 000-default.conf\na2ensite eprints.conf\nsystemctl restart apache2<\/code><\/pre>\n\n\n\n<\/p>\n\n\n\n
That\u2019s it! The installation of EPrints on Ubuntu 20.04 has been completed, and you can now access the EPrint’s page with your IP address URL, http:\/\/IP_ADDRESS on your favorite web browser.<\/p>\n\n\n\n
Of course, you don\u2019t need to install EPrints on Ubuntu 20.04 yourself if you use one of our fully managed VPS Hosting<\/a><\/strong> services, in which case you can simply ask our expert Linux admins to install and configure it for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n\n\n\n <\/figure><\/div>\n\n\n\nP.S. If you liked this post on how to install EPrints on Ubuntu 20.04 please share it with your friends on the social networks by using the share shortcuts below, or simply leave a comment in the comments section. Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"
EPrints is open-source software designed for building open access repositories that are OAI-PMH compliant. It is primarily used for scientific … <\/p>\n
Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":39573,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[1960,1603,1839],"yoast_head":"\nHow To Install EPrints on Ubuntu 20.04 | RoseHosting<\/title>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t \n\t \n\t \n \n \n \n \n \n \n \n\t \n\t \n\t \n