Installing DSpace 4.X On CentOS 6.6
Installing DSpace 4.X On CentOS 6.6
Installing DSpace 4.X On CentOS 6.6
JDK 7
MAVEN
ln -s /opt/maven/bin/mvn /usr/bin/mvn
TOMCAT
Allow port 8080 through the firewall by adding the following line:
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
Now that we have all the configuration in, we can list the rules to see if anything is missing.
iptables -L
Edit the file /var/lib/pgsql/9.4/data/pg_hba.conf and add this line before any
uncommented lines:
host dspace dspace 127.0.0.1/32 md5
DSPACE
The following steps detail how to run Tomcat over HTTPS and have its HTTP pages redirected
to HTTPS.
AUTHBIND
to
<Connector port="80" enableLookups="false"
redirectPort="443" />
to
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="${user.home}/.keystore" keystorePass="yourpasswordjustnow"
/>
Restart tomcat.
LDAP AUTHENTICATION
to
plugin.sequence.org.dspace.authenticate.AuthenticationMethod = \
org.dspace.authenticate.LDAPAuthentication
Modify /opt/dspace-4.2-src-release/dspace-jspui/src/main/webapp/layout/navbar-
default.jsp and change line 120 to
Open /opt/dspace-4.2-src-release/dspace-
api/src/main/java/org/dspace/authenticate/LDAPAuthentication.java and comment
the line starting from
SpeakerToLDAP ldap = new SpeakerToLDAP(log);
// Get the DN of the user
boolean anonymousSearch =
ConfigurationManager.getBooleanProperty("authentication-ldap",
"search.anonymous");
.
.
.
finally
{
context.setIgnoreAuthorization(false);
}
}
}
}*/
return BAD_ARGS;
Above the commented code block, add the following code:
Rebuild packages
su - dspace
cd /opt/dspace-4.2-src-release
mvn package
Restart tomcat
exit
service tomcat restart