diff --git a/EPrints/ePrintsStats setup.txt b/EPrints/ePrintsStats setup.txt index 07267b7..d589e76 100755 --- a/EPrints/ePrintsStats setup.txt +++ b/EPrints/ePrintsStats setup.txt @@ -45,13 +45,28 @@ (may need to change php lib paths depending on environment, e.g., on my machine it's /sw/lib/php4) +Fixes to scripts/eprints-usage.php: + + The script is set up for "long" EPrints URLs for documents, of the + form /archive/00000023/01/foo.pdf. If short_urls is turned on, the + regular expressions won't match (short URLs look like /23/01/foo.pdf). + The solution is to add a regex for short URLs to the ifs on lines 65 + and 86: + + 65: || (preg_match("/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) - - \[(.*?)\] \"GET \/(\d{1,4}).*? HTTP\/1..\" 200 .*/i",$buffer,$matches)) + + 86: || preg_match("/GET \/\d{1,4}\/\d\d\//i",$buffer) + + +There appears to be an extra inc.html.footer.es.php in htdocs that +shouldn't be there (it overrides the same file in includes). Also +apparently unnecessary are header.html, footer.html and phpinfo.php. + EPrints config changes EXTREMELY IMPORTANT! Add '/es' to rewrite_exceptions. - Set use_short_urls to 0 as ePrintsStats expects "long" URLs in the log file. - In otago_eprints/cfg/apachevhost.conf: Include /usr/local/eprints/ePrintsStats/vhost/apache.conf