LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-04-2006, 06:31 PM   #1
animelook
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian
Posts: 12

Rep: Reputation: 0
No htdocs for Apache


I installed Apache (with PHP) on my Debian system using this:
Code:
apt-get install apache2 libapache2-mod-php4
However, I can't seem to find the webroot folder... isn't it usually /var/www/htdocs?

Any help is appreciated.

K-kun
 
Old 08-04-2006, 06:40 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
If you mean the document root, you can check the file /etc/apache2/sites-available/default.
 
Old 08-04-2006, 06:52 PM   #3
animelook
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
I did a whereis search on "sites-available", but it came up with nothing.
 
Old 08-04-2006, 06:57 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I think whereis only finds commands, man whereis.

I'm using Debian Sarge and for apache2, the document root is /var/www as defined in the file /etc/apache2/sites-available/default
 
Old 08-04-2006, 07:06 PM   #5
animelook
LQ Newbie
 
Registered: Aug 2006
Distribution: Debian
Posts: 12

Original Poster
Rep: Reputation: 0
I'm sorry- I didn't understand what you mean.

It appears to be /var/www for me as well.

Thanks!
 
Old 08-04-2006, 07:37 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
A default compile and configuration of Apache will set you up for that htdocs directory you're used to. However, if you're not compiling it yourself and are installing it from some distro's packaging system, all the defaults may have been changed.

On my Debian box with Apache installed from a package, my main config file is not the expected httpd.conf -- it's apache2.conf. This was probably set by the package maintainer in the configure script or somewhere else during compilation.

My apache2.conf contains the line "Include /etc/apache2/sites-enabled/[^.#]*" so I then go look at /etc/apache2/sites-enabled/000-default (the only file in that directory). Inside that file I find what I'm looking for, a directive that says "DocumentRoot /var/www"

These are not standard Apache defaults, they were evidently chosen by the package maintainer. I'm sure you're running into a similar situation.
 
  


Reply



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
showing the files in htdocs GeorgeP Linux - Software 6 05-30-2006 12:38 AM
white box: where is htdocs? rvc13 Linux - Newbie 1 02-12-2005 07:24 AM
apache looking for documentroot in /usr/htdocs niehls Linux - Software 3 07-06-2003 05:39 PM
Where is the htdocs folder for Apache? Ekim Gram Linux - Newbie 5 05-24-2003 07:16 AM
Apache HTDOCS help needed plz RecoilUK Linux - General 7 07-16-2001 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:05 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
Open Source Consulting | Domain Registration