EPrints Technical Mailing List Archive

Message: #05135


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Installing Eprints 3.3.14 on CentOS7 uses wrong directory


Hi Adam,

Yes I have seen the video but it is very different for CentOS 7. I expected the installation to be in /opt/eprints3 as quite a bit of the instructions/documentation on the EPrints wiki refer to the installation home as being in /opt/eprints3 and give the impression that installation should be there.

Also, I had a bit of confusion over whether I should actually create the home directory for the eprints user as /opt/eprints3; I cannot recall seeing the user creating part in the video.

Thank you for getting back to me so quickly despite big day for EPrints :). I will continue my setup with that as the home directory.


Best regards,
Kahena

MIS Officer | Information Systems & Technology
University of Bolton | Deane Road | Bolton | BL3 5AB
Email: k.morrissey@bolton.ac.uk | Tel: +44 (0)1204 903 207


-----Original Message-----
From: Morrissey, Kahena 
Sent: 18 November 2015 14:00
To: 'eprints-tech@ecs.soton.ac.uk'
Subject: Installing Eprints 3.3.14 on CentOS7 uses wrong directory 

Hi Everyone,

I am trying to install a test EPrints 3.3.14 to a VirtualBox guest CentOS 7 (CentOS Linux release 7.1.1503 (Core)) but I am having an issue. 

When I use yum to install EPrints it installs it to /usr/share/eprints rather than /opt/eprints3/.

Can anyone say what I may be doing wrong please?

I have used the following link as the primary guide:
http://wiki.eprints.org/w/Installing_EPrints_3_on_RedHat_Enterprise_5


My steps up to this point, from a minimal installation of CentOS7, are outlined below:

###################################################################################

# The following requires an enabled network connection and all proxy settings (http and ftp) set, if required

###################################################################################
#Apache Installation
# Run ALL as root or sudo user

systemctl enable httpd.service		#[root@ ~] or sudo
systemctl start httpd.service		#[root@ ~] or sudo

###################################################################################
#MySQL Installation
# Run ALL as root or sudo user

#No MySQL server available so add a repository that has it available.
#Go to: http://dev.mysql.com/downloads/repo/yum/

#Choose the desired distribution (Red Hat Enterprise Linux 7 / Oracle Linux 7 for this tutorial) and click Download.
#The download link can be retrieved without registering for an Oracle account. Locate the No thanks, just start my download link and pass the link URL as a parameter to rpm.
#mysql57-community-release-el7-7.noarch (1).rpm

rpm -Uvh http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm	
yum info mysql-community-server
yum -y install mysql-community-server	
systemctl enable mysqld	

###################################################################################
# Dependencies
# Run ALL as root or sudo user
							
yum -y install wget							
yum install lynx							
yum -y install gcc							
yum -y install poppler poppler-utils		
yum -y install glib2-devel
yum -y install tetex-latex
yum -y install ImageMagick
yum -y install perl	
yum install -y epel-release	
yum install -y mod_perl	
yum -y install perl-DBI
yum -y install perl-DBD-MySQL
yum -y install perl-XML-Parser
yum -y install perl-XML-LibXML
yum -y install perl-XML-LibXML-Common
yum info perl-XML-SAX
rpm -q perl-XML-SAX
yum -y install perl-XML-SAX


# Ensure that proxy is set if proxy is in use perl -MCPAN -e shell cpan[1]> install Data::ShowTable cpan[2]> install MIME::Base64 cpan[3]> install Unicode::String cpan[4]> install Term::ReadKey cpan[5]> install MIME::Lite cpan[6]> install CGI

###################################################################################
# Start MySQL server
# Run ALL as root or sudo user

systemctl start mysqld

#You will need the following info to do secure the MySQL DB root password:
#MySQL v 5.7 or higher generates a temporary random password after installation #and stored that in mysql error log file, located at /var/log/mysqld.log #for an installation by the MySQL Yum repository on CentOS 7.
#use below command to see the password: 

grep 'temporary password' /var/log/mysqld.log		#[root@ ~] or sudo

# Harden MySQL installation							#[root@ ~] or sudo
/usr/bin/mysql_secure_installation

###################################################################################
# EPrints installation
# Run ALL as root or sudo user

#Prep
# Add eprints user in preparation of installation useradd -d /opt/eprints3 -s /sbin/nologin eprints
usermod -a -G eprints apache						


rpm -ivh http://rpm.eprints.org/rpm-eprints-org-key-1-1.noarch.rpm			
rpm -ivh http://rpm.eprints.org/eprints/noarch/rpm-eprints-org-1-1.noarch.rpm	
yum upgrade libxml2 libxslt perl-XML-LibXML perl-XML-LibXSLT					

# Install EPrints
yum install eprints # 3.3.x and later


###################################################################################


Any help/direction would be appreciated.

Thank you in advance.



Best regards,
Kahena

MIS Officer | Information Systems & Technology University of Bolton | Deane Road | Bolton | BL3 5AB
Email: k.morrissey@bolton.ac.uk | Tel: +44 (0)1204 903 207