Unable to enable 7.0.13 by OS vendor Apache module: handler cannot be enabled because the corresponding Apache module is turned off

Created:

2016-12-18 06:52:37 UTC

Modified:

2017-08-08 13:36:22 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to enable 7.0.13 by OS vendor Apache module: handler cannot be enabled because the corresponding Apache module is turned off

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Unable to enable 7.0.13 by OS vendor (default) Apache module after upgrading system PHP version to PHP 7:

The handler cannot be enabled because the corresponding Apache module is turned off

Unable to switch MPM mode to Prefork .

The following errors appear in logs:

stderr:
START httpd_modules_ctl --set-mpm mpm_prefork
websrvmng: /usr/local/psa/admin/sbin/apache_control_adapter execution failed:
websrvmng: /usr/local/psa/admin/sbin/apache_control_adapter execution failed:
ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/httpd_modules_ctl' '--disable' 'fcgid' '--set-mpm' 'mpm_prefork'] with exit code [1]
ERR [1] '/usr/local/psa/admin/bin/httpd_modules_ctl' '--disable' 'fcgid' '--set-mpm' 'mpm_prefork' failed with code 1.

The following errors appear in /var/log/messages when trying to restart apache:

httpd.service: main process exited, code=killed, status=11/SEGV
kill: cannot find process ""
control process exited, code=exited status=1
Failed to start The Apache HTTP Server.

Cause

This is a bug in Apache that is described here: https://bugs.php.net/bug.php?id=70380

Resolution

Disable all other versions php in apache modules configuration file /etc/httpd/conf.modules.d/10-php56-php.conf by commenting any other directives except:

LoadModule php7_module modules/libphp7.so
Have more questions? Submit a request
Please sign in to leave a comment.