Everybody Staze...

Nobody leavz...

  • Home
  • About Me
    • LinkedIn
    • Lab
  • Contact
  • Links
  • Reviews
  • Sitemap
  • Weather
You are here: Home / Sys Admin / Silliest hack ever…

Silliest hack ever…

2010/12/15 By staze

At work we’re working on a new website in Drupal, and setting up Apache Solr as our search backend. Solr, being Java, runs ideally in a Tomcat installation.

But trying to get Solr, via Tomcat running reliably in Mac OS X Server 10.5.8 was proving to be a bitch of a challenge. Tomcat would start, but trying to access Solr would indicate that it couldn’t find solrconfig.xml or /solr/conf in cwd=/. Well, duh. Tomcat is in /Library/Tomcat.

So, the hack? Edit /Library/Tomcat/bin/startup.sh and put (near the top) “cd /Library/Tomcat”.

Done and done. No idea why it wasn’t setting the cwd (current working directory) to /, but, changing directory in the startup script fixed it.

Like I said… Silliest hack ever.

Print Friendly, PDF & Email

Filed Under: Sys Admin Tagged With: Apache, Drupal, Solr, Tomcat

Weather

Categories / Archives

  • Apple
  • Coding
  • Electronics
  • Energy
  • Home Ownership
  • Miscellany
  • Politics
  • Prius
  • Sys Admin
  • Travel
  • Uncategorized
  • Work
  • June 2026
  • April 2026
  • August 2025
  • April 2025
  • January 2024
  • February 2021
  • July 2020
  • January 2020
  • April 2019
  • March 2018
  • February 2018
  • June 2017

Copyright © 2026 · Staze On Genesis Framework · WordPress · Log in