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

Adam Field af05v at ecs.soton.ac.uk
Wed Nov 18 15:08:46 GMT 2015


Typically with centos/rhel, the eprints has its own home directory (/home/eprints).  With Debian/Ubuntu, after a package install, the eprints user's home will be /usr/share/eprints



--
Adam Field
Business Relationship Manager and Community Lead
EPrints Services



On 18 Nov 2015, at 14:37, Morrissey, Kahena <K.Morrissey at bolton.ac.uk> wrote:

> 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 at bolton.ac.uk | Tel: +44 (0)1204 903 207
> 
> 
> -----Original Message-----
> From: Morrissey, Kahena 
> Sent: 18 November 2015 14:00
> To: 'eprints-tech at 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 at bolton.ac.uk | Tel: +44 (0)1204 903 207
> 
> 
> *** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
> *** Archive: http://www.eprints.org/tech.php/
> *** EPrints community wiki: http://wiki.eprints.org/
> *** EPrints developers Forum: http://forum.eprints.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/eprints-tech/attachments/20151118/a6acc894/attachment-0001.html 


More information about the Eprints-tech mailing list