Apache Restart => /usr/share/apache2/load_configuration not found

Apache, Lighttpd, nginx, Cherokee
Post Reply
lars007
Posts: 41
Joined: 2005-02-24 14:05
 

Apache Restart => /usr/share/apache2/load_configuration not found

Post by lars007 »

eventuell verwandt mit Thread 36800.
Ich habe die Anleitung ausgeführt und ein paar Pfadangaben angepasst:

Code: Select all

cd /

openssl genrsa -des3 -out server.key 1024
openssl rsa -in server.key -out server.key.unsecure
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

cp server.key.unsecure /etc/httpd/ssl.key/server.key
# ging nicht, da natürlich nicht vorhanden - daher:
cp server.key.unsecure /etc/apache2/ssl.key/server.key
cp server.crt /etc/apache2/ssl.crt/server.crt

chmod 400 /etc/apache2/ssl.crt/server.crt
chmod 400 /etc/apache2/ssl.key/server.key

rcapache2 restart
beim Ausführen von rcapache2 erfolgt nun jedoch lediglich folgende Meldung:

Code: Select all

/usr/sbin/rcapache2: line 38: /usr/share/apache2/load_configuration: Datei oder Verzeichnis nicht gefunden
entsprechender Abschnitt in der /etc/init.d/apache2

Code: Select all

#
# load the configuration
#
test -s /etc/rc.status && . /etc/rc.status && rc_reset

. /usr/share/apache2/load_configuration
export ${!APACHE_*}
Google schweigt sich zu dem Problem vollständig aus, die Forensuche sowieso. Kann jemand von euch weiterhelfen?

Wäre sehr dankbar.

//EDIT
Habe erst ein entsprechendes File, dann einen entsprechenden Ordner (natürlich das File vorher gelöscht) erstellt. Dann erfolgt diese Fehlermeldung:

Code: Select all

# rcapache2 status
export ACLOCAL_PATH="/opt/gnome/share/aclocal"
export SHELL="/bin/bash"
[...]
export SHLVL="3"
export SSH_CLIENT="::ffff:85.16.56.5 1088 22"
export SSH_CONNECTION="::ffff:85.16.56.5 1088 ::ffff:85.114.128.44 22"
export SSH_TTY="/dev/pts/492"
[...]
Checking for httpd2:                                                                                                                             running
//EDIT: Google Suchworte
load_configuration load configuration loadconfiguration apache2 restart apache /usr/share/apache2/load_configuration Datei oder Verzeichnis nicht gefunden
Last edited by lars007 on 2005-09-24 17:58, edited 1 time in total.
r00ty
Posts: 747
Joined: 2003-03-17 15:32
 

Re: Apache Restart => /usr/share/apache2/load_configuration not found

Post by r00ty »

ich blicks nicht mehr....
also du hast das
load_coniguration

Code: Select all

#!/bin/bash

sysconfig_apache=/etc/sysconfig/apache2

if [ -z "$APACHE_MODULES" ]; then
        #
        # load the configuration
        #
        if [ -s $sysconfig_apache ]; then
                . $sysconfig_apache
        else
                # backwards compatibility (pre 8.0)
                # Source SuSE config
                . /etc/rc.config
                sysconfig_apache=/etc/rc.config.d/$pname.rc.config
                test -s $sysconfig_apache && . $sysconfig_apache
        fi
fi
jetzt wieder ?
was kommt bei
rcapache2 start
rcapache2 status
?
lars007
Posts: 41
Joined: 2005-02-24 14:05
 

Re: Apache Restart => /usr/share/apache2/load_configuration not found

Post by lars007 »

Danke für das File.
Ich habe es jetzt neu erstellt. Nun kommt der Fehler:

Code: Select all

/usr/sbin/rcapache2: line 86: /usr/share/apache2/get_module_list: Datei oder Verzeichnis nicht gefunden
/usr/sbin/rcapache2: line 87: /usr/share/apache2/get_includes: Datei oder Verzeichnis nicht gefunden
Ich schließe daraus einfach mal, dass mir der Inhalt von /usr/share/apache2 fehlt.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Apache Restart => /usr/share/apache2/load_configuration not found

Post by Joe User »

Reinstalliere doch einfach den Apache...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
r00ty
Posts: 747
Joined: 2003-03-17 15:32
 

Re: Apache Restart => /usr/share/apache2/load_configuration not found

Post by r00ty »

kann es sein, dass es dein apache2 zerblasen hat ?
installier den mal neu per yast
und lass danach gleich mal you drüber
vorher ein Backup deiner Config-Files machen....
lars007
Posts: 41
Joined: 2005-02-24 14:05
 

Re: Apache Restart => /usr/share/apache2/load_configuration not found

Post by lars007 »

Ich würde gerne, der Mist ist nur, dass mein Hoster am apache2-Paket Veränderungen vorgenommen und ich weiß nicht genau, welche dies sind. Im FAQ-Bereich wird jedoch eindringlich davor gewarnt, die Standard-Apache2-Paket zu nutzen.
*support nervt*
r00ty
Posts: 747
Joined: 2003-03-17 15:32
 

Re: Apache Restart => /usr/share/apache2/load_configuration not found

Post by r00ty »

bei welchem Hoster bist du denn ?
welche Version von Apache ?
Welches OS ?
lars007
Posts: 41
Joined: 2005-02-24 14:05
 

Re: Apache Restart => /usr/share/apache2/load_configuration not found

Post by lars007 »

In der Hoffnung, dass das jetzt in Hinblick auf die Boardregeln klargeht:
Hoster Webtropia (Marke von fastIT)
Apache 2.0.48 unter SuSE Linux 9.0
Post Reply