• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

php execution in domain only show fastcgi (not module).

EveMauta

Basic Pleskian
Hi,
Have the same case for 4 servers (web and pro), the menu in plesk could not show another choice, only fastcgi.

Handlers look like ok:
root@serveur:~# /usr/local/psa/admin/sbin/php_handlers_control --list
id: display name: version: type: cgi-bin: cli-bin: php.ini:
module 5.4.4 5.4.4 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini
fastcgi 5.4.4 5.4.4 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini
cgi 5.4.4 5.4.4 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini

/usr/local/psa/bin/php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom:
cgi 5.3.10 5.3.10 5.3 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
fastcgi 5.3.10 5.3.10 5.3 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini false
module 5.3.10 5.3.10 5.3 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini false

I try to select it by ssh:
root@serveur:~# /usr/local/psa/bin/domain --update DOMAIN.TLD -php_handler_type module
Wrong value of php_handler_type, it can take only FastCGI application

After some test can't remenber all, last command worked
I done this at least:
/usr/local/psa/bin/domain --update DOMAIN.TLD -nginx-serve-php false

Anyway do you have an idea how to force to display php module ?

Best regards
Eve
 
Dear UFHH01,

This thread could not help me because in my case fastcgi is selected for both domains.

In this server I installed another php manually:

mysql> use psa;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select section,name from ServiceNodeEnvironment where section='phphandlers';
+-------------+------------------------------------------+
| section | name |
+-------------+------------------------------------------+
| phphandlers | 6875cbcf9113ad52b1687724cadae3b2902d751f |
| phphandlers | cgi |
| phphandlers | fastcgi |
| phphandlers | module |
| phphandlers | synced |
+-------------+------------------------------------------+
5 rows in set (0.01 sec)

mysql> select dom_id,php,php_handler_id from hosting where php='true';
+--------+------+----------------+
| dom_id | php | php_handler_id |
+--------+------+----------------+
| 2 | true | fastcgi |
| 3 | true | fastcgi |
+--------+------+----------------+
2 rows in set (0.00 sec)



/usr/local/psa/bin/domain --update titi.fr -php_handler_type fastcgi
SUCCESS: Update of domain 'velovelo.com' completed.

usr/local/psa/bin/domain --update titi.fr -nginx-serve-php false
SUCCESS: Update of domain 'velovelo.com' completed.

/usr/local/psa/bin/domain --update titi.fr -php_handler_type module
Wrong value of php_handler_type, it can take only FastCGI application
 
Make sure that VPS optimized mode is turned off:

# /usr/local/psa/bin/vps_optimized --status

Also problem with vhosts directory permissions can be there. Fix it with

# /usr/local/psa/bin/repair --restore-vhosts-permissions
 
Back
Top