LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-18-2014, 09:15 AM   #1
jdepp
LQ Newbie
 
Registered: Mar 2013
Posts: 12

Rep: Reputation: Disabled
moving files to webserver (where is location)


I am installing kibana on a linux machine and I did this before but cannot recall how. I need to copy the contents of a folder to my webserver and not sure where this would be on a linux server. I searched online and results point to /var/www, but I do not see that directory.
What is the root directory or home directory for a linux webserver installation? How can I check for this?

Last edited by jdepp; 03-18-2014 at 09:36 AM.
 
Old 03-18-2014, 11:20 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The only sure way to know is by looking in the config file for the web server. If it's an Apache web server, the config file is probably called httpd.conf, and it probably lives in the /etc directory tree somewhere (depends on the distro). In there, you will want to look for the setting of DocumentRoot.
 
Old 03-18-2014, 02:37 PM   #3
achim_59
Member
 
Registered: Jan 2009
Location: Huenfeld, Germany
Distribution: Debian Jessie
Posts: 98

Rep: Reputation: 4
Which web server?

A webserver isn't necessarily bound to a particular O/S. Hence, the term " linux webserver installation" isn't really all that meaningful. You need to state which web server you're using.

I am not familiar with Apache Server, but I am familiar with Tomcat. If it's a Tomcat server you can find out what the root directory is by opening a terminal and typing:
Code:
echo $CATALINA_HOME
echo $CATALINA_BASE
The first is the root for the server itself. The second is the root directory for your personal web apps (assuming you share the server). CATALINA_BASE may not be defined if you've got a basic setup.
 
Old 03-18-2014, 02:50 PM   #4
DangerMonkey
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Rep: Reputation: Disabled
While there is no real home directory for your web site, /var/www is a good start. When you install Apache, for example, it creates the /var/www directory, and sets up the /etc/apache2/apache2.conf file to point there by default (in Ubuntu). You can then set you virtual directories all over the place, if you like.

I've found it easier to keep them all in one directory tree, mostly because I have quite a few WordPress installs. Achim_59 is also correct, there are different places for a lot of things. Tomcat (Solr, Cassandra, etc) seem to work best in /opt, but *can* go anywhere.
 
Old 03-19-2014, 12:40 AM   #5
ilesterg
Member
 
Registered: Jul 2012
Distribution: Arch, Debian, and CentOS/RHEL
Posts: 539

Rep: Reputation: 56
Quote:
Originally Posted by jdepp View Post
I am installing kibana on a linux machine and I did this before but cannot recall how. I need to copy the contents of a folder to my webserver and not sure where this would be on a linux server. I searched online and results point to /var/www, but I do not see that directory.
What is the root directory or home directory for a linux webserver installation? How can I check for this?
I think you are assuming that there is already a web server installed by default? Most distributions don't have default installs of web servers, and you have to install it first.

Cheers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Open CHM Files In Windows XP When Moving From Default Location Keemoch_Styling General 0 07-09-2009 10:35 AM
moving files from a location to other, preventing to move incomplete files pogo123 Programming 8 11-14-2008 06:21 AM
moving files from a location to other, preventing to move incomplete files pogo123 Linux - Newbie 2 11-13-2008 01:57 PM
moving webserver to different hard drive mouse46 Linux - Newbie 2 03-20-2004 08:15 AM


All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration