Article ID: 114187, created on Jun 22, 2012, last review on Oct 17, 2016

  • Applies to:
  • Plesk for Linux/Unix


PHP is not being handled correctly.

Anytime we try to access a PHP page, it asks us to download it, instead of processing it properly.


  1. PHP handler is absent or incorrectly configured in Apache configuration.

  2. Fcgid module for Apache is disabled.


Make sure there are the following lines in the main Apache configuration file (for RedHat-based system: /etc/httpd/conf/httpd.conf ; for Debian-based system: /etc/apache2/apache2.conf).

AddHandler type-map var AddType application/x-httpd-php .php

If it does not work for the configuration, another option is to specify the handler for PHP files explicitly:

AddHandler application/x-httpd-php .php

If custom vhost.conf is used and domain configured with PHP FastCGI, ensure that the following conditions are met in sections used to handle PHP scripts:

<IfModule mod_fcgid.c> 
     SetHandler fcgid-script
     FCGIWrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper .php
     Options +ExecCGI

Check if Fcgid module is enabled:

    # ls -la /etc/apache2/mods-enabled/ | grep fcgid
    lrwxrwxrwx  1 root root   28 Dec  7  2015 fcgid.conf -> ../mods-available/fcgid.conf
    lrwxrwxrwx  1 root root   28 Dec  7  2015 fcgid.load -> ../mods-available/fcgid.load

and if it is not, enable it at Tools & Settings > Apache Web Server > fcgid.

Note If prefork is enabled for Apache webserver in Home > Tools & Settings > Apache Server, make sure that php5 tickbox is checked.

Search Words

webmail downloads index.php

apache php not working in plesk

php handler not available

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 614fd0b754f34d5efe9627f2057b8642 2554725ed606193dd9bbce21365bed4e

Email subscription for changes to this article
Save as PDF