PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : apache2 unter suse startet nicht immer mit /opt/apache2/bin/apachectl -start



Mr.Nobody
20.08.03, 19:16
Hallo!

Manchmal gebe ich den Befehl /opt/apache2/bin/apachectl -start oder stop
ein, und der Webserver startet nicht. Ich sehe nur die Auflistung sämtlicher Optionen
für den Befehl httpd. Erst kürzlich konnte ich noch meine Webseite mit Eingabe von
localhost im Webbrowser aufrufen. Gilt jetzt eigentlich httpd oder apachectl als
Befehl für apache2 unter Suse8.2? linux:/home/bernd # /opt/apache2/bin/httpd -k start
scheint manchmal eher zu funktionieren.

linux:/home/bernd # /opt/apache2/bin/apachectl -start
Usage: /opt/apache2/bin/httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
-D name : define a name for use in <IfDefine name> directives
-d directory : specify an alternate initial ServerRoot
-f file : specify an alternate ServerConfigFile
-C "directive" : process directive before reading config files
-c "directive" : process directive after reading config files
-e level : show startup errors of level (see LogLevel)
-E file : log startup errors to file
-v : show version number
-V : show compile settings

Das war von Anfang an so. Aber jetzt seit ich php4.3.2 kompiliert habe mit
./configure --prefix=/opt/php4.3.2 --with-mysql --with-apxs2=/opt/apache2/bin/apx
und make und make install geht irgendwie gar nichts.

In der httpd.conf habe ich das php Modul eingefügt nach einem Buch.

# Example:
# LoadModule foo_module modules/mod_foo.so
#LoadModule php4_module modules/libphp4.so
LoadModule php4_module /opt/apache2/modules/libphp4.so
<Files *.php>
SetOutputFilter PHP
SetInputFilter PHP
</Files>
#

linux:/home/bernd # locate libphp4.so
/home/bernd/php-4.3.2/.libs/libphp4.so
/home/bernd/php-4.3.2/libs/libphp4.so
/mnt/RedHat1/usr/lib/httpd/modules/libphp4.so
/opt/apache2/modules/libphp4.so
linux:/home/bernd #

mfG
N.

Mr.Nobody
20.08.03, 19:33
Hallo!

Habe jetzt doch einen Befehl gefunden mit dem ich apache2 unter suse8.2 starten und
stoppen kann

linux:/home/bernd # /opt/apache2/bin/httpd -k start
linux:/home/bernd # /opt/apache2/bin/httpd -k stop
linux:/home/bernd # /opt/apache2/bin/httpd -k start
linux:/home/bernd #

Nur kann ich mir nicht erklären, warum gestern hoch /opt/apache2/bin/apachectl start
auch funktioniert hat und heute nicht mehr.

mfG
N.

Berufspenner
20.08.03, 19:37
Hi

Hast du dich verschrieben? Im ersten Posting sprichst du von ../apachectl -start und im zweiten von ../apachectl start.

Cu
André

Mr.Nobody
20.08.03, 19:47
Hallo!

Sorry, war alles ein Fehler von mir, habe versehentlich den apache mit apachectl -start statt
wie es eigentlich richtig heißen müßte mit apachectl start gestartet.

Ich glaube ich seh den Wald vor lauter Bäumen nicht mehr.

mfG
N.