Apache down nach Update auf Plesk 8.1.0

dabauer82

Registered User
Hallo,

hatte vor einigen Tage bereits das Update auf Plesk 8.1.0 durchgeführt und bis auf die Statistik keine Probleme. Nachdem ich heute allerding eine conf.datei geändert habe und den Apachedienst über console neustarten wollte, schoss dieser sich ab. Auch über das Plesk/Server/Server-Dienste ist Apache nicht zu starten. Habe auch die conf datei wieder gelöscht, da ich dachte, es sei ein fehler damit, aber das ändert nichts. Apache ist down. Hat jmd schnelle Hilfe parat?

strato root suse 10 plesk

Danke
Daniel

Fehlermeldung:
Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/apache2 failed to start

0: /usr/local/psa/admin/plib/common_func.php3:158
psaerror(string 'Unable to make action: Unable to manage service by websrvmng: websrvmng: Service /etc/init.d/apache2 failed to start')
1: /usr/local/psa/admin/htdocs/server/restart_services.php:28
 
Last edited by a moderator:
Per Konsole /etc/init.d/apache2 ausführen ergibt was für einen Output ?

/etc/init.d/apache2 start
Starting httpd2 (prefork) httpd2-prefork: could not open document config file /srv/www/vhosts/kindernothilfe-saar.de/conf/vhost.conf

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf


diese vhost.conf Datei habe ich allerdings gelöscht, nachdem es beim Neustart des webmngrs zu diesem Fehler kam.
 
Probier mal
Code:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=kindernothilfe-saar.de

Das sollte helfen.
 
Stimmt.
Was würde ich nur ohne Euch machen...(wohl kein Plesk nutzen ;-)) Vielen Dank.
 
Last edited by a moderator:
Ähnliches Problem

Hallo,

ich hänge mich hier mal dran, ich habe nämlich ein ähnliches Problem:
Auch bei mir lässt sich der Apache nicht mehr starten,
- PLESK 8.1.0 - Suse 10
Wenn ich
Code:
/etc/init.d/apache2 extreme-configtest
eingebe, dann erhalte ich auf der Konsole diese Ausgabe:
Code:
httpd2-prefork: could not open document config file /srv/www/vhosts/domainname.de/conf/httpd.include
Wie kann ich mir helfen?
Danke schon mal...!
 
Den Befehl von oben hast du schon probiert für die betreffende Domain ? Wenn ja existiert das File und wie sind die Rechte gesetzt ?
 
@reallumpi

Hallo, Du meinst diesen?
Code:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=domainname.de
Ja, das habe ich bereits gemacht, ohne Ergebnis.
Die Files sind vorhanden und haben die Rechte 0644
 
Wenn Du "/etc/init.d/apache2 start" eingibst, was steht dann im error_log (meist: /var/log/apache2/error_log)?
Wenn dort das selbe wie oben steht, dann mußt Du mal ein "ls -l /srv/www/vhosts/domainname.de/conf/httpd.include" machen.
Evtl. die komplette Verzeichnisstruktur durchgehen, und die Rechte prüfen.

huschi.
 
@Huschi

Der Server läuft wieder.
Es ist so dass ich zuvor einige Kundenaccounts von einem anderen Server, - auch PLESK 8.1, migriert hatte.
Nachdem ich diese Kunden und die Domains wieder gelöscht habe, lies sich der Apache plötzlich wieder starten, - wahrlich seltsam, hängt vielleicht mit dem Mapping zusammen.

Dennoch habe ich mir Deinen Tipp ausgedruckt, - man weiß ja nie.

Danke für die Unterstützung hier. :)
 
Hallo,
hab da dein änliches problem mit plesk aso wenn ich apache straten will kommt bei mir das:
root:~ # /etc/init.d/apache2 start
: command not foundhe2: line 14:
: command not foundhe2: line 30:
: command not foundhe2: line 80:
: command not foundhe2: line 109:
: command not foundhe2: line 119:
: command not foundhe2: line 135:
: command not foundhe2: line 151:
: command not foundhe2: line 168:
: command not foundhe2: line 178:
: command not foundhe2: line 187:
: command not foundhe2: line 195:
: command not foundhe2: line 225:
: command not foundhe2: line 237:
: command not foundhe2: line 247:
: command not foundhe2: line 257:
: command not foundhe2: line 265:
Warning: no MPM found. Some modules are dependant on the type of MPM.
Module "cgi" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Module "ssl" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Warning: no MPM found. Some modules are dependant on the type of MPM.
from APACHE_CONF_INCLUDE_FILES not found. Ignored.
) httpd2-prefork: could not open document config file /srv/www/\r

The command line was:
-Dr/sbin/httpd2-prefork -f
failed


wist ihr was ich dagegenen machen kann?

lg
 
Code:
#!/bin/sh
#
# Copyright (c) 1996, 1997, 1998 S.u.S.E. GmbH
# Copyright (c) 1998, 1999, 2000, 2001 SuSE GmbH
# Copyright (c) 2002, 2003 SuSE Linux AG
#
# Authors: Rolf Haberrecker <rolf@suse.de>, 2001
#          Peter Poeml <poeml@suse.de>, 2002, 2003
#
#
# /etc/init.d/apache2
#
### BEGIN INIT INFO
# Provides:			apache2 httpd2
# Required-Start:		$local_fs $remote_fs $network 
# X-UnitedLinux-Should-Start:	$named $time postgresql sendmail mysql ypclient dhcp radiusd
# Required-Stop:		$local_fs $remote_fs $network
# X-UnitedLinux-Should-Stop:	
# Default-Start:		3 5
# Default-Stop:			0 1 2 6
# Short-Description:		Apache2 httpd
# Description:			Start the httpd daemon Apache 2
### END INIT INFO

: ${sysconfdir:=/etc/apache2}
: ${apache_link:=/usr/sbin/httpd2}
: ${sysconfig_apache:=/etc/sysconfig/apache2}
: ${pidfile:=/var/run/httpd2.pid}
: ${logdir:=/var/log/apache2}

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

. /usr/share/apache2/load_configuration
export ${!APACHE_*}

httpd_conf=${APACHE_HTTPD_CONF:-$sysconfdir/httpd.conf}

apache_bin=$(/usr/share/apache2/find_mpm 2>/dev/null)

test -L $apache_link && apache_bin=$(readlink $apache_link)

if [ -z "$APACHE_MPM" ]; then 
	APACHE_MPM=${apache_bin##*-}
fi

if ! [ -x $apache_bin ]; then
	echo >&2 ${warn}$apache_bin-$APACHE_MPM is not a valid httpd2 binary. 
	echo >&2 Check your APACHE_MPM setting in /etc/sysconfig/apache2. $norm
	rc_failed 5
	rc_status -v1
	rc_exit
fi

get_server_flags()
{
	unset server_flags
	case "$action" in startssl) server_flags="-DSSL";; esac
	for i in $APACHE_SERVER_FLAGS; do
		case $i in 
		-D)	;;
		-D*)	server_flags="$server_flags $i";;
		*)	server_flags="$server_flags -D$i";;
		esac
	done
}

action="$1"
case "$action" in
    stop|try-restart|*status*|probe)
	;;
    *)
	shift; get_server_flags
	${get_module_list_done:=false} || /usr/share/apache2/get_module_list && export get_module_list_done=true
	${get_includes:=false} || /usr/share/apache2/get_includes && export get_includes_done=true
	;;
esac

#
# main part 
#
case "$action" in
    start*)
	if [ -e $pidfile ]; then
	        $0 status &>/dev/null
		ret=$?
		if [ $ret = 1 ]; then
				echo "Warning: found stale pidfile (unclean shutdown?)"
		elif [ $ret = 0 ]; then
				echo "Apache is already running ($pidfile)"
				rc_failed $ret
				rc_status -v1
				rc_exit
		fi
	fi

	echo -n "Starting httpd2 (${APACHE_MPM:-${apache_bin#*-}}) "
	cmdline=$(echo $apache_bin -f $httpd_conf $server_flags "$@")
	if eval $cmdline -t > $logdir/rc$pname.out 2>&1 ; then
		export -n ${!APACHE_*}
		eval startproc -f -t ${APACHE_START_TIMEOUT:-2} $cmdline
		ret=$?

		if test -t 1 && stty -a 2>/dev/null | grep -q -- -echo\ ; then 
			# this means that apache was still waiting for a passphrase to be entered 
			stty echo 2>/dev/null
			echo;echo 
			echo >&2 An SSL passphrase has not been entered within ${APACHE_START_TIMEOUT:-<not set>} seconds.
			echo >&2 To increase this timeout, adjust APACHE_START_TIMEOUT in $sysconfig_apache .
			# this surely means that apache won't start, despite it looked good to startproc
			killall $apache_bin
			echo >&2 "Trying to start the server without SSL (-D NOSSL)."
			$0 start "$@" -D NOSSL
			# rc_failed 1
			# rc_status -v1
			# rc_exit
		else
			rc_failed $ret
			rc_status -v
		fi
	else
		if [ "$link" = "$base" ] ; then
			cat $logdir/rc$pname.out
			echo >&2
			echo >&2 The command line was:
			echo >&2 $cmdline
			echo >&2
		else
			echo -e -n "\nsee $logdir/rc$pname.out for details\n";
		fi
		rc_failed 1
		rc_status -v1
        fi
	;;
    stop)
	echo -n "Shutting down httpd2 "
        if [ ! -f $pidfile -a -f $pidfile.rpmsave ]; then mv $pidfile.rpmsave $pidfile; fi
	if ! [ -f $pidfile ]; then
		echo -n "(not running)"
	else
		kill -TERM $(<$pidfile) 2>/dev/null
		case $? in
		    1)  echo -n "(not running)";;
		    0)  # wait until the processes are gone (the parent is the last one)
			echo -n "(waiting for all children to terminate) "
			for ((wait=0; wait<120; wait++)); do
				if test -f $pidfile; then usleep 500000
					else continue 2
				fi
			done
			;;
		esac
	fi

	rc_status -v
	;;
    try-restart)
	## Do a restart only if the service was active before.
	## Note: try-restart is now part of LSB (as of 1.9).
	## RH has a similar command named condrestart.
	$0 status
	if test $? = 0; then
		$0 restart
	else
		rc_reset        # Not running is not a failure.
	fi
	# Remember status and be quiet
	rc_status
	;;
    restart)
	$0 configtest "$@" || { rc_failed $?; rc_exit; }

	if $0 status &>/dev/null; then 
		$0 stop
	fi
	$0 start "$@"
	# Remember status and be quiet
	rc_status
	;;
    restart-hup)
	$0 configtest "$@" || { rc_failed $?; rc_exit; }

	if $0 status &>/dev/null; then 
		echo -n "Restarting httpd2 (SIGHUP)"
		kill -HUP $(<$pidfile) || return=$rc_failed
	else 
		$0 start "$@"
	fi
	# Remember status and be quiet
        rc_status -v
	;;
    reload|force-reload|graceful)
	echo -n "Reload httpd2 (graceful restart)"
	cmdline=$(echo $apache_bin -f $httpd_conf $server_flags "$@")
	if eval $cmdline -t &> $logdir/rc$pname.out; then
		killproc -USR1 $apache_bin || return=$rc_failed
		rc_status -v
	else
		if [ "$link" = "$base" ] ; then
			echo -e -n "\n\n"
			cat $logdir/rc$pname.out
			echo >&2
			echo >&2 The command line was:
			echo >&2 $cmdline
			echo >&2
		else
			echo -e -n "\nsee $logdir/rc$pname.out for details\n";
		fi
		rc_failed 6
		rc_status -v1
        fi
	;;
    status)
        if [ ! -f $pidfile -a -f $pidfile.rpmsave ]; then mv $pidfile.rpmsave $pidfile; fi
        echo -n "Checking for httpd2: "
	# we don't use checkproc here since it is confused when we exchange the binaries
	if ! [ -f $pidfile ]; then
		# not running
		rc_failed 3
	elif [ -s $pidfile -a -d /proc/$(<$pidfile) ]; then
		# running
		:
	else
		# stale pid file
		rc_failed 1
		#rm -f $pidfile
	fi
	rc_status -v
	;;
    probe)
        ## Optional: Probe for the necessity of a reload,
        ## give out the argument which is required for a reload.

	for i in $httpd_conf \
	  $APACHE_CONF_INCLUDE_FILES \
	  $APACHE_CONF_INCLUDE_DIRS 
	do
		if [ $i -nt $pidfile ]; then
			echo reload
			break
		fi
	done
        ;;

    conf*|test|syntax|check)
	cmdline=$(echo $apache_bin -f $httpd_conf $server_flags "$@")
	eval $cmdline -t 
	rc_failed $?
	rc_exit
	;;

    extr*)
	cmdline=$(echo $apache_bin -f $httpd_conf $server_flags "$@")
	out=$(su - nobody -c "$cmdline" 2>&1)
	case $out in 
	    *make_sock:\ could\ not\ bind\ to\ address*) echo Syntax: OK; rc_failed=0;;
	    *) echo Syntax: NOT OK:; echo $out; rc_failed=1;;
	esac
	rc_exit
	;;

    server-status)
	apache2ctl status
	;;

    full-server-status|fullstatus)
	apache2ctl fullstatus
	;;

    *)
    cat >&2 <<-EOF 
	Usage: $0 <command> <server flags>

	where <command> is one of:
	        start              - start httpd
	        startssl           - start httpd with -DSSL
	        stop               - stop httpd (sendign SIGTERM to parent)
	        try-restart        - stop httpd and if this succeeds (i.e. if
	                             it was running before), start it again.
	        status             - check whether httpd is running
	        restart            - stop httpd if running; start httpd
	        restart-hup        - restart httpd if running by sending SIGHUP,
	                             or start if not running
	        reload|graceful    - do a graceful restart by sending a SIGUSR1 or 
	                             start if not running
	        configtest         - do a configuration syntax test
	        extreme-configtest - try to run httpd as nobody (detects more errors 
	                             by actually loading the configuration, but cannot 
	                             read SSL certificates)
	        probe              - probe for the necessity of a reload, give 
	                             out the argument which is required for a reload.
	                             (by comparing conf files with pidfile timestamp)
	        full-server-status - dump a full status screen; requires lynx or w3m 
	                             and mod_status enabled
	        server-status      - dump a short status screen; requires lynx or w3m
	                             and mod_status enabled
	        help               - this screen
	
	optional server flags are passed through to httpd.
	
	EOF
    exit 1
esac


# Inform the caller not only verbosely and set an exit status.
rc_exit

so das ist der code was ich montan auf den server liegen hab

mfg andy
 
Ok, da die /etc/init.d/apache2 eigendlich ok aussieht nehmen wir den nächsten Fehler unter die Lupe:
Warning: no MPM found. Some modules are dependant on the type of MPM.
Dieser Text wird im Script /usr/share/apache2/find_mpm erzeugt.
Evtl. kommen von dort auch die Fehlermeldungen.

Aber bevor Du dort nachschaust, solltest Du mal Deine /etc/sysconfig/apache2 anschauen. Denn dort kann bereits der Fehler entstehen.

PS: Und ebenfalls wichtig: Ließ Dir bitte nochmal Absatz 3 Punkt 2 der Boardregeln durch.

huschi.
 
Sorry, ich versuch mich in der Sache mit der Groß, klein schreibung zu besser,


also das ist Meine "/etc/sysconfig/apache2"
Code:
## Path:	Network/WWW/Apache2
## Description:	Configuration for Apache 2
## Type:	string
## Default:	""
## ServiceRestart: apache2
#
# Here you can name files, separated by spaces, that should be Include'd from 
# httpd.conf. 
#
# This allows you to add e.g. VirtualHost statements without touching 
# /etc/httpd/httpd.conf itself, which makes upgrading easier. 
#
APACHE_CONF_INCLUDE_FILES=""

## Type:	string
## Default:	""
## ServiceRestart: apache2
#
# Here you can name directories, separated by spaces, that should be Include'd 
# from httpd.conf. 
#
# All files contained in these directories will be recursively included by apache.
# If a pattern like *.conf is appended, apache will use it.
#
# Examples: "/etc/apache2/my_conf/"
#           "/etc/apache2/virtual_hosts/*.conf"
#           "local/*.conf /srv/www/virtual/"
#
APACHE_CONF_INCLUDE_DIRS=""

## Type:	string
## Default:	"access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php4"
## ServiceRestart: apache2
#
# [It might look silly to not simply edit httpd.conf for the LoadModule statements.
# However, since the LoadModule statements might need an absolute path to the modules,
# switching between MPMs can be quite a hassle. It's easier to just give the names here.]
#
# * list of all modules shipped with the base distribution: 
#
#    access actions alias asis auth auth_anon auth_dbm auth_digest auth_ldap
#    autoindex cache case_filter case_filter_in cern_meta cgi charset_lite
#    dav dav_fs deflate dir disk_cache dumpio echo env expires ext_filter
#    file_cache headers imap include info ldap log_config log_forensic logio
#    mem_cache mime mime_magic negotiation proxy proxy_connect proxy_ftp
#    proxy_http rewrite setenvif speling ssl status suexec unique_id userdir
#    usertrack vhost_alias 
#
#   see http://httpd.apache.org/docs-2.0/mod/ !
#
# * It pays to use IfDefine statements... like
#    <IfModule mod_xyz.c>
#        ....
#    </IfModule>
#
# * In the APACHE_MODULES variable, you can use mod_xyz or just xyz syntax.
#   You may also name an absolute path if you like.
#
# * NOTE ON MOD_SSL: before you can enable this module, you need a server certificate. 
#   A test certificate can be created by entering 
#   'cd /usr/share/doc/packages/apache2; ./certificate.sh' as root.
#   Also, you need to set the ServerName inside the <VirtualHost _default_:443> 
#   block to the fully qualified domain name (see /etc/HOSTNAME).
#
# * if your server certificate is protected by a passphrase you should increase the
#   APACHE_START_TIMEOUT (see above)
#
# * modules listed here will be ignored if they are not installed
#
#
# EXAMPLES:
#
# fairly minimal
# APACHE_MODULES="access alias auth dir log_config mime setenvif"
#
# apache's default installation
# APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php4"
# your settings
APACHE_MODULES="access actions alias auth auth_dbm autoindex dir env expires include log_config mime negotiation setenvif suexec  userdir  php4  php5  perl   jk python   frontpage   suexec"

## Type:	string
## Default:	""
## ServiceRestart: apache2
#
# Additional server flags:
#
# Put here any server flags ("Defines") that you want to hand over to 
# httpd at start time, or other command line flags.
#
# Background: Any directives within an <IfDefine flag>...</IfDefine>
#             section are only processed if the flag is defined.
#             This allows to write configuration which is active only in a
#             special cases, like during server maintenance, or for testing
#             something temporarily.
#
# Notably, to enable SSL support, 'SSL' needs to be added here.
# To enable the server-status, 'STATUS' needs to be added here.
#
# It does not matter if you write flag1, -D flag1 or -Dflag1.
# Multiple flags can be given as "-D flag1 -D flag2" or simply "flag1 flag2".
#
# Specifying such flags here is equivalent to giving them on the commandline.
# (e.g. via rcapache2 start -DReverseProxy)
#
# Example:
#      "SSL STATUS AWSTATS SVN_VIEWCVS no_subversion_today"
#
APACHE_SERVER_FLAGS=""

## Type:	string
## Default:	""
## ServiceRestart: apache2
#
# Which config file do you want to use?
# (if not set, /etc/apache2/httpd.conf is used.)
# It is unusual to need to use this setting.
#
APACHE_HTTPD_CONF=""

## Type:	list(prefork,worker,leader,metuxmpm)
## Default:	""
## ServiceRestart: apache2
#
# MPM (multi-processing module) to use.
#
# Needed to determine with which MPM apache will run, as well as
# against which header files modules will be built. 
#
# If not set, the system will simply pick one of the installed MPMs.
#
# The implementation of the logic is in /usr/share/apache2/find_mpm,
# a script which can be used standalone as well if needed.
#
APACHE_MPM=""

## Type:	string
## Default:	""
## ServiceReload: apache2
#
# email address of the server administrator (ServerAdmin directive)
# This address is added to the server's responses if APACHE_SERVERSIGNATURE 
# is set to "email". 
#
# If empty ("") it defaults to webmaster@$FQHOSTNAME, where FQHOSTNAME is
# taken from /etc/HOSTNAME. 
#
# Note that ServerAdmin directives inside VirtualHost statements are not
# changed, even not the one in the stock SSL virtual host block. 
#
APACHE_SERVERADMIN=""

## Type:	string
## Default:	""
## ServiceReload: apache2
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work.  See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make 
# redirections work in a sensible way.
#
APACHE_SERVERNAME=""

## Type:	integer
## Default:	2
#
# timeout during server startup (seconds)
# after this time, the start script decides wether the httpd process started without error.
#
# Increase it, if you use mod_ssl and your certificate is passphrase protected!
#
APACHE_START_TIMEOUT="2"

## Type:	list(on,off,email)
## Default:	"on"
## ServiceReload: apache2
#
# Configures the footer on server-generated documents 
# This correlates to the ServerSignature directive. 
#
APACHE_SERVERSIGNATURE="on"

## Type:	list(debug,info,notice,warn,error,crit,alert,emerg)
## Default:	"warn"
## ServiceReload: apache2
#
# LogLevel: Control the number of messages logged to the error_log.
#
APACHE_LOGLEVEL="warn"

## Type:	string
## Default:	"/var/log/apache2/access_log combined"
## ServiceRestart: apache2
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrarywise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
# Simply set it to empty, if you configure it yourself somewhere else.
# 
# Examples:
#
# If you would like to have agent and referer logfiles:
#
# setting it to "/var/log/apache2/referer_log referer, /var/log/apache2/agent_log agent"
#   corresponds to 
# CustomLog /var/log/apache2/referer_log referer
# CustomLog /var/log/apache2/agent_log   agent
#
# If you prefer a single logfile with access, agent, and referer information
# (Combined Logfile Format):
#
# setting it to "/var/log/apache2/access_log combined"
#   corresponds to 
# CustomLog /var/log/apache2/access_log combined
#
APACHE_ACCESS_LOG="/var/log/apache2/access_log combined"

## Type:	list(On,Off,DNS)
## Default:	"Off"
## ServiceReload: apache2
#
# UseCanonicalName: Determines how Apache constructs self-referencing 
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client.  When set "On", Apache will use the value of the
# ServerName directive.
#
APACHE_USE_CANONICAL_NAME="off"

## Type:	list(Major,Minor,Minimal,ProductOnly,OS,Full)
## Default:	"OS"
## ServiceReload: apache2
#
# How much information the server response header field contains about the server.
# (installed modules, versions, etc.)
# see http://httpd.apache.org/docs-2.0/mod/core.html#servertokens
#
APACHE_SERVERTOKENS="OS"

## Type:	list(on,off)
## Default:	"off"
## ServiceReload: apache2
#
# If mod_status is used, include extended information about the server, like 
# CPU usage, in the status report. It is a server-wide setting, and it can cost
# some performance!
#
APACHE_EXTENDED_STATUS="off"

## Type:	list(on,off)
## Default:	"off"
## ServiceRestart: apache2
#
# Enable buffered logging
#
APACHE_BUFFERED_LOGS="off"

## Type:	integer
## Default:	300
## ServiceReload: apache2
#
# Timeout: The number of seconds before receives and sends time out.
# It is a server wide setting.
#
APACHE_TIMEOUT="300"


Und das ist jetzt die "/usr/share/apache2/find_mpm"
Code:
#!/bin/bash

: ${apache_link:=/usr/sbin/httpd2}

. /usr/share/apache2/load_configuration

if ! ${mpm_set:=false}; then 
	if [ -z "$APACHE_MPM" ]; then 
		# guess
		for i in $r/$apache_link-*; do 
			test -f $i || continue
			i=$(basename $i)
			i=${i#*-}
			installed_mpms=(${installed_mpms[*]} $i)
		done
		if [ -z "${installed_mpms[*]}" ]; then
			echo >&2 ${warn}Apache binary ${apache_link#*-} not found. No MPM package installed? $norm
			echo >&2 Hint: install the apache2-prefork package, and try again.
		fi
		if [ ${#installed_mpms[*]} = 1 ]; then
			APACHE_MPM=${installed_mpms[*]}
		else
			case ${installed_mpms[*]} in
			*prefork*)	APACHE_MPM=prefork;;
			*worker*)	APACHE_MPM=worker;;
			*leader*)	APACHE_MPM=leader;;
			*perchild*)	APACHE_MPM=perchild;;
			*metuxmpm*)	APACHE_MPM=metuxmpm;;
			*threadpool*)	APACHE_MPM=threadpool;;
			esac
		fi

	fi
	if [ -x $apache_link-$APACHE_MPM ]; then
		ln -sf $apache_link-$APACHE_MPM $apache_link
		echo $apache_link-$APACHE_MPM
	else
		echo >&2 ${warn}$apache_link-$APACHE_MPM is not a valid httpd2 binary. 
		echo >&2 Check your APACHE_MPM setting.$norm
		exit 1
	fi
		
	export APACHE_MPM mpm_set=true
fi

Diese Datei wurde aber zum letzten mal geändert wo der Server neu Installiert wurde.


MfG
Andy
 
Mmmh, in allen Dateien eigendlich nix Verdächtiges. Dennoch steigt er aus... :(
Da er definitiv kein MPM findet, kann dies nur eins bedeuten: Es sind keine MPMs vorhanden.
Teste es mal, indem Du den MPM konkret benennst:
Code:
APACHE_MPM="prefork"

huschi.
 
Hat leider auch nicht Funksoniert

Was Bedeutet eigendlich diese Meldung: ) httpd2-prefork: could not open document config file /srv/www/\r

weil danach Bricht er ja eigendlich ab, der Ordner hat recht 755 also dürfte er ja Lesen können oder?
oder soll da eine Datein innen Liegt, weil da nur Ordner innen sind ...

MfG
Andy
 
Hat leider auch nicht Funksoniert
Konkrete Fehlermeldung bitte!

Was Bedeutet eigendlich diese Meldung: ) httpd2-prefork: could not open document config file /srv/www/\r
Lediglich, daß das Startscript keine gültige Konfiguration gelesen hat.
Das ist genauso aussagekräftig wie 'Module "cgi" is not installed', weil in der Config überhaupt kein CGI-Modul drin steht.

Der Dreh-&Angelpunkt bei Suse ist immer die /etc/sysconfig/apache2. Wenn da was nicht stimmt kommt das ganze Startscript durcheinaner.
Deine gepostete Version scheint aber syntaktisch korrekt zu sein.
Sicher das das die richtige/gültige Version ist?
Wird diese Datei auch in /usr/share/apache2/load_configuration aufgerufen?

huschi.
 
Also Fehlermeldung ist leider immer noch die gleich ...
Hmm eine Orginal einstellung hast du Nicht zufällig zurferfügung oder?

Mfg andy
 
Wir hatten auch kein Apache mehr nach der Installation von 8.1

Das 8.1 update hatte in der Sysconfig die Eintragungen der Module zerstoert. Nach eintragung aller Module, die einen Fehler meldeten (habe die einfach aus der Beispielzeile eine Zeile höher genommen) lies sich apache wieder ohne Probleme starten.

HTML:
APACHE_MODULES="access actions alias asis auth autoindex cgi dir imap status expires include log_config mime negotiation setenvif ssl userdir php4 php5 perl python rewrite jk suexec"

Wir haben allerdings auch ein paar Mdule drin die wohl wenige brauchen ;-) aber gerade die ersten hatten wohl gefehlt in der configuration.
 
Back
Top