Apache handler is not available in Plesk: The handler cannot be enabled because corresponding Apache module turned off

Created:

2016-11-16 12:49:02 UTC

Modified:

2017-08-19 15:33:57 UTC

6

Was this article helpful?


Have more questions?

Submit a request

Apache handler is not available in Plesk: The handler cannot be enabled because corresponding Apache module turned off

Applicable to:

  • Plesk for Linux

Symptoms

  • Under Tools & Settings > PHP Settings PHP Apache handler is marked with an exclamation sign.
  • The following message is displayed if point the mouse cursor on exclamation sign:

    The handler cannot be enabled because corresponding Apache module turned off.

Cause

mod_php Apache handler is disabled by default in fresh Plesk 12.5 installations.

Resolution

Warning: enabling mod_php Apache handler is not safe as it is outdated and insecure. Please use PHP in FastCGI or FPM mode instead.

If this is certainly should be done, in order to enable mod_php Apache handler perform the following actions:

  1. Change MPM mode to "prefork" in Tools & Settings > Apache Web Server.
  2. Enable php5 module in Tools & Settings > Apache Web Server.
  3. Enable mod_php Apache handler in Tools & Settings > PHP Settings.

In addition, the following commands can be used on Debian-based OSes:

# touch /var/lib/apache2/module/disabled_by_admin/mpm_event
# touch /var/lib/apache2/module/enabled_by_admin/mpm_prefork
# touch /var/lib/apache2/module/enabled_by_admin/php5

Have more questions? Submit a request

3 Comments

  • 0
    Avatar
    Jan van Leeuwen

    Hi,

    where exactly do I

    Enable mod_php Apache handler in Tools & Settings > PHP Settings.

    I have several PHP-Versions and 3 "tastes" FPM / CGI / FASTCGI of each

    there is a screen with checkboxes and php.ini - I cannot find mod_php in there.

    I would be gratefull for a hint on how to solve this, I need it for 1 specific webapp.

     

    Kind regards,

    Jan

    Edited by Jan van Leeuwen
  • 0
    Avatar
    Lev Iurev

    Hi @Jan,  mod_php is not secured and is now allowed for Plesk php. I've followed the described instructions from the article and was able to enable mod_php handler for PHP version marked as 'by OS vendor'

  • 0
    Avatar
    Jan van Leeuwen

    Thanks Lev,

    I found it before but had to solve some other Problems. I must now research further why an Oxidshop after a move to another server does not recognise mod_rewrite.

    This was one of the problems encountered, Presta may not be as structured but is much easier to handle.

    Regards,

    Jan

Please sign in to leave a comment.