LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 07-05-2005, 09:41 AM   #1
lantern
Member
 
Registered: Sep 2003
Distribution: Debian, Slackware
Posts: 39

Rep: Reputation: 15
Apache install options


Hi -

I recently installed apache2 on my debian system using "apt-get install apache2". The default configuration distributes the install directories to /var/www, /etc/apache2, /usr/lib, etc. I prefer to have everything in /usr/local/apache2.

One way to do it is to download and install manually using "./configure --prefix=/usr/local/apache2". But does anybody know if there's a way specify this option using apt-get?

Thanks,
Lantern
 
Old 07-05-2005, 05:28 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
that's just apache fitting in with the well defined structure of the UNIX file system layouts. why should httpd binary files be located next to web content?? That's really not a good plan of attack, and there's no benefit to be gained from it at all.
 
Old 07-05-2005, 09:17 PM   #3
lantern
Member
 
Registered: Sep 2003
Distribution: Debian, Slackware
Posts: 39

Original Poster
Rep: Reputation: 15
I agree that binaries should not be located next to web content, but I don't object to configuration files being coupled with content. And what about cgi scripts? It would certainly be reasonable to place them next to html files and not in /usr/lib.

Regardless of which approach more closely follows the Unix paradigm, I was wondering if apt-get offers the ability to configure apache as such. Clearly there are plenty of people who do prefer the /usr/local/apache2 layout.
 
Old 07-06-2005, 04:15 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
cgi scripts would normally be in /var/www/cgi-bin or such. normally located relative to your html files etc... that much IS up to you in terms of how to configure the app. you can of course make your documentroot wherever you want, there's just seldom any logical reason to move it from /var/www
 
  


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
httpd.conf not working: Apache 1.3.27 on SUSE 8.x Options zentro Suse/Novell 0 09-30-2005 11:53 AM
Entires in Apache Web Log - OPTIONS/PROPFIND ayhopkins Linux - Security 1 03-06-2005 04:10 AM
Best install options for an older PC ejennings_98 Mandriva 1 12-18-2004 06:52 PM
apt-get install options binidiot Debian 6 08-04-2004 08:08 PM
Adding options to apache cli_man Linux - Software 9 06-05-2002 08:11 PM


All times are GMT -5. The time now is 07:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration