Article ID: 114601, created on May 4, 2014, last review on May 7, 2014

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux

问题

FastCGI 应用程序Apache 模块 都不在PHP 支持中(从 主机设置页面上的下拉菜单)仅 CGI 应用程序 列举于此。

什么原因引起的该问题,如何解决?

原因

Parallels Plesk Panel 在 VPS 优化模式中运行:

~# /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
~#


在该模式中,PHP 可能仅运行作为 "CGI 应用程序" :

~# /usr/local/psa/bin/domain --update DOMAIN.TLD -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 'DOMAIN.TLD ' completed.
~#

~# /usr/local/psa/bin/domain --update DOMAIN.TLD  -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 'DOMAIN.TLD ' completed.
~#

解决方案

通过以下 SQL 查询切换 Parallels Plesk Panel 返回正常操作模式:

~# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "update misc set val='0' where param='vps_optimized_mode_status';"

欲了解详情,请参阅 Parallels Plesk Panel 11 高级管理指南

56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 aea4cd7bfd353ad7a1341a257ad4724a 01bc4c8cf5b7f01f815a7ada004154a2

Email subscription for changes to this article