PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Apache 2.0.47 startet nicht



michjosi
05.09.03, 10:34
Hallo erstmal im Forum, die Suche hat mir nicht weitergeholfen...

Ich habe Debian Woody mit netinstall minimal installiert. Dann habe ich mit Lynx die Apache Source gezogen, entpackt und mit ./configure --enable-so konfiguriert. Dann make und make install. Soweit so gut, nur wenn ich in /usr/local/apache2/ ./apachectl start eingebe bekomme ich:

"httpd: Could not determine the server's fully qualified domain name, using 192.168.11.7 for ServerName"

Was muss ich machen damit der Apache läuft?
Mit top finde ich weder httpd noch apache....

Mit "lynx http://192.168.11.7" bekomme ich "Alert!: Unable to connect to remote host."

Weiß wer worans liegt?

Danke an alle schonmal!

Radiohead
05.09.03, 10:51
Warum hast du eigentlich den Apache nicht über apt-get gezogen ?

Startet man den Apache nicht mit /etc/init.d/apache2 start ??

Das is aber auch kein Fehler....hatte ich bei mir auch...lief trotzdem...

michjosi
05.09.03, 10:55
Weil ich Linux gerne lernen möchte und nicht alles über vorkonfigurierte Pakete machen will. Und jetzt möchte ich gernen rausfinden wo der Fehler liegt...
/etc/init.d/apache2 start geht nicht

fladi.at
05.09.03, 10:58
in der httpd.conf musst du bei "ServerName" entweder deine IP oder deinen DNS eintragen.
sollte so aussehen:
ServerName 192.168.0.1

michjosi
05.09.03, 11:04
Habe ServerName 127.0.0.1
ServerName localhost
und ServerName 192.168.11.7 getestet und dann immer folgende Meldungen bekommen:

debian:/usr/local/apache2/bin# ./apachectl start
debian:/usr/local/apache2/bin# ./apachectl status

Looking up localhost
localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://localhost/server-status
debian:/usr/local/apache2/bin#

k.A. woran das liegt, denn ich bekomme zwar keine Warnmeldung mehr beim start, aber es läuft kein apache Prozess.... mist

Radiohead
05.09.03, 11:04
Weil ich Linux gerne lernen möchte und nicht alles über vorkonfigurierte Pakete machen will. Und jetzt möchte ich gernen rausfinden wo der Fehler liegt...

Als wenn es so einen Unterschied machen würde :)

apt-get install apache

oder halt die immer wiederkehrende Prozedur....
./configure
make
make install

dann lerne mal fleissig weiter :D

michjosi
05.09.03, 11:07
@Radiohead: Ok Ok, es ist nicht viel Unterschied... aber wenn der Fehler jetzt mit apt-get aufgetreten wäre müsste ich ihn auch lösen können...

Radiohead
05.09.03, 11:12
Das stimmt natürlich :)
Hast du dir mal ein Howto durchgelesen...ich meine es gibt hier im Forum auch eines in der Tut Section...

MfG

michjosi
05.09.03, 11:16
Also ich habs genau nach dem HowTo von der http://www.php.net/manual/de/install.apache2.php gemacht, z.B. bis Schritt 8 das Testen, denn da tritt dann schon der Fehler auf... leider :-/



1. gzip -d httpd-2_0_NN.tar.gz
2. tar xvf httpd-2_0_NN.tar
3. gunzip php-NN.tar.gz
4. tar -xvf php-NN.tar
5. cd httpd-2_0_NN
6. ./configure --enable-so
7. make
8. make install

Now you have Apache 2.0.NN available under /usr/local/apache2,
configured with loadable module support and the standard MPM prefork.
To test the installation use your normal procedure for starting
the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start
and stop the server to go on with the configuration for PHP:
/usr/local/apache2/bin/apachectl stop.

9. cd ../php4-NN
10. ./configure --with-apxs2=/usr/local/apache2/bin/apxs
11. make
12. make install
13. cp php.ini-dist /usr/local/lib/php.ini

Edit your php.ini file to set PHP options. If
you prefer this file in another location, use
--with-config-file-path=/path in step 10.

14. Edit your httpd.conf file and check that these lines are
present:

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php

You can choose any extension you wish here. .php is simply the one
we suggest.

The path on the right hand side of the LoadModule statement must point
to the path of the PHP module on your system. The above statement is
correct for the steps shown above.

15. Use your normal procedure for starting the Apache server, e.g.:
/usr/local/apache2/bin/apachectl start

michjosi
05.09.03, 11:21
Kann es sein dass nicht alle nötigen Pakete/Protokolle/Libraries installiert sind, denn ich habe nur die Minimalinstallation von "Woody" laufen, is nur so ne Idee... bin ja Anfänger :-)

Radiohead
05.09.03, 11:28
Schau mal hier :

http://www.linuxforen.de/forums/showthread.php?s=&threadid=74990&highlight=apache

michjosi
05.09.03, 13:37
Ich krieg die Krise, hab die Anleitung Punkt für Punkt abgearbeitet und siehe da, beim Punkt Apache testen gehts wieder nicht... das gibts doch nicht! Aber trotzdem schonmal danke an alle!!!

michjosi
07.09.03, 17:20
Habe es nochmal versucht mit der Anleitung mit einem komplett frischen System, aber wieder selber Fehler... bin ratlos, weiss keiner mehr nen Tipp??

michjosi
07.09.03, 17:54
Die ganze Fehlermeldung ist:

[error] (22)Invalid argument: Could not set permissions on ssl_mutex; check User and Group directives

In diesem Fall einfach die Group-Direktive (etwa Zeile 318) in der /opt/lampp/etc/httpd.conf folgendermaßen ändern.

Bisher sollte da stehen:

Group #-1

Daraus einfach folgendes machen:

Group nogroup

Das war die Lösung des Problems...

tom021
08.09.03, 12:45
@Radiohead
hi !

also ich hatte zuallererst meinen apache2 geapted. leider fand ich die implementation von den debian leuten derart krank und unübersichtlich, dass ich mich dazu entschlossen habe, den apache2 zu komplieren.
nun sind alle verzeichnisse so wie es sein soll. das war bei der debian version aber nicht der fall. andere leute haben mir das gleiche bestätigt.

ich finde schon, dass der unterschied gross ist, wobei ich die debian version extrem verwirrend finde.


mfg
tom

Radiohead
08.09.03, 14:19
@tom021:

So gesehen mag das sein...ich meinte nur das es eigentlich egal ist (vom Aufwand) ob ich nun ein rpm nehme oder die Sourcen..(abgesehen vom zeitlichen Aufwand)

MfG