update the apache: how can i do a update via yast?

|have opensuse 13,1 up and running.
|

but i have issues with the apache . guess that i have messed up the configuration.

how can i check that.
how can i do a update via yast?

look forward to hear from you
|
|
||

Again?
Or does it still not work?

how can i check that.

You should know this already:

sudo systemctl status apache2

And enter “http://localhost” as address into a web browser, this should give you a test page at least, if Apache is running.

how can i do a update via yast?

What kind of update do you mean?

Enter YaST->Online Updates to install the official updates.
Or right-click on the package(s) in YaST->Software Management and select “Update”.

If you want to update to a different version, you have to add an additional repo and then switch the package(s) to the versions from that repo, by using the “Versions” tab.

But if your configuration is broken, this won’t help anyway.
The configuration files are not replaced when you update/re-install apache.
And that’s a good thing ™! :wink:

To get the default configuration, just remove the directory /etc/apache2 and re-install the apache2 package.


sudo rm -r /etc/apache2
sudo zypper in -f apache2

But of course all changes you manually did to the configuration will be lost when you do this.

So better just rename it:


sudo mv /etc/apache2 /etc/apache2.bak
sudo zypper in -f apache2

hello dear wolfi

currently i am on holiday and have not enough time nor bandwith to do extensive talks & investigations. But i will do more checks and i sure will digg deeper into all your advices at the weekend.
So i expect to get more out of all the Apache-things at the weekend.

then i come back and report more

meanwhile - many many thanks for all your help
greetings

dilbert
ps - you do a great job here. Many many thanks

hello dear wofi

here the output

guess that i now have totally new settings


linux-70ce:/home/martin/osmosis # sudo zypper in -f apache2
Daten des Repositories laden ...
Installierte Pakete lesen ...
Installation von 'apache2-2.4.6-6.19.2.i586' aus Repository 'openSUSE 13.1 OSS Update' wird erzwungen.
Paketabhängigkeiten auflösen ...

The following package is going to be reinstalled:
  apache2 

1 zu installierendes Paket.
Gesamtgröße des Downloads: 986,8 KiB. Kein zusätzlicher Speicherplatz wird nach dieser Operation belegt oder 
freigegeben.
Fortfahren? [j/n/? zeigt alle Optionen] (j): j
Paket apache2-2.4.6-6.19.2.i586 wird abgerufen                                   (1/1), 986,8 KiB (  3,3 MiB entpackt)
Abruf: apache2-2.4.6-6.19.2.i586.rpm .........................................................................[fertig]
(1/1) Installation von: apache2-2.4.6-6.19.2 .................................................................[fertig]
Zusätzliche rpm-Ausgabe:
/usr/sbin/suexec2: cannot verify root:root 0755 - not listed in /etc/permissions
Updating /etc/sysconfig/apache2...
looking for old 2.0 modules to be renamed...
Done.


linux-70ce:/home/martin/osmosis # 


later to day i wiill check if the apache is working correctly
guess that i can run locahost - with success

i come back and report all my findings

:wink:

hi

update - nope at the moment the localhost is not workin
guess that i have to make some configurations first

  • can i check some things with the terminal - to get a better overview on the current situation?

No.

Did you remove the old configuration first before re-installing apache2?

sudo rm -r /etc/apache2/*

As I said, the existing configuration will not be replaced when you re-install the package.
You should also re-install the packages “apache2-doc”, “apache2-mod_perl”, “apache2-mod_php5” and “yast2-instserver”, as they also contain files in /etc/apache2/.
But if those files are missing, apache2 should start anyway.

Did you actually start apache?

sudo systemctl start apache2

or to enable it to be started automatically on boot:

sudo systemctl enable apache2

You can also use YaST->System->Services Manager for both things.

Do you actually have a index.html in /srv/www/htdocs/? A simple test page is available in the package “apache2-example-pages”. Do you have that installed?

And as you have been told a few times already, to check whether apache2 is running, use:

sudo systemctl status apache2

This would also show the reason why it failed to start.

And apache’s log files are in /var/log/apache2/.

hello again thx for your quick reply

see the commands i have applied.


linux-70ce:/home/martin/osmosis # sudo zypper in -f apache2
Daten des Repositories laden ...
Installierte Pakete lesen ...
Installation von 'apache2-2.4.6-6.19.2.i586' aus Repository 'openSUSE 13.1 OSS Update' wird erzwungen.
Paketabhängigkeiten auflösen ...

The following package is going to be reinstalled:
  apache2 

1 zu installierendes Paket.
Gesamtgröße des Downloads: 986,8 KiB. Kein zusätzlicher Speicherplatz wird nach dieser Operation belegt oder 
freigegeben.
Fortfahren? [j/n/? zeigt alle Optionen] (j): j
Paket apache2-2.4.6-6.19.2.i586 wird abgerufen                                   (1/1), 986,8 KiB (  3,3 MiB entpackt)
Abruf: apache2-2.4.6-6.19.2.i586.rpm .........................................................................[fertig]
(1/1) Installation von: apache2-2.4.6-6.19.2 .................................................................[fertig]
Zusätzliche rpm-Ausgabe:
/usr/sbin/suexec2: cannot verify root:root 0755 - not listed in /etc/permissions
Updating /etc/sysconfig/apache2...
looking for old 2.0 modules to be renamed...
Done.


linux-70ce:/home/martin/osmosis # 
linux-70ce:/home/martin/osmosis # 
linux-70ce:/home/martin/osmosis # sudo rm -r /etc/apache2/*
linux-70ce:/home/martin/osmosis # 
linux-70ce:/home/martin/osmosis # 
linux-70ce:/home/martin/osmosis # sudo systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
linux-70ce:/home/martin/osmosis # sudo systemctl enable apache2
linux-70ce:/home/martin/osmosis # sudo systemctl status apache2
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: failed (Result: exit-code) since So 2014-04-27 21:36:51 CEST; 27s ago
 Main PID: 31268 (code=exited, status=1/FAILURE)

Apr 27 21:36:51 linux-70ce.site start_apache2[31286]: /usr/share/apache2/get_module_list: line 141: 3: Bad file...ptor
Apr 27 21:36:51 linux-70ce.site start_apache2[31286]: /usr/share/apache2/get_module_list: line 144: 3: Bad file...ptor
Apr 27 21:36:51 linux-70ce.site start_apache2[31286]: /usr/share/apache2/get_module_list: line 151: 3: Bad file...ptor
Apr 27 21:36:51 linux-70ce.site start_apache2[31286]: /usr/share/apache2/get_includes: line 15: /etc/apache2/sy...tory
Apr 27 21:36:51 linux-70ce.site start_apache2[31286]: /usr/share/apache2/get_includes: line 16: 3: Bad file descriptor
Apr 27 21:36:51 linux-70ce.site start_apache2[31286]: /usr/share/apache2/get_includes: line 43: 3: Bad file descriptor
Apr 27 21:36:51 linux-70ce.site start_apache2[31286]: httpd2-prefork: Could not open configuration file /etc/ap...tory
Apr 27 21:36:51 linux-70ce.site systemd[1]: apache2.service: control process exited, code=exited status=1
Apr 27 21:36:51 linux-70ce.site systemd[1]: Failed to start The Apache Webserver.
Apr 27 21:36:51 linux-70ce.site systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
linux-70ce:/home/martin/osmosis # 


guess that i have to do some configurations first.

or do i need to do more (other ) steps … look forward to hear from you

Many many thanks for all you did so far.
Your help in this forum is very very supportive and helpful…:wink:

Please use “sudo systemctl status -l apache2” to see the full output as the message suggests (and you have been told already in a different thread).
But as far as I can decipher that, /etc/apache2 seems to be missing.

You should of course remove the configuration before you re-install apache2, not afterwards.
So please re-install the package(s) again:

sudo zypper in -f apache2-doc apache2-mod_perl apache2-mod_php5 yast2-instserver

(but better check first which of those packages are actually installed and only re-install those)

hello

just a quick reply - (since i have to leave the house in the next five minutes)



linux-70ce:/home/martin/osmosis # sudo zypper in -f apache2-doc apache2-mod_perl apache2-mod_php5 yast2-instserver
Daten des Repositories laden ...
Installierte Pakete lesen ...
Installation von 'apache2-mod_php5-5.4.20-4.1.i586' aus Repository 'openSUSE 13.1 OSS Update' wird erzwungen.
Installation von 'apache2-mod_perl-2.0.8-4.1.3.i586' aus Repository 'openSUSE 13.1 OSS' wird erzwungen.
Installation von 'yast2-instserver-3.0.1-1.1.noarch' aus Repository 'openSUSE 13.1 OSS' wird erzwungen.
Installation von 'apache2-doc-2.4.6-6.19.2.noarch' aus Repository 'openSUSE 13.1 OSS Update' wird erzwungen.
Paketabhängigkeiten auflösen ...

The following NEW package is going to be installed:
  yast2-instserver 

The following 3 packages are going to be reinstalled:
  apache2-doc apache2-mod_perl apache2-mod_php5 

1 neues Paket zu installieren, 3 erneut zu installieren.
Gesamtgröße des Downloads: 7,0 MiB. Nach der Operation werden zusätzlich 136,1 KiB belegt.
Fortfahren? [j/n/? zeigt alle Optionen] (j): j
Paket apache2-mod_perl-2.0.8-4.1.3.i586 wird abgerufen                           (1/4),   3,1 MiB (  7,3 MiB entpackt)
Abruf: apache2-mod_perl-2.0.8-4.1.3.i586.rpm .....................................................[fertig (1,3 MiB/s)]
Paket yast2-instserver-3.0.1-1.1.noarch wird abgerufen                           (2/4),  34,5 KiB (136,1 KiB entpackt)
Abruf: yast2-instserver-3.0.1-1.1.noarch.rpm .................................................................[fertig]
Paket apache2-doc-2.4.6-6.19.2.noarch wird abgerufen                             (3/4),   2,6 MiB ( 18,0 MiB entpackt)
Abruf: apache2-doc-2.4.6-6.19.2.noarch.rpm .......................................................[fertig (1,3 MiB/s)]
Paket apache2-mod_php5-5.4.20-4.1.i586 wird abgerufen                            (4/4),   1,2 MiB (  5,8 MiB entpackt)
Abruf: apache2-mod_php5-5.4.20-4.1.i586.rpm ......................................................[fertig (1,2 MiB/s)]
(1/4) Installation von: apache2-mod_perl-2.0.8-4.1.3 .........................................................[fertig]
(2/4) Installation von: yast2-instserver-3.0.1-1.1 ...........................................................[fertig]
(3/4) Installation von: apache2-doc-2.4.6-6.19.2 .............................................................[fertig]
(4/4) Installation von: apache2-mod_php5-5.4.20-4.1 ..........................................................[fertig]
linux-70ce:/home/martin/osmosis # 


will do more tomorrow - and do more checks and tests

just a note:

So you didn’t have yast2-instserver installed before.

you can of course uninstall it again if you want.
I don’t think you would need it… :wink:

hello dear wolfi

more exciting things regarding the apache2 story: see here


martin@linux-70ce:~> sudo mv /etc/apache2 /etc/apache2.bak
root's password:
Das hat nicht funktioniert, bitte nochmal probieren.
root's password:
martin@linux-70ce:~> sudo mv /etc/apache2 /etc/apache2.bak
mv: der Aufruf von stat für „/etc/apache2“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden
martin@linux-70ce:~> sudo zypper in -f apache2
Daten des Repositories laden ...
Installierte Pakete lesen ...
Installation von 'apache2-2.4.6-6.19.2.i586' aus Repository 'openSUSE 13.1 OSS Update' wird erzwungen.
Paketabhängigkeiten auflösen ...

The following package is going to be reinstalled:
  apache2 

1 zu installierendes Paket.
Gesamtgröße des Downloads: 986,8 KiB. Kein zusätzlicher Speicherplatz wird nach dieser Operation belegt oder freigegeben.
Fortfahren? [j/n/? zeigt alle Optionen] (j): j
Paket apache2-2.4.6-6.19.2.i586 wird abgerufen                                                                                                 (1/1), 986,8 KiB (  3,3 MiB entpackt)
Abruf: apache2-2.4.6-6.19.2.i586.rpm .........................................................................................................................[fertig (576,3 KiB/s)]
(1/1) Installation von: apache2-2.4.6-6.19.2 ...............................................................................................................................[fertig]
Zusätzliche rpm-Ausgabe:
/usr/sbin/suexec2: cannot verify root:root 0755 - not listed in /etc/permissions
Updating /etc/sysconfig/apache2...
looking for old 2.0 modules to be renamed...
Done.


martin@linux-70ce:~> 
martin@linux-70ce:~> 
martin@linux-70ce:~> sudo systemctl start apache2
Job for apache2.service failed. See 'systemctl status apache2.service' and 'journalctl -xn' for details.
martin@linux-70ce:~> 
martin@linux-70ce:~> 
martin@linux-70ce:~> sudo systemctl enable apache2
martin@linux-70ce:~> sudo systemctl status apache2
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: failed (Result: exit-code) since Mi 2014-04-30 20:16:01 CEST; 25s ago
 Main PID: 3839 (code=exited, status=1/FAILURE)
                                                                                                                                                                                    
Apr 30 20:16:01 linux-70ce.site systemd[1]: Starting The Apache Webserver...                                                                                                        
Apr 30 20:16:01 linux-70ce.site start_apache2[3839]: AH00526: Syntax error on line 48 of /etc/apache2/ssl-global.conf:                                                              
Apr 30 20:16:01 linux-70ce.site start_apache2[3839]: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socac...e_shmcb?).
Apr 30 20:16:01 linux-70ce.site systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE                                                                     
Apr 30 20:16:01 linux-70ce.site start_apache2[3857]: AH00526: Syntax error on line 48 of /etc/apache2/ssl-global.conf:                                                              
Apr 30 20:16:01 linux-70ce.site start_apache2[3857]: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socac...e_shmcb?).
Apr 30 20:16:01 linux-70ce.site systemd[1]: apache2.service: control process exited, code=exited status=1                                                                           
Apr 30 20:16:01 linux-70ce.site systemd[1]: Failed to start The Apache Webserver.                                                                                                   
Apr 30 20:16:01 linux-70ce.site systemd[1]: Unit apache2.service entered failed state.                                                                                              
Hint: Some lines were ellipsized, use -l to show in full.
martin@linux-70ce:~> 

well it is confusing - at least to me… i look forward to your ideas and thoughts…
many many thanks for the help so far - i am pretty sure that we are very close

Apparently you entered a wrong password.
But you seem to have noticed yourself.
No need to post that… :wink:

martin@linux-70ce:~> sudo mv /etc/apache2 /etc/apache2.bak
mv: der Aufruf von stat für „/etc/apache2“ ist nicht möglich: Datei oder Verzeichnis nicht gefunden

Yes, that’s because you (re)moved it earlier.
That’s why I advised to reinstall apache2 again in the first place.

martin@linux-70ce:~> sudo systemctl status apache2
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: failed (Result: exit-code) since Mi 2014-04-30 20:16:01 CEST; 25s ago
 Main PID: 3839 (code=exited, status=1/FAILURE)
                                                                                                                                                                                    
Apr 30 20:16:01 linux-70ce.site systemd[1]: Starting The Apache Webserver...                                                                                                        
Apr 30 20:16:01 linux-70ce.site start_apache2[3839]: AH00526: Syntax error on line 48 of /etc/apache2/ssl-global.conf:                                                              
Apr 30 20:16:01 linux-70ce.site start_apache2[3839]: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socac...e_shmcb?).
Apr 30 20:16:01 linux-70ce.site systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE                                                                     
Apr 30 20:16:01 linux-70ce.site start_apache2[3857]: AH00526: Syntax error on line 48 of /etc/apache2/ssl-global.conf:                                                              
Apr 30 20:16:01 linux-70ce.site start_apache2[3857]: SSLSessionCache: 'shmcb' session cache not supported (known names: ). Maybe you need to load the appropriate socac...e_shmcb?).
Apr 30 20:16:01 linux-70ce.site systemd[1]: apache2.service: control process exited, code=exited status=1                                                                           
Apr 30 20:16:01 linux-70ce.site systemd[1]: Failed to start The Apache Webserver.                                                                                                   
Apr 30 20:16:01 linux-70ce.site systemd[1]: Unit apache2.service entered failed state.                                                                                              
Hint: Some lines were ellipsized, use -l to show in full.
martin@linux-70ce:~> 

So apparently you have specified a module in /etc/sysconfig/apache2 that no longer exists in apache 2.4.
Could you please post that file?

I remember that problem from another thread where the OP also posted a solution.
I will have to look that up though, may take a while…

PS, have look here:
http://forums.opensuse.org/showthread.php/494218-Apache-Syntax-Error-etc-apache2-ssl-global-conf?p=2624109#post2624109

That’s not the thread I was thinking of, but I cannot seem to find that one right now. I guess I would have to look through all threads I’m subscribed to, but that would really take a while since I can’t even remember the month that one would have been in.

So the question is, do you even need that module, i.e do you want to set up a server that serves via ssl?
I wouldn’t want to waste my time for solving a problem that doesn’t even exist. :wink:

hello dear wolfi

many many thx for the quick reply and the help. to answer a important question…

So the question is, do you even need that module, i.e do you want to set up a server that serves via ssl?

no - i would not. i do not need the ssl feature. does this make the - “solution” a bit easier.

Yes, I think so.
As I said, it should work fine with a default configuration.

So, could you please post your /etc/sysconfig/apache2?

Changing APACHE_MODULES back to the default (as mentioned in that file) should help as well.

hello - here the output of the sysconfig



## Path:       Network/WWW/Apache/SuSEhelp
## Description:       SuSE help doc server configuration
## Type:       yesno
## Default:       no
## Config:         apache
## ServiceRestart: apache
## Command:
#
# Set this to yes on the central documentation server
# or to configure apache for local use of susehelp. 
# Then the online-help-system indices are automatically adjusted
# and access to the help-files is allowed as specified in DOC_ALLOW.
# To run as a client for the central documentation server who's name
# is specified in DOC_HOST, just set DOC_SERVER to no.
# The DOC_HOST and DOC_ALLOW variables are in the file /etc/sysconfig/susehelp.
#
DOC_SERVER="no"
## 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/apache2/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:    "actions alias auth_basic authz_host authn_file authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"
## 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: 
#
#    actions alias asis auth_basic auth_digest authn_alias authn_anon
#    authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm
#    authz_default authz_groupfile authz_host authz_owner authz_user
#    autoindex bucketeer cache case_filter case_filter_in cern_meta cgi
#    charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio
#    echo env expires ext_filter file_cache filter headers ident imagemap
#    include info ldap log_config log_forensic logio mem_cache mime mime_magic
#    negotiation optional_fn_export optional_fn_import optional_hook_export
#    optional_hook_import proxy proxy_ajp proxy_balancer proxy_connect
#    proxy_ftp proxy_http proxy_scgi reqtimeout rewrite setenvif speling ssl
#    status substitute suexec unique_id userdir usertrack version vhost_alias 
#
#   see http://httpd.apache.org/docs-2.2/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 SSL: before you can use mod_ssl, 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)
# * to finally enable ssl support, you need to add 'SSL' to APACHE_SERVER_FLAGS 
#   below.
#
# * modules listed here will be ignored if they are not installed
#
#
# EXAMPLES:
#
# fairly minimal
# APACHE_MODULES="authz_host alias auth dir log_config mime setenvif"
#
# apache's default installation
# APACHE_MODULES="authz_host actions alias asis auth autoindex cgi dir imap include log_config mime negotiation setenvif status userdir"
# your settings
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile  authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl userdir php5 reqtimeout authn_core authz_core"


## 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="SSL"

## 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.
#
# Note about ulimits:
#   if you want to set ulimits, e.g. to increase the max number of open file handle, 
#   or to allow core files, you can do so by editing /etc/sysconfig/apache2 and
#   simply write the ulimit commands into that file.
#   Example:
#     ulimit -n 16384
#     ulimit -H -n 16384
#     ulimit -c unlimited
#   See the output of "help ulimit" in the bash, or "man 1 ulimit".
#
APACHE_HTTPD_CONF=""

## Type:    list(prefork,worker,event,itk)
## 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.2/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"


greetings

Unfortunately this looks ok, and the same as here where apache works…

OTOH, your error message says “Syntax error on line 48 of /etc/apache2/ssl-global.conf”.
So try to comment that line out by adding a ‘#’ in front of it.

What does that file look now for you (especially that one line)?
You should have the default one, as I have.
Here it’s:

        SSLSessionCache         shmcb:/var/lib/apache2/ssl_scache(512000)

And Apache starts fine.

hello dear wolfi

many thanks for your reply!!!

i can comment out the line 48

currently the file looks like this…:

##
##  SSL Global Context
##
##  All SSL configuration in this context applies both to
##  the main server and all SSL-enabled virtual hosts.
##

# These are the configuration directives to instruct the server how to
# serve pages over an https connection. For detailing information about these
# directives see <URL:http://httpd.apache.org/docs-2.2/mod/mod_ssl.html>
#
# Do NOT simply read the instructions in here without understanding
# what they do.  They're here only as hints or reminders.  If you are unsure
# consult the online docs. You have been warned.

# This global SSL configuration is ignored if 
# "SSL" is not defined, or if "NOSSL" is defined.
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>

    #
    #   Some MIME-types for downloading Certificates and CRLs
    #
    AddType application/x-x509-ca-cert .crt
    AddType application/x-pkcs7-crl    .crl

    #   Pass Phrase Dialog:
    #   Configure the pass phrase gathering process.
    #   The filtering dialog program (`builtin' is a internal
    #   terminal dialog) has to provide the pass phrase on stdout.
    &lt;IfDefine SYSTEMD&gt;
    SSLPassPhraseDialog exec:/usr/sbin/apache2-systemd-ask-pass
    &lt;/IfDefine&gt;
    &lt;IfDefine !SYSTEMD&gt;
    SSLPassPhraseDialog  builtin
    &lt;/IfDefine&gt;

    #   Inter-Process Session Cache:
    #   Configure the SSL Session Cache: First the mechanism 
    #   to use and second the expiring timeout (in seconds).
    #   shm means the same as shmht. 
    #   Note that on most platforms shared memory segments are not allowed to be on 
    #   network-mounted drives, so in that case you need to use the dbm method.
    #SSLSessionCache        none
    #SSLSessionCache         dbm:/var/lib/apache2/ssl_scache
    #SSLSessionCache        shmht:/var/lib/apache2/ssl_scache(512000)
    SSLSessionCache         shmcb:/var/lib/apache2/ssl_scache(512000)
    SSLSessionCacheTimeout  300


    #   Pseudo Random Number Generator (PRNG):
    #   Configure one or more sources to seed the PRNG of the 
    #   SSL library. The seed data should be of good random quality.
    #   WARNING! On some platforms /dev/random blocks if not enough entropy
    #   is available. This means you then cannot use the /dev/random device
    #   because it would lead to very long connection times (as long as
    #   it requires to make more entropy available). But usually those
    #   platforms additionally provide a /dev/urandom device which doesn't
    #   block. So, if available, use this one instead. Read the mod_ssl User
    #   Manual for more details.
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    #SSLRandomSeed startup file:/dev/random  512
    #SSLRandomSeed connect file:/dev/random  512
    #SSLRandomSeed startup file:/dev/urandom 512
    #SSLRandomSeed connect file:/dev/urandom 512

&lt;/IfModule&gt;
&lt;/IfDefine&gt;
&lt;/IfDefine&gt;

Shouldn’t actually be necessary, your file looks exactly like mine.

But I had a closer look on that file now, and that part is only used if the flag “SSL” is set.

# This global SSL configuration is ignored if
# "SSL" is not defined, or if "NOSSL" is defined.

AFAICS this would normally be set in the APACHE_SERVER_FLAGS variable in /etc/sysconfig/apache2, so have a look at this.
Here it is empty (i.e. the default).

hello dear wolfi -

many many thanks for all the help #
here we ve got the whole file:


# or to configure apache for local use of susehelp. 
# Then the online-help-system indices are automatically adjusted
# and access to the help-files is allowed as specified in DOC_ALLOW.

## Path:       Network/WWW/Apache/SuSEhelp
## Description:       SuSE help doc server configuration
## Type:       yesno
## Default:       no
## Config:         apache
## ServiceRestart: apache
## Command:
#
# Set this to yes on the central documentation server
# To run as a client for the central documentation server who's name
# is specified in DOC_HOST, just set DOC_SERVER to no.
# The DOC_HOST and DOC_ALLOW variables are in the file /etc/sysconfig/susehelp.
#
DOC_SERVER="no"
## 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/apache2/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:    "actions alias auth_basic authz_host authn_file authz_groupfile authz_default authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php5"
## 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: 
#
#    actions alias asis auth_basic auth_digest authn_alias authn_anon
#    authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm
#    authz_default authz_groupfile authz_host authz_owner authz_user
#    autoindex bucketeer cache case_filter case_filter_in cern_meta cgi
#    charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio
#    echo env expires ext_filter file_cache filter headers ident imagemap
#    include info ldap log_config log_forensic logio mem_cache mime mime_magic
#    negotiation optional_fn_export optional_fn_import optional_hook_export
#    optional_hook_import proxy proxy_ajp proxy_balancer proxy_connect
#    proxy_ftp proxy_http proxy_scgi reqtimeout rewrite setenvif speling ssl
#    status substitute suexec unique_id userdir usertrack version vhost_alias 
#
#   see http://httpd.apache.org/docs-2.2/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 SSL: before you can use mod_ssl, 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)
# * to finally enable ssl support, you need to add 'SSL' to APACHE_SERVER_FLAGS 
#   below.
#
# * modules listed here will be ignored if they are not installed
#
#
# EXAMPLES:
#
# fairly minimal
# APACHE_MODULES="authz_host alias auth dir log_config mime setenvif"
#
# apache's default installation
# APACHE_MODULES="authz_host actions alias asis auth autoindex cgi dir imap include log_config mime negotiation setenvif status userdir"
# your settings
APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile  authz_user autoindex cgi dir env expires include log_config mime negotiation setenvif ssl userdir php5 reqtimeout authn_core authz_core"


## 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="SSL"

## 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.
#
# Note about ulimits:
#   if you want to set ulimits, e.g. to increase the max number of open file handle, 
#   or to allow core files, you can do so by editing /etc/sysconfig/apache2 and
#   simply write the ulimit commands into that file.
#   Example:
#     ulimit -n 16384
#     ulimit -H -n 16384
#     ulimit -c unlimited
#   See the output of "help ulimit" in the bash, or "man 1 ulimit".
#
APACHE_HTTPD_CONF=""

## Type:    list(prefork,worker,event,itk)
## 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.2/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"