Applicable to:
- Plesk for Linux
Symptoms
-
The PHP Apache handler is marked with an exclamation sign in Plesk at Tools & Settings > PHP Settings.
-
When pointing on the exclamation sign, the following message is displayed:
PLESK_INFO: The handler cannot be enabled because corresponding Apache module turned off.
-
The Apache module php5 is greyed out at Tools & Settings > Apache Web Server.
Cause
The Apache handler mod_php is disabled by default in Plesk.
Resolution
Warning: Enabling the Apache handler mod_php is not safe as it is outdated and insecure. Use PHP in FastCGI or FPM mode instead.
If this is certainly should be done, in order to enable the Apache handler mod_php, perform the following actions:
-
Change the MPM mode to Prefork at Tools & Settings > Apache Web Server.
-
Enable the php5 module at Tools & Settings > Apache Web Server.
-
Enable the Apache handler mod_php at Tools & Settings > PHP Settings.
On Debian/Ubuntu-based distributions, apply the following commands additionally:
# 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
Comments
3 comments
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
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'
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.