<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Typically with centos/rhel, the eprints has its own home directory (/home/eprints). &nbsp;With Debian/Ubuntu, after a package install, the eprints user's home will be /usr/share/eprints<div><br></div><div><br><div><br><div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>--<br>Adam Field<br>Business Relationship Manager and Community Lead<br>EPrints Services</div><div><br></div></div></div><br class="Apple-interchange-newline">
</div>
<br><div><div>On 18 Nov 2015, at 14:37, Morrissey, Kahena &lt;<a href="mailto:K.Morrissey@bolton.ac.uk">K.Morrissey@bolton.ac.uk</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Adam,<br><br>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.<br><br>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.<br><br>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.<br><br><br>Best regards,<br>Kahena<br><br>MIS Officer | Information Systems &amp; Technology<br>University of Bolton | Deane Road | Bolton | BL3 5AB<br>Email: <a href="mailto:k.morrissey@bolton.ac.uk">k.morrissey@bolton.ac.uk</a> | Tel: +44 (0)1204 903 207<br><br><br>-----Original Message-----<br>From: Morrissey, Kahena <br>Sent: 18 November 2015 14:00<br>To: '<a href="mailto:eprints-tech@ecs.soton.ac.uk">eprints-tech@ecs.soton.ac.uk</a>'<br>Subject: Installing Eprints 3.3.14 on CentOS7 uses wrong directory <br><br>Hi Everyone,<br><br>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. <br><br>When I use yum to install EPrints it installs it to /usr/share/eprints rather than /opt/eprints3/.<br><br>Can anyone say what I may be doing wrong please?<br><br>I have used the following link as the primary guide:<br><a href="http://wiki.eprints.org/w/Installing_EPrints_3_on_RedHat_Enterprise_5">http://wiki.eprints.org/w/Installing_EPrints_3_on_RedHat_Enterprise_5</a><br><br><br>My steps up to this point, from a minimal installation of CentOS7, are outlined below:<br><br>###################################################################################<br><br># The following requires an enabled network connection and all proxy settings (http and ftp) set, if required<br><br>###################################################################################<br>#Apache Installation<br># Run ALL as root or sudo user<br><br>systemctl enable httpd.service<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>#[root@ ~] or sudo<br>systemctl start httpd.service<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>#[root@ ~] or sudo<br><br>###################################################################################<br>#MySQL Installation<br># Run ALL as root or sudo user<br><br>#No MySQL server available so add a repository that has it available.<br>#Go to: http://dev.mysql.com/downloads/repo/yum/<br><br>#Choose the desired distribution (Red Hat Enterprise Linux 7 / Oracle Linux 7 for this tutorial) and click Download.<br>#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.<br>#mysql57-community-release-el7-7.noarch (1).rpm<br><br>rpm -Uvh http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm<span class="Apple-tab-span" style="white-space:pre">        </span><br>yum info mysql-community-server<br>yum -y install mysql-community-server<span class="Apple-tab-span" style="white-space:pre">        </span><br>systemctl enable mysqld<span class="Apple-tab-span" style="white-space:pre">        </span><br><br>###################################################################################<br># Dependencies<br># Run ALL as root or sudo user<br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br>yum -y install wget<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br>yum install lynx<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br>yum -y install gcc<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br>yum -y install poppler poppler-utils<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br>yum -y install glib2-devel<br>yum -y install tetex-latex<br>yum -y install ImageMagick<br>yum -y install perl<span class="Apple-tab-span" style="white-space:pre">        </span><br>yum install -y epel-release<span class="Apple-tab-span" style="white-space:pre">        </span><br>yum install -y mod_perl<span class="Apple-tab-span" style="white-space:pre">        </span><br>yum -y install perl-DBI<br>yum -y install perl-DBD-MySQL<br>yum -y install perl-XML-Parser<br>yum -y install perl-XML-LibXML<br>yum -y install perl-XML-LibXML-Common<br>yum info perl-XML-SAX<br>rpm -q perl-XML-SAX<br>yum -y install perl-XML-SAX<br><br><br># Ensure that proxy is set if proxy is in use perl -MCPAN -e shell cpan[1]&gt; install Data::ShowTable cpan[2]&gt; install MIME::Base64 cpan[3]&gt; install Unicode::String cpan[4]&gt; install Term::ReadKey cpan[5]&gt; install MIME::Lite cpan[6]&gt; install CGI<br><br>###################################################################################<br># Start MySQL server<br># Run ALL as root or sudo user<br><br>systemctl start mysqld<br><br>#You will need the following info to do secure the MySQL DB root password:<br>#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.<br>#use below command to see the password: <br><br>grep 'temporary password' /var/log/mysqld.log<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>#[root@ ~] or sudo<br><br># Harden MySQL installation<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>#[root@ ~] or sudo<br>/usr/bin/mysql_secure_installation<br><br>###################################################################################<br># EPrints installation<br># Run ALL as root or sudo user<br><br>#Prep<br># Add eprints user in preparation of installation useradd -d /opt/eprints3 -s /sbin/nologin eprints<br>usermod -a -G eprints apache<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br><br><br>rpm -ivh http://rpm.eprints.org/rpm-eprints-org-key-1-1.noarch.rpm<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br>rpm -ivh http://rpm.eprints.org/eprints/noarch/rpm-eprints-org-1-1.noarch.rpm<span class="Apple-tab-span" style="white-space:pre">        </span><br>yum upgrade libxml2 libxslt perl-XML-LibXML perl-XML-LibXSLT<span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span><br><br># Install EPrints<br>yum install eprints # 3.3.x and later<br><br><br>###################################################################################<br><br><br>Any help/direction would be appreciated.<br><br>Thank you in advance.<br><br><br><br>Best regards,<br>Kahena<br><br>MIS Officer | Information Systems &amp; Technology University of Bolton | Deane Road | Bolton | BL3 5AB<br>Email: k.morrissey@bolton.ac.uk | Tel: +44 (0)1204 903 207<br><br><br>*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech<br>*** Archive: http://www.eprints.org/tech.php/<br>*** EPrints community wiki: http://wiki.eprints.org/<br>*** EPrints developers Forum: http://forum.eprints.org/<br></blockquote></div><br></div></div></body></html>