Skip to content

Instantly share code, notes, and snippets.

@Makanda
Makanda / 000-default.conf
Created May 11, 2015 17:30
How to remove xmlui
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port t$
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
root@dsp:~# service tomcat7 restart
* Starting Tomcat servlet engine tomcat7 [fail]
root@dsp:~# service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 31 of /etc/apache2/sites-enabled/000-default.conf:
Invalid command 'ProxyPreserveHost', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
##### Basic information ######
# DSpace installation directory
dspace.dir = /dspace
# DSpace host name - should match base URL. Do not include port number.
dspace.hostname = erepo.usiu.ac.ke
# DSpace base host URL. Include port number etc.
dspace.baseUrl = http://erepo.usiu.ac.ke
May 12, 2015 10:11:32 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common/classes], exists: [false], isDirectory: [false], canRead: [false]
May 12, 2015 10:11:32 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/common], exists: [false], isDirectory: [false], canRead: [false]
May 12, 2015 10:11:32 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server/classes], exists: [false], isDirectory: [false], canRead: [false]
May 12, 2015 10:11:32 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/server], exists: [false], isDirectory: [false], canRead: [false]
May 12, 2015 10:11:32 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
WARNING: Problem with directory [/usr/share/tomcat7/shared/classes], exists: [false], isDirectory: [false], canRead
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
root@dsp:/var/lib/tomcat7/conf/Catalina/localhost/ROOT.xml/themes/Mirage/lib/css# cd
root@dsp:~# ls -lR /var/lib/tomcat7/conf/Catalina/localhost/
/var/lib/tomcat7/conf/Catalina/localhost/:
total 8
drwxr-xr-x 8 root root 4096 Cam 12 13:10 ROOT.xml
drwxr-xr-x 8 tomcat7 tomcat7 4096 Elb 30 14:34 solr.xml
/var/lib/tomcat7/conf/Catalina/localhost/ROOT.xml:
total 80
drwxr-xr-x 2 root root 4096 Cam 12 13:10 aspects
INFO: validateJarFile(/dspace/webapps/solr/WEB-INF/lib/jsp-api-2.1.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.cl$
May 13, 2015 9:15:47 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8080"]
May 13, 2015 9:15:47 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
May 13, 2015 9:15:48 AM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8080"]
May 13, 2015 9:15:48 AM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8080"]
May 13, 2015 9:15:49 AM org.apache.catalina.startup.ClassLoaderFactory validateFile
2015-05-13 09:08:26,231 INFO org.dspace.app.xmlui.configuration.XMLUIConfiguration @ Loading XMLUI configuration from: /dspace/config/xmlui.xconf
2015-05-13 09:08:26,466 INFO org.dspace.app.xmlui.configuration.XMLUIConfiguration @ Aspect Installed: name='Displaying Artifacts', path='resource://aspects/ViewArtif$
2015-05-13 09:08:26,466 INFO org.dspace.app.xmlui.configuration.XMLUIConfiguration @ Aspect Installed: name='Browsing Artifacts', path='resource://aspects/BrowseArtif$
2015-05-13 09:08:26,466 INFO org.dspace.app.xmlui.configuration.XMLUIConfiguration @ Aspect Installed: name='Discovery', path='resource://aspects/Discovery/'.
2015-05-13 09:08:26,466 INFO org.dspace.app.xmlui.configuration.XMLUIConfiguration @ Aspect Installed: name='Administration', path='resource://aspects/Administrative/$
2015-05-13 09:08:26,466 INFO org.dspace.app.xmlui.configuration.XMLUIConfiguration @ Aspect Installed: name='E-Person', path='resource://aspects/EPerson/'.
2015-05-13 09:08:26,466 INFO org.dspace.app.xmlui.co
@Makanda
Makanda / gist:4e733a27a3976d2350fc
Created May 13, 2015 11:58
apache2 error.log file
[Wed May 13 13:16:28.233845 2015] [proxy:warn] [pid 40315:tid 140034757867264] [client 41.89.4.20:42242] AH01144: No protocol handler was valid for the URL /. If you a$
[Wed May 13 13:24:15.454586 2015] [proxy:warn] [pid 40313:tid 140034665547520] [client 197.136.2.168:51206] AH01144: No protocol handler was valid for the URL /. If yo$
[Wed May 13 13:24:17.662767 2015] [proxy:warn] [pid 40313:tid 140034921019136] [client 197.136.2.168:51208] AH01144: No protocol handler was valid for the URL /. If yo$
[Wed May 13 13:24:17.677171 2015] [proxy:warn] [pid 40313:tid 140034657154816] [client 197.136.2.168:51209] AH01144: No protocol handler was valid for the URL /. If yo$
$ If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
[Wed May 13 13:24:21.631850 2015] [proxy:warn] [pid 40313:tid 140034648762112] [client 197.136.2.168:51210] AH01144: No protocol handler was valid for the URL /. If yo$
[Wed May 13 13:24:21.812933 2015] [proxy:warn] [