• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved After Upgrade from Ubuntu 16.04 to 18.04, can't start apache due to syntax error in apache2.conf

jradzuweit

Basic Pleskian
Hi,
I have done a dist-upgrade from 16.04 to 18.04 according to the KB articel but now I stuck with the following error message

root@vega:/etc/apache2# apachectl -t
apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax error on line 2 of /etc/apache2/mods-enabled/proxy_wstunnel.load: Cannot load /usr/lib/apache2/modules/mod_proxy_wstunnel.so into server: /usr/lib/apache2/modules/mod_proxy_wstunnel.so: undefined symbol: ap_proxy_transfer_between_connections
Action '-t' failed.
The Apache error log may have more information.
The apache log has no more information and the mail contains the same as above.

Here some more details of the config files
root@vega:/etc/apache2# grep IncludeOptional -n apache2.conf
140:IncludeOptional mods-enabled/*.load
141:IncludeOptional mods-enabled/*.conf
216:IncludeOptional conf-enabled/*.conf
219:IncludeOptional sites-enabled/*.conf
root@vega:/etc/apache2# ls /etc/apache2/mods-enabled/proxy_wstunnel.load
/etc/apache2/mods-enabled/proxy_wstunnel.load
root@vega:/etc/apache2# cat /etc/apache2/mods-enabled/proxy_wstunnel.load
# Depends: proxy
LoadModule proxy_wstunnel_module /usr/lib/apache2/modules/mod_proxy_wstunnel.so
root@vega:/etc/apache2# ls -l /usr/lib/apache2/modules/mod_proxy_wstunnel.so
-rw-r--r-- 1 root root 18400 Aug 12 2020 /usr/lib/apache2/modules/mod_proxy_wstunnel.so
root@vega:/etc/apache2#
Maybe some wrong version of the shared lib?
Has anybody an idea how to fix this?
 
Last edited:
hello @jradzuweit ,
as I remember there was a step in the instruction that you should disable apache proxy module.
did you try this?
 
Yes, I have disabled the proxy module before. In the mean time I ran the

Code:
plesk repair web

disabled the module, the tool fixed the remaining errors and generaterd the apache config files new. Now everything works again.
 
Back
Top