• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Forwarded to devs After upgrading to Plesk 18.0.30 apache stops randomly.

EmilioO

Basic Pleskian
User name: EmilioO

TITLE

After upgrading to Plesk 18.0.30 apache stops randomly.

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

Plesk Obsidian 18.0.30, Ubuntu 16.04.7 LTS, x64

PROBLEM DESCRIPTION

After upgrading Plesk 18.0.30 apache stops at random times 1h , 48h, 30min...
When graceful restart its checked apache stops more frequently.
When apache restart interval is low (1 min) stops more frequently , now its configure in 30 min.
Apache has stoped 4 times in last 24h.
Sometimes I've recibe the following message:

Code:
Unable to generate the web server configuration file on the host <kinetica.mobi> because of the following errors:

Template_Exception: Can not restart web server:
file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 122
code: 0

Please resolve the errors in web server configuration templates and generate the file again.

I thinks this error occurs when apache has stoped yet.

STEPS TO REPRODUCE

Install Plesk 18.0.30

ACTUAL RESULT

Apache stops randomly

EXPECTED RESULT

Apache doesn't stops

ANY ADDITIONAL INFORMATION

Different Logs and apache status:

Code:
[Thu Sep 17 11:29:16.160073 2020] [mpm_prefork:notice] [pid 27842] AH00169: caught SIGTERM, shutting down

Sep 17 11:29:17 kinetica apache2[28389]:  *
Sep 17 11:29:17 kinetica systemd[1]: Stopped LSB: Apache2 web server.

sep 17 11:29:17 kinetica.mobi apache2[28389]:  *
sep 17 11:29:17 kinetica.mobi systemd[1]: Stopped LSB: Apache2 web server.
sep 17 11:29:17 kinetica.mobi audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=apache2 comm="systemd" exe="/lib/systemd/systemd" hostname=? addr=? terminal=? res=success



 Details: [2020-09-17 12:36:40.687] ERR [util_exec] proc_close()
      failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart'
      '--restart-interval' '1800' '--http-port' '7080' '--https-port'
      '7081'] with exit code [255]
      [2020-09-17 12:37:04.029] ERR [panel] Apache config
      (16003388100.98830100) generation failed: Template_Exception:
      Can not restart web server:
      file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
      line: 122
      code: 0
      Can not restart web server:


● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf, limit_nofile.conf
   Active: inactive (dead) since jue 2020-09-17 12:34:38 CEST; 4min 33s ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/apache2.service
           ├─ 7145 /usr/sbin/apache2 -k start
           ├─17513 /usr/sbin/apache2 -k start
           └─27098 /usr/sbin/apache2 -k start

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
  • Like
Reactions: K8L
Hi, I've already run Plesk Webserver Configuration Troubleshooter and regenerate all files, no error.
Also run plesk repair web -v -y
I've rerun Plesk Webserver Configuration Troubleshooter I find a domain with error (expired yesterday) I've regenerated again and no error showed in the extension.
 
I have the same issue, plesk simply doesn't seem to be able to start apache for some reason. I can restart apache via command line and everything seems to work as normal, only Plesk can't start apache. It sure can stop it though.

I get the same error in the plesk repair tool, when trying to reboot apache in the Configuration Troubleshooter and when changing settings in the web sites. Always the "line 122" error since I updated Plesk to 18.0.30 on Ubuntu 16.04.
 
Cannot reproduce the issue.

Please provide the output of:

'/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '1800' '--http-port' '7080' '--https-port' '7081' --debug ; echo "RC=$?"
systemctl status apache2.service -l
dpkg -l | grep apache2
apache2ctl -M
for p in apache2 apache2-bin apache2-data apache2-utils; do dpkg -V $p; done
cat /etc/psa/psa.conf

As well as any relevant parts of /var/log/apache2/error.log, /var/log/syslog, /var/log/plesk/rc_actions.log.

Or just reach out to Support Team.
 
Thanks! - as an additional note, it appears to want to create mail templates for domains which do not have mail enabled. these then fail and therefore the issue.

rgds
Robert

Maybe this will be of help. Got the same issue with Debian 9.
 
Last edited:
Cannot reproduce the issue.

Please provide the output of:

'/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '1800' '--http-port' '7080' '--https-port' '7081' --debug ; echo "RC=$?"
systemctl status apache2.service -l
dpkg -l | grep apache2
apache2ctl -M
for p in apache2 apache2-bin apache2-data apache2-utils; do dpkg -V $p; done
cat /etc/psa/psa.conf

As well as any relevant parts of /var/log/apache2/error.log, /var/log/syslog, /var/log/plesk/rc_actions.log.

Or just reach out to Support Team.

'/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '1800' '--http-port' '7080' '--https-port' '7081' --debug ; echo "RC=$?"

Code:
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
resource(s) deleted
RC=255

systemctl status apache2.service -l

Code:
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf, limit_nofile.conf
   Active: inactive (dead) since mié 2020-09-23 10:34:21 CEST; 3min 4s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 11371 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 26308 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
    Tasks: 4
   Memory: 299.6M
      CPU: 1min 10.813s
   CGroup: /system.slice/apache2.service
           ├─ 7145 /usr/sbin/apache2 -k start
           ├─17513 /usr/sbin/apache2 -k start
           ├─19300 /usr/sbin/apache2 -k start
           └─27098 /usr/sbin/apache2 -k start

sep 23 09:59:35 kinetica.mobi systemd[1]: Starting LSB: Apache2 web server...
sep 23 09:59:35 kinetica.mobi apache2[26308]:  * Starting Apache httpd web server apache2
sep 23 09:59:37 kinetica.mobi apache2[26308]:  *
sep 23 09:59:37 kinetica.mobi systemd[1]: Started LSB: Apache2 web server.
sep 23 10:34:16 kinetica.mobi systemd[1]: Stopping LSB: Apache2 web server...
sep 23 10:34:16 kinetica.mobi apache2[11371]:  * Stopping Apache httpd web server apache2
sep 23 10:34:21 kinetica.mobi apache2[11371]:  *
sep 23 10:34:21 kinetica.mobi systemd[1]: Stopped LSB: Apache2 web server.
sep 23 10:35:24 kinetica.mobi systemd[1]: Stopped LSB: Apache2 web server.

dpkg -l | grep apache2


Code:
ii  apache2                               2.4.18-2ubuntu3.17                                amd64        Apache HTTP Server
ii  apache2-bin                           2.4.18-2ubuntu3.17                                amd64        Apache HTTP Server (modules and other binary files)
ii  apache2-data                          2.4.18-2ubuntu3.17                                all          Apache HTTP Server (common files)
ii  apache2-utils                         2.4.18-2ubuntu3.17                                amd64        Apache HTTP Server (utility programs for web servers)
ii  libapache2-mod-aclr2-psa              14081815-v.ubuntu.16.04+p18.0.20.0+t191009.1747   amd64        Module for Apache2 to automate serving static content with NGINX
ii  libapache2-mod-bw                     0.92-18070914                                     amd64        Bandwidth Limiter module for Apache2
ii  libapache2-mod-fastcgi                2.4.7~0910052141-1.2                              amd64        Apache 2 FastCGI module for long-running CGI scripts
ii  libapache2-mod-fcgid-psa              2.3.9.5-v.ubuntu.16.04+p18.0.30.0+t200826.1456    amd64        Alternative FastCGI module for Apache2
ii  libapache2-mod-php                    1:7.0+35ubuntu6.1                                 all          server-side, HTML-embedded scripting language (Apache 2 module) (default)
rc  libapache2-mod-php5                   5.5.9+dfsg-1ubuntu4.21                            amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  libapache2-mod-php7.0                 7.0.33-0ubuntu0.16.04.15                          amd64        server-side, HTML-embedded scripting language (Apache 2 module)
ii  libapache2-mod-proxy-psa              2.4.18-v.ubuntu.16.04+p18.0.30.0+t200826.1456     amd64        Apache Module mod_proxy
ii  libapache2-mod-sysenv-psa             0.2-v.ubuntu.16.04+p18.0.30.0+t200821.1815        amd64        Plesk mod_sysenv module for Apache2
ii  libapache2-modsecurity-plesk          2.9.3-v.ubuntu.16.04+p18.0.30.0+t200826.1456      amd64        Open source, cross-platform, web server WAF module

apache2ctl -M

Code:
core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 aclr_module (shared)
 actions_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 auth_digest_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cgi_module (shared)
 cgid_module (shared)
 dav_module (shared)
 dav_lock_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 expires_module (shared)
 fastcgi_module (shared)
 fcgid_module (shared)
 filter_module (shared)
 headers_module (shared)
 include_module (shared)
 mime_module (shared)
 mpm_prefork_module (shared)
 negotiation_module (shared)
 proxy_module (shared)
 proxy_fcgi_module (shared)
 proxy_http_module (shared)
 remoteip_module (shared)
 rewrite_module (shared)
 security2_module (shared)
 setenvif_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)
 suexec_module (shared)
 sysenv_module (shared)
 unique_id_module (shared)
 userdir_module (shared)

for p in apache2 apache2-bin apache2-data apache2-utils; do dpkg -V $p; done

Code:
??5?????? c /etc/logrotate.d/apache2
??5?????? c /etc/apache2/mods-available/dir.conf
??5?????? c /etc/apache2/mods-available/mpm_prefork.conf
??5?????? c /etc/apache2/mods-available/ssl.conf
??5?????? c /etc/apache2/ports.conf
??5?????? c /etc/apache2/apache2.conf
??5?????? c /etc/apache2/sites-available/default-ssl.conf
??5?????? c /etc/apache2/sites-available/000-default.conf

cat /etc/psa/psa.conf

Code:
#
### Copyright 1999-2020. Plesk International GmbH. All rights reserved.
#
# This file is used to declare the location of different utilities,
# services, and/or packages within Plesk.  No changes should be made
# to this file without first consulting support. Any changes made can
# affect service availability and performance.
#
# Each line in this file follows the following format:
#
# variable [whitespace characters] value
#
# That is, the name of the field, followed by spaces or tabs, followed
# by field value. Trailing spaces are removed.
#

# Plesk tree
PRODUCT_ROOT_D /opt/psa

# Directory of SysV-like Plesk initscripts
PRODUCT_RC_D /etc/init.d

# Directory for config files
PRODUCT_ETC_D /opt/psa/etc

# Directory for service utilities
PLESK_LIBEXEC_DIR /usr/lib/plesk-9.0

# Virtual hosts directory
HTTPD_VHOSTS_D /var/www/vhosts

# Apache configuration files directory
HTTPD_CONF_D /etc/apache2

# Apache include files directory
HTTPD_INCLUDE_D /etc/apache2/conf-enabled

# Deprecated, will be removed. Apache binary
HTTPD_BIN /usr/sbin/apache2

# Apache log files directory
HTTPD_LOG_D /var/log/apache2

# Apache startup script
HTTPD_SERVICE apache2

# Qmail directory
QMAIL_ROOT_D /var/qmail

# Location of qmail maildirs
PLESK_MAILNAMES_D /media/2TB/mail/mailnames

# Path to rblsmtpd
RBLSMTPD /usr/sbin/rblsmtpd

# Bind
NAMED_RUN_ROOT_D /var/named/run-root

# Webalizer
WEB_STAT /usr/bin/webalizer

# MySQL
MYSQL_VAR_D /var/lib/mysql
MYSQL_BIN_D /usr/bin
MYSQL_SOCKET /var/run/mysqld/mysqld.sock

# PostgreSQL
PGSQL_DATA_D /var/lib/postgresql//main
PGSQL_CONF_D /etc/postgresql//main
PGSQL_BIN_D /usr/lib/postgresql/9.3/bin

# Backups directory
DUMP_D /media/2TB/backups/dumps
# Backups temporary directory. DUMP_TMP_D should not be inside of (or equal to) DUMP_D.
DUMP_TMP_D /media/2TB/tmp

# Mailman directories
MAILMAN_ROOT_D /usr/lib/mailman
MAILMAN_VAR_D /var/lib/mailman

# Python binary
PYTHON_BIN /usr/bin/python

# DrWeb
DRWEB_ROOT_D /opt/drweb
DRWEB_ETC_D  /etc/drweb

# GnuPG binary
GPG_BIN /usr/bin/gpg

# Tar binary
TAR_BIN /bin/tar

# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/lib/cgi-bin
AWSTATS_TOOLS_D /usr/share/awstats/tools
AWSTATS_DOC_D /usr/share/awstats

# openssl binary
OPENSSL_BIN /usr/bin/openssl

LIB_SSL_PATH /lib/libssl.so
LIB_CRYPTO_PATH /lib/libcrypto.so

CLIENT_PHP_BIN /opt/psa/bin/php-cli

# SNI
SNI_SUPPORT true

# APS controller
APS_DB_DRIVER_LIBRARY /usr/lib/x86_64-linux-gnu/sw/libmysqlserver.so.2.0

# SpamAssassin max mail size (in bytes)
SA_MAX_MAIL_SIZE 256000

LOGs at apache stop time

Code:
/var/log/apache2/error.log
    [Wed Sep 23 10:34:20.949698 2020] [mpm_prefork:notice] [pid 26333] AH00169: caught SIGTERM, shutting down
/var/log/syslog
    Sep 23 10:34:21 kinetica apache2[11371]:  *
    Sep 23 10:34:21 kinetica systemd[1]: Stopped LSB: Apache2 web server.

/var/log/plesk/rc_actions.log
    INFO: [Wed Sep 23 10:34:16 CEST 2020]: Service: apache, Action: stop
 Trying to stop service apache2... done
STOP pleskrc
START pleskrc
INFO: [Wed Sep 23 10:34:22 CEST 2020]: Service: apache, Action: start
 Trying to start service apache2... done
STOP pleskrc
 
Hi, if i click on reconfigure all configuration files in Plesk console and watch in shell for apache status if down, and manual start apache, the configuration is successfull. And the error is gone form me.

Get this error in /opt/psa/admin/logs/panel.log so maybe plesk is having a problem with restarting the webservice...

Code:
[2020-09-23 12:16:31.511] ERR [panel.ui] Can not restart web server:
[2020-09-23 12:16:37.293] ERR [panel.ui] Can not restart web server:
[2020-09-23 12:16:59.997] ERR [panel.ui] Can not restart web server:
 
Thank you for the provided information. Those affected may try to workaround the issue by executing as root:

Bash:
sed -i -e 's|^\(apache_status_linux_debian\)|_\1|g' /opt/psa/admin/sbin/pleskrc
 
I have same issue.

After upgrading to Plesk 18.0.30, apache was unable to start because plesk failed while regenerating apache and nginx config files.

Here the error:

Error: Can not reconfigure web server configurations: Unable to execute httpdmng: [2020-09-23 17:39:03.351] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '7080' '--https-port' '7081'] with exit code [255]
[2020-09-23 17:39:04.051] ERR [panel] Apache config (16008751350.26941500) generation failed: Template_Exception: Can not restart web server:
file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 122
code: 0
Can not restart web server:

I resolved temporally the issue (I thought) upgrading to last version of apache (apache2 2.4.29-1ubuntu4.14 (Ubuntu for bionic-updates by Ubuntu) and It started to work.

This morning, after creating a new domain, (a subdomain), apache begun to fail again, same error, because Plesk is unable to generate the apache and nginx config files of that new domain.

I resolved temporally the issue deleting the new domain and restarting the server.

Some minutes ago, after modifying an existing domain, nighmare start again.....
 
Thank you for the provided information. Those affected may try to workaround the issue by executing as root:

Bash:
sed -i -e 's|^\(apache_status_linux_debian\)|_\1|g' /opt/psa/admin/sbin/pleskrc

and what will this do? I executed and no output or response?
The problem is randomly showing up on domains with no email setting turned on. Domains that have been fine up to now. it appears to be around:

- /etc/apache2/plesk.conf.d/webmails/sub.domain.com_webmail.conf
- /var/www/vhosts/system/sub.domain.com/conf/httpd.conf

listed on this page: /modules/configurations-troubleshooter/index.php/index/list

From log:
[2020-09-23 21:18:49.177] ERR [panel.ui] Can not restart web server:
[2020-09-23 21:18:55.243] ERR [panel] New configuration files for the Apache web server were not created due to the errors in configuration templates: Can not restart web server:. <a target="_blank" href="htt$
[2020-09-23 21:19:27.757] ERR [panel.ui] Can not restart web server:
[2020-09-23 21:19:49.224] ERR [panel.ui] Can not restart web server:
[2020-09-23 21:22:16.650] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '7080' '--https-port' '7081'] with exit code [255]
[2020-09-23 21:22:16.652] ERR [panel] '/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '7080' '--https-port' '7081' failed with code 255.

stdout:
stderr:

[2020-09-23 21:22:17.280] ERR [panel] Apache config (16008960040.37983400) generation failed: Template_Exception: Can not restart web server:
file: /opt/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 122
code: 0
[2020-09-23 21:22:17.699] ERR [panel] Can not restart web server:
[2020-09-23 21:23:07.047] ERR [panel.ui] Can not restart web server:
[2020-09-23 21:23:12.326] ERR [panel] New configuration files for the Apache web server were not created due to the errors in configuration templates: Can not restart web server:. <a target="_blank" href="htt$
 
Last edited:
root@ws:~# '/opt/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '1800' '--http-port' '7080' '--https-port' '7081' --debug ; echo "RC=$?"
RC=0

root@ws:~# systemctl status apache2.service -l
â apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
ââapache2-systemd.conf, limit_nofile.conf
Active: active (running) since Wed 2020-09-23 21:25:54 UTC; 6min ago
Docs: man:systemd-sysv-generator(8)
Process: 26739 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 13360 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
Process: 28993 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
Tasks: 25
Memory: 63.0M
CPU: 1.037s
CGroup: /system.slice/apache2.service
ââ29036 /usr/sbin/apache2 -k start
ââ29039 /usr/sbin/apache2 -k start
ââ29041 Passenger watchdog
ââ29044 Passenger core
ââ29056 /usr/sbin/apache2 -k start
ââ29057 /usr/sbin/apache2 -k start
ââ29058 /usr/sbin/apache2 -k start
ââ29059 /usr/sbin/apache2 -k start
ââ29060 /usr/sbin/apache2 -k start
ââ29425 /usr/sbin/apache2 -k start

Sep 23 21:25:52 ws.bario.com systemd[1]: Starting LSB: Apache2 web server...
Sep 23 21:25:52 ws.bario.com apache2[28993]: * Starting Apache httpd web server apache2
Sep 23 21:25:54 ws.bario.com apache2[28993]: *
Sep 23 21:25:54 ws.bario.com systemd[1]: Started LSB: Apache2 web server.


root@ws:~# dpkg -l | grep apache2
ii apache2 2.4.18-2ubuntu3.17 amd64 Apache HTTP Server
ii apache2-bin 2.4.18-2ubuntu3.17 amd64 Apache HTTP Server (modules and other binary files)
ii apache2-data 2.4.18-2ubuntu3.17 all Apache HTTP Server (common files)
ii apache2-utils 2.4.18-2ubuntu3.17 amd64 Apache HTTP Server (utility programs for web servers)
ii libapache2-mod-aclr2-psa 14081815-v.ubuntu.16.04+p18.0.20.0+t191009.1747 amd64 Module for Apache2 to automate serving static content with NGINX
ii libapache2-mod-fcgid-psa 2.3.9.5-v.ubuntu.16.04+p18.0.30.0+t200826.1456 amd64 Alternative FastCGI module for Apache2
ii libapache2-mod-passenger-plesk 6.0.2-v.ubuntu.16.04+p18.0.30.0+t200826.0942 amd64 Apache module and configuration for Phusion Passenger
ii libapache2-mod-php 1:7.0+35ubuntu6.1 all server-side, HTML-embedded scripting language (Apache 2 module) (default)
ii libapache2-mod-php7.0 7.0.33-0ubuntu0.16.04.15 amd64 server-side, HTML-embedded scripting language (Apache 2 module)
ii libapache2-mod-proxy-psa 2.4.18-v.ubuntu.16.04+p18.0.30.0+t200826.1456 amd64 Apache Module mod_proxy
ii libapache2-mod-sysenv-psa 0.2-v.ubuntu.16.04+p18.0.30.0+t200821.1815 amd64 Plesk mod_sysenv module for Apache2
ii libapache2-modsecurity-plesk 2.9.3-v.ubuntu.16.04+p18.0.30.0+t200826.1456 amd64

root@ws:~# apache2ctl -M
Loaded Modules:
core_module (static)
so_module (static)
watchdog_module (static)
http_module (static)
log_config_module (static)
logio_module (static)
version_module (static)
unixd_module (static)
access_compat_module (shared)
aclr_module (shared)
actions_module (shared)
alias_module (shared)
auth_basic_module (shared)
auth_digest_module (shared)
authn_core_module (shared)
authn_file_module (shared)
authz_core_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dav_module (shared)
dav_fs_module (shared)
dav_lock_module (shared)
deflate_module (shared)
dir_module (shared)
env_module (shared)
fcgid_module (shared)
filter_module (shared)
headers_module (shared)
include_module (shared)
mime_module (shared)
mpm_prefork_module (shared)
negotiation_module (shared)
passenger_module (shared)
proxy_module (shared)
proxy_fcgi_module (shared)
proxy_http_module (shared)
remoteip_module (shared)
rewrite_module (shared)
security2_module (shared)
setenvif_module (shared)
socache_shmcb_module (shared)
ssl_module (shared)
status_module (shared)
suexec_module (shared)
sysenv_module (shared)
unique_id_module (shared)
userdir_module (shared)

root@ws:~# for p in apache2 apache2-bin apache2-data apache2-utils; do dpkg -V $p; done
??5?????? c /etc/apache2/mods-available/dir.conf
??5?????? c /etc/apache2/mods-available/status.conf
??5?????? c /etc/apache2/mods-available/ssl.conf
??5?????? c /etc/apache2/ports.conf
??5?????? c /etc/apache2/apache2.conf
??5?????? c /etc/apache2/sites-available/default-ssl.conf
??5?????? c /etc/apache2/sites-available/000-default.conf

cat /etc/psa/psa.conf
#
### Copyright 1999-2020. Plesk International GmbH. All rights reserved.
#
# This file is used to declare the location of different utilities,
# services, and/or packages within Plesk. No changes should be made
# to this file without first consulting support. Any changes made can
# affect service availability and performance.
#
# Each line in this file follows the following format:
#
# variable [whitespace characters] value
#
# That is, the name of the field, followed by spaces or tabs, followed
# by field value. Trailing spaces are removed.
#

# Plesk tree
PRODUCT_ROOT_D /opt/psa

# Directory of SysV-like Plesk initscripts
PRODUCT_RC_D /etc/init.d

# Directory for config files
PRODUCT_ETC_D /opt/psa/etc

# Directory for service utilities
PLESK_LIBEXEC_DIR /usr/lib/plesk-9.0

# Virtual hosts directory
HTTPD_VHOSTS_D /var/www/vhosts

# Apache configuration files directory
HTTPD_CONF_D /etc/apache2

# Apache include files directory
HTTPD_INCLUDE_D /etc/apache2/conf-enabled

# Deprecated, will be removed. Apache binary
HTTPD_BIN /usr/sbin/apache2

# Apache log files directory
HTTPD_LOG_D /var/log/apache2

# Apache startup script
HTTPD_SERVICE apache2

# Qmail directory
QMAIL_ROOT_D /var/qmail

# Location of qmail maildirs
PLESK_MAILNAMES_D /var/qmail/mailnames

# Path to rblsmtpd
RBLSMTPD /usr/sbin/rblsmtpd

# Bind
NAMED_RUN_ROOT_D /var/named/run-root

# Webalizer
WEB_STAT /usr/bin/webalizer

# MySQL
MYSQL_VAR_D /var/lib/mysql
MYSQL_BIN_D /usr/bin
MYSQL_SOCKET /var/run/mysqld/mysqld.sock

# PostgreSQL
PGSQL_DATA_D /var/lib/postgresql//main
PGSQL_CONF_D /etc/postgresql//main
PGSQL_BIN_D /usr/lib/postgresql/9.5/bin

# Backups directory
DUMP_D /var/lib/psa/dumps
# Backups temporary directory. DUMP_TMP_D should not be inside of (or equal to) DUMP_D.
DUMP_TMP_D /tmp

# Mailman directories
MAILMAN_ROOT_D /usr/lib/mailman
MAILMAN_VAR_D /var/lib/mailman

# Python binary
PYTHON_BIN /usr/bin/python

# DrWeb
DRWEB_ROOT_D /opt/drweb
DRWEB_ETC_D /etc/drweb

# GnuPG binary
GPG_BIN /usr/bin/gpg

# Tar binary
TAR_BIN /bin/tar

# AWStats
AWSTATS_ETC_D /etc/awstats
AWSTATS_BIN_D /usr/lib/cgi-bin
AWSTATS_TOOLS_D /usr/share/awstats/tools
AWSTATS_DOC_D /usr/share/awstats

# openssl binary
OPENSSL_BIN /usr/bin/openssl

LIB_SSL_PATH /lib/libssl.so
LIB_CRYPTO_PATH /lib/libcrypto.so

CLIENT_PHP_BIN /opt/psa/bin/php-cli

# SNI
SNI_SUPPORT true

# APS controller
APS_DB_DRIVER_LIBRARY /usr/lib/x86_64-linux-gnu/sw/libmysqlserver.so.2.0

# SpamAssassin max mail size (in bytes)
SA_MAX_MAIL_SIZE 256000
 
Thank you for the provided information. Those affected may try to workaround the issue by executing as root:

Bash:
sed -i -e 's|^\(apache_status_linux_debian\)|_\1|g' /opt/psa/admin/sbin/pleskrc

This indeed fixes the issue for me and allows Plesk to restart the apache server again.
 
I have the same issue... plesk thinks it cannot restart apache2 but using service apache2 start - starts it just fine...
 
  • Like
Reactions: K8L
After updating from 18.0.29 to 18.0.30 MU#1, I got the same issue as also listed in https://support.plesk.com/hc/en-us/article/115000469949?page=1.

Thank you for the provided information. Those affected may try to workaround the issue by executing as root:

Bash:
sed -i -e 's|^\(apache_status_linux_debian\)|_\1|g' /opt/psa/admin/sbin/pleskrc

This seems to solve the problem temporarily. It would of course be great if we get more details if there is anything else we should do. Also, the help article that I cited should quickly be updated.
 
Last edited:
FYI: the issue is confirmed as PPPM-12387 and will be fixed in 18.0.31. Until then, if you're affected, it is sufficient to use the provided workaround.
 
FYI: the issue is confirmed as PPPM-12387 and will be fixed in 18.0.31. Until then, if you're affected, it is sufficient to use the provided workaround.

Does it only happen rarely? Otherwise, I guess this should rather be part of the next micro update?
 
Back
Top