Cannot enable PHP mode FastCGI application or Apache module for domain

Created:

2016-11-16 12:42:36 UTC

Modified:

2017-06-05 05:56:08 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot enable PHP mode FastCGI application or Apache module for domain

Applicable to:

  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

FastCGI application and Apache module are both missing in PHP support (from the drop-down menu on the Hosting Settings page). Only CGI application is listed there.

What is causing the issue and how do I resolve it?

Cause

Plesk operates in the VPS-optimized mode:

# /usr/local/psa/bin/vps_optimized --status
VPS Optimized mysql-innodb: off
VPS Optimized apache-modules-all: on
VPS Optimized apache-modules-except-php: off
VPS Optimized apache-modules-except-scripting: off

In this mode, PHP may run as CGI application only:

# /usr/local/psa/bin/domain --update example.com -php_handler_type module
WARNING: mod_php is disabled because the Panel operates in the VPS-optimized mode.module is disabled because the Panel operates in the VPS-optimized mode.
SUCCESS: Update of domain 'example.com ' completed.

# /usr/local/psa/bin/domain --update example.com  -php_handler_type fastcgi
WARNING: mod_php is disabled because the Panel operates in the VPS-optimized mode.fastcgi is disabled because the Panel operates in the VPS-optimized mode.
SUCCESS: Update of domain 'example.com ' completed.

Resolution

Switch Plesk back to normal operation mode by issuing the following SQL query:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -u admin psa -e "update misc set val='0' where param='vps_optimized_mode_status';"

For details, refer to Advanced Administration Guide for Plesk 11 .

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