-   Debian (
-   -   Apache install options (

lantern 07-05-2005 09:41 AM

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?


acid_kewpie 07-05-2005 05:28 PM

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.

lantern 07-05-2005 09:17 PM

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.

acid_kewpie 07-06-2005 04:15 PM

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

All times are GMT -5. The time now is 10:59 AM.