0

I'd installed KOHA Integrated Library System using pre-made image through a Virtual Box. I want to find the path location of my Apache Server so that I can manipulate/modify the files for my customization.

Any help would be very much appreciated. Thanks.

EDIT:

I tried to run the following code:

grep DocumentRoot /etc/apache2/sites-enabled/ -R

but an output shows :

/etc/apache2/sites-enabled/000-default: DocumentRoot /var/www 
grep: etc/apache2/sites-enabled/mathlibrary: Permission denied 

Am I doing the right thing?

  • Are you talking of the IP of localhost? – muru Aug 14 '14 at 09:11
  • @muru --> No, I want to know the path location of my localhost :) –  Aug 14 '14 at 09:13
  • Are you trying to access the guest (VM) from the host (real machine)? Or the host from the guest? Or something else? Note that "localhost" is a technical term that refers to a machine [as accessed from itself via its loopback interface](http://askubuntu.com/questions/247625/what-is-the-loopback-device-and-how-do-i-use-it). – Eliah Kagan Aug 14 '14 at 09:27
  • Also, how does this relate to Ubuntu? Is one of the machines an Ubuntu system? – Eliah Kagan Aug 14 '14 at 10:11

1 Answers1

0

It can be in any number of places. If KOHA uses Apache, try this:

grep DocumentRoot /etc/apache2/sites-enabled/ -R

Replace apache2 with nginx if KOHA uses nginx.

muru
  • 193,181
  • 53
  • 473
  • 722
  • KOHA uses apache. I tried what you've said but it only shows grep: etc/apache2/sites-enabled/mathlibrary: Permission denied > I am doing the right thing? –  Aug 14 '14 at 09:38
  • @AlyssaGono whatever it shows, please edit the question to post the output. It's hard to read output in comments. – muru Aug 14 '14 at 09:42
  • @AlyssaGono, it looks like `/var/www` is the DocumentRoot which AFAIK is the default for Apache anyway. – Holloway Aug 14 '14 at 09:46
  • @Trengot depends on the version. On 14.04, the default is `/var/www/html`. It could be something custom for KOHA. – muru Aug 14 '14 at 10:02
  • @AlyssaGono run the command with `sudo`. You need the `DocumentRoot` for `mathlibrary`, not the default site. – muru Aug 14 '14 at 10:03