LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Can you run Apache2 without Apache 1.3? (https://www.linuxquestions.org/questions/debian-26/can-you-run-apache2-without-apache-1-3-a-179623/)

elfoozo 05-09-2004 11:45 AM

Can you run Apache2 without Apache 1.3?
 
I thought I understood how Apache worked (loosely) and wanted just version 2 or just version 1 but not both if I don't have too. I hate needless bloat like what you get with most package installations on other distros so I'm trying to keep the OS footprint small.

I ran this command and installed with no errors.
apt-get install apache2-common apache2-doc

But , as root, if I say "which apache" it returns nothing. If I poke around looking for apache binaries or httpd2, I don't find anything that will let me launch httpd.

So I'm left wondering: Is Apache2 nothing more than configuration add-ons (or extendibility) to apache-1.3?

About my system: It was installed via FTP from a bootable diskette and I selected only bare mimimums to get up and running as a cli host. I installed it about 3 months ago and used the testing tree. Below is what sources I pull from and I want to say I left this unmodified since install time.... but maybe not because of the commented out first line. (getting older sux :)

localhost:/root# cat /etc/apt/sources.list
#deb http://ftp.us.debian.org/debian/ sarge main

deb ftp://ftp.us.debian.org/debian/ testing main
deb-src ftp://ftp.us.debian.org/debian/ testing main

deb http://security.debian.org/ stable/updates main

david_ross 05-09-2004 02:12 PM

You can have apache or apache2 installed - they are independant of each other. The problems you are facing happens a lot with rpms. To see what files a package installed:
rpm -ql packagename

This is one reason many people prefer to compile from source:
http://lamps.efactory.de/e-lamps-2-0.shtml

hw-tph 05-09-2004 03:05 PM

The default name for the apache2 executable is "httpd", that's why which apache doesn't return anything. /etc/init.d/apache2 start or apachectl start should start the server. I don't remember if the apachectl script is renamed in the Debian packages (I have a Debian server but built Apache2 from source), but it's possible they call it apache2ctl or something to that effect.

Apache2 is the new branch of Apache - it doesn't require Apache 1.x to be installed. It's easy to build it from source if you have any doubts or problems with the prebuilt packages.

Håkan

dirtmerchant 05-10-2004 11:52 AM

Re: Can you run Apache2 without Apache 1.3?
 
You'll actually want to apt-get install apache-mpm-worker. Apache2 is divided up into several forked versions. You get to pick and choose which ones to use. After installing that type "whereis apache2" and that should return the location of the important files. The main ones you'll want to look at are under /etc/apache2. You can also type "dpkg-reconfigure -plow apache2" to run the debian configuration script.



Quote:

Originally posted by elfoozo
I thought I understood how Apache worked (loosely) and wanted just version 2 or just version 1 but not both if I don't have too. I hate needless bloat like what you get with most package installations on other distros so I'm trying to keep the OS footprint small.

I ran this command and installed with no errors.
apt-get install apache2-common apache2-doc

But , as root, if I say "which apache" it returns nothing. If I poke around looking for apache binaries or httpd2, I don't find anything that will let me launch httpd.

So I'm left wondering: Is Apache2 nothing more than configuration add-ons (or extendibility) to apache-1.3?

About my system: It was installed via FTP from a bootable diskette and I selected only bare mimimums to get up and running as a cli host. I installed it about 3 months ago and used the testing tree. Below is what sources I pull from and I want to say I left this unmodified since install time.... but maybe not because of the commented out first line. (getting older sux :)

localhost:/root# cat /etc/apt/sources.list
#deb http://ftp.us.debian.org/debian/ sarge main

deb ftp://ftp.us.debian.org/debian/ testing main
deb-src ftp://ftp.us.debian.org/debian/ testing main

deb http://security.debian.org/ stable/updates main


Strike 05-10-2004 02:05 PM

note: it's actually apache2-mpm-worker :) (note the 2)

dirtmerchant 05-10-2004 05:17 PM

nerf
 
Note to self: Check caffeine level before posting.


All times are GMT -5. The time now is 09:44 AM.