EXECUTE
sudo touch /etc/apt/sources.list.d/eprints.list
sudo gedit /etc/apt/sources.list.d/eprints.list
ADD THIS LINE
deb http://deb.eprints-hosting.org/3.3/stable/ ./
SAVE
EXECUTE
sudo wget -O - http://deb.eprints-hosting.org/keyFile || apt-key add - apt-get update
sudo apt update
IF ERROR ABOVE
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B54A09FE95202751
(B54A09FE95202751 or what apt get requested)
sudo apt update
sudo apt install eprints
EXECUTE
sudo mysql
>CREATE USER 'eprints'@'localhost' IDENTIFIED by 'eprints';
>GRANT ALL PRIVILEGES ON *.* TO 'eprints'@'localhost' WITH GRANT OPTION;
>FLUSH PRIVILEGES;
>exit
MODIFY THIS FILE
sudo gedit /usr/share/eprints3/perl_lib/EPrints/Database/mysql.pm
CHANGE LINE 141 TO
$rc &&= $dbh->do( "GRANT ALL PRIVILEGES ON ".$dbh->quote_identifier( $dbname ).".* TO ".$dbh->quote_identifier( $dbuser )."@".$dbh->quote("localhost"));
SAVE THE FILE
EXECUTE
sudo su
su eprints
cd /usr/share/eprints3/
./bin/epadmin create
--Follow instructions
(db user: eprints, db password: eprints, hostname: eprints.locahost)
AT FINAL
exit
--Restart computer
EXECUTE
sudo su
a2ensite eprints
a2dissite 000-default
systemctl reload apache2
when error modify:
sudo gedit /etc/apache2/available-sites/eprints.conf
change line to:
Include /usr/share/eprints3/cfg/apache.conf
save
MODIFY
sudo gedit /usr/share/eprints3/cfg/apache.conf
ADD THIS LINE TO THE FINAL
ServerName localhost
EXECUTE
systemctl start apache2
MODIFY HOSTS FILE
sudo gedit /etc/hosts
ADD THIS LINE TO THE FINAL
127.0.0.1 eprints.locahost
Comments
Post a Comment