PHP x-mapp error

Created:

2016-11-16 12:59:43 UTC

Modified:

2017-04-24 11:32:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP x-mapp error

Applicable to:

  • Plesk 11.5 for Linux

Symptoms

PHP is handled by Apache module on a website. Joomla application was installed manually, not via Plesk GUI.

When you open a website, the following error is being shown in browser:

        mark('afterLoad') : null; // Instantiate the application. $app = JFactory::getApplication('site'); // Initialise the application. $app->initialise(); // Mark afterIntialise in the profiler. JDEBUG ? $_PROFILER->mark('afterInitialise') : null; // Route the application. $app->route(); // Mark afterRoute in the profiler. JDEBUG ? $_PROFILER->mark('afterRoute') : null; // Dispatch the application. $app->dispatch(); // Mark afterDispatch in the profiler. JDEBUG ? $_PROFILER->mark('afterDispatch') : null; // Render the application. $app->render(); // Mark afterRender in the profiler. JDEBUG ? $_PROFILER->mark('afterRender') : null; // Return the response. echo $app;

Domain error log '/var/www/vhost/<domain_name>/logs/error_log' contains the following output:

    Cannot get media type from 'x-mapp-php5'

Cause

The log file /var/www/vhost/<domain_name>/httpdocs/.htaccess contains the below error:

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

'x-mapp' module is not handled by Apache.

Resolution

You may comment out these parameters:

    #AddType x-mapp-php5 .php
#AddHandler x-mapp-php5 .php

, or you may choose FastCGI as a php-handler for the domain.

Have more questions? Submit a request
Please sign in to leave a comment.