apt-get apache2...

Apache, Lighttpd, nginx, Cherokee
Post Reply
philippxp
Posts: 71
Joined: 2005-02-24 21:17
 

apt-get apache2...

Post by philippxp »

Hi leute ich hätte mal wieder eine Frage. Jedes mal wenn ich
apt-get install apache2
mach bekomm ich folgende Fehlermeldung:
debian:/etc# apt-get install apache2
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
apache2-common apache2-mpm-worker
The following NEW packages will be installed:
apache2 apache2-common apache2-mpm-worker
0 upgraded, 3 newly installed, 0 to remove and 4 not upgraded.
Need to get 1037kB of archives.
After unpacking 2492kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://update.alturo-server.de sarge/main apache2-common 2.0.54-4 [798kB]
Get:2 http://update.alturo-server.de sarge/main apache2-mpm-worker 2.0.54-4 [206kB]
Get:3 http://update.alturo-server.de sarge/main apache2 2.0.54-4 [32.9kB]
Fetched 1037kB in 0s (1097kB/s)
Selecting previously deselected package apache2-common.
(Reading database ... 31726 files and directories currently installed.)
Unpacking apache2-common (from .../apache2-common_2.0.54-4_i386.deb) ...
Selecting previously deselected package apache2-mpm-worker.
Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.0.54-4_i386.deb) ...
Selecting previously deselected package apache2.
Unpacking apache2 (from .../apache2_2.0.54-4_i386.deb) ...
Setting up apache2-common (2.0.54-4) ...
Setting Apache2 to Listen on port 80. If this is not desired, please edit /etc/apache2/ports.conf as desired. Note that the Port directive no longer works.

Setting up apache2-mpm-worker (2.0.54-4) ...
It looks like you've deleted /etc/apache2/mods-available/cgid.load, so mod_cgid cannot be enabled. To fix this, please purge and reinstall apache2-common.
Starting web server: Apache2apache2: could not open document config file /etc/apache2/apache2.conf
invoke-rc.d: initscript apache2, action "start" failed.


Setting up apache2 (2.0.54-4) ...
Dann mach ich
apt-get --purge --reinstall install apache2-common
dann
/etc/init.d/apache2 restart
dann bekomm ich nun diese Fehlermeldung:
Forcing reload of web server: Apache2 ... failed!
You may still have some apache2 processes running. There are
processes named 'apache2' which do not match your pid file,
and in the name of safety, we've left them alone. Please review
the situation by hand.
apache2: could not open document config file /etc/apache2/apache2.conf
Ich weiß nicht woher ich diese apach2.conf herbekommen soll.... Ich hab jetzt sogar schon den apache kompiliert (/.configure make make install) aber da erstellt er auch keine apach2.conf.

Ich hoffe mir kann jemand helfen weil ich auf apache2 umstellen möchte.
tobi^
Posts: 57
Joined: 2003-07-04 16:09
 

Re: apt-get apache2...

Post by tobi^ »

apt-get remove --purge apache2
&&
rm -fr /etc/apache2
&&
apt-get install apache2
philippxp
Posts: 71
Joined: 2005-02-24 21:17
 

Re: apt-get apache2...

Post by philippxp »

tobi^ wrote:apt-get remove --purge apache2
&&
rm -fr /etc/apache2
&&
apt-get install apache2
hab das nun mal gemacht aber steh nun vor dem problem das er zwar sagt er hat apache2 installiert aber seht selbst.

Code: Select all

debian:/home/philipp# apt-get install apache2
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  apache2
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 0B/32.9kB of archives.
After unpacking 62.5kB of additional disk space will be used.
Selecting previously deselected package apache2.
(Reading database ... 32110 files and directories currently installed.)
Unpacking apache2 (from .../apache2_2.0.54-4_i386.deb) ...
Setting up apache2 (2.0.54-4) ...
dann wollte ich
/etc/init.d/apache2 restart
machen aber er sagt dann
bash: /etc/init.d/apache2: No such file or directory
hab dann mal
find / -name "apache2"
gemacht und er findet dann aber nur


/usr/share/doc/apache2
Es gibt also z.b. auch nicht
/etc/apache2
jetzt verzweifel ich aber langsam.....

Kann es evtl. damit zu tun haben dass apche 1.3 noch installiert ist? Ich mach halt immer
apachectl stop
wenn ich mich wieder mit den apache2 spiel weil ich will endlich das der läuft.

edit:

hab gerade gelesen das das mit meiner apache2.conf eigentlich die httpd.conf war aber die leute die das deb für apache2 erstellt haben haben dies anscheinend für sinnvoller gehalten die datei anders zu bennen. gut das ich das jetzt weiß......
philippxp
Posts: 71
Joined: 2005-02-24 21:17
 

Re: apt-get apache2...

Post by philippxp »

so nun erstellt er mir endlich wieder die apache2.conf

gut gut aber nun sagt er folgendes beim installieren
Setting up apache2-mpm-worker (2.0.54-4) ...
Starting web server: Apache2Syntax error on line 8 of /etc/apache/modules.conf:
Cannot load /usr/lib/apache/1.3/mod_log_config.so into server: /usr/lib/apache/1.3/mod_log_config.so: undefined symbol: ap_month_snames
invoke-rc.d: initscript apache2, action "start" failed.
philippxp
Posts: 71
Joined: 2005-02-24 21:17
 

Re: apt-get apache2...

Post by philippxp »

so das läuft nun auch ;)

jetzt möchte ich aber "dpkg-reconfigure apache2" machen wie ich es halt beim 1.3 auch gemacht hab daber da sagt er dann
/usr/sbin/dpkg-reconfigure: apache2 is not installed
Post Reply